I have a URL that when entered returns a file. It's something like http://yourdomain.com/file.php?fileID=43433. If I enter that URL I will get the image or document that I'm looking for. No HTML at all. Just the file.
Now, I'm trying to use the following line to capture that file in order...
cFlaVA hit it on the head. I figured that the function continuously called upon itself until the condition was true and then it returned that value. I didn't think I had to add a "return" line in the else statement. Well done! Thank you SO much! No more banging my head against the wall...
In my 3 years of PHP application development I don't think I've ever been this perplexed. It is rather difficult to explain, but hopefully it makes sense. For brevity I'm not giving details about the database table structures. Really it is irrelevant for what my problem is, which appears to be...
I figured this out... and the only way was to have the javascript rewrite the entire SELECT box on refresh. Not too big of a hassle really. But if you place the SELECT inside of a DIV, you can just rewrite the contents of the DIV's innerHTML property. When you rewrite the entire dropdown, it...
I know how to change the width of the select box, but I'm not sure how you can resize automatically to fit the width of the widest option. Is there a way to get the width of an option tag?
I have a SELECT dropdown that is being updated dynamically through Javascript. However, the width of the dropdown never changes. It is always the width that it starts out as. If I initialize the dropdown with one option that is 25 characters long, the dropdown will stay 25 characters long and...
We had one user who stopped receiving email this morning. I verified this and after a server restart he started receiving email OK again. However the emails during that downtime are nowhere. There are NO emails in qmail's queue and they didn't get bounced back.
So what HAPPENED to these emails?
I've seen sites that force form fields to load empty, regardless of the browser's auto-populate settings. How does one do this? I've looked everywhere for info on this but have come up empty.
I am building a new site and I wish to integrate the same effect that istockphoto.com has achieved with its thumbnail view:
http://www.istockphoto.com/file_search.php?action=file&text=cow&filetypeID=&x=0&y=0
If you scale your browser window wider and thinner you will see that the thumbnails...
I got this to work, by moving the .htaccess out of the site root and into the /shop directory. Not sure why, but that worked... thanks for your help. Any idea why it didn't work in the site root?
I'm afraid this is a rather foreign topic to me. I tried to add a line to my .htaccess file to log mod_rewrite activities to /var/log/rewrite.log:
Options +FollowSymLinks
RewriteEngine on
RewriteLog "/var/log/rewrite.log"
RewriteCond %{QUERY_STRING} cPath=3_28
RewriteRule ^index.php$...
I am trying to redirect a page in our eCommerce website but have been unsuccessful thus far in doing so. We need:
http://www.mydomain.com/shop/index.php?main_page=index&cPath=3_28
to point to:
http://www.mydomain.com/shop/creative/solutions
Any suggestions? I've tried the following in my...
Thanks, cLFlaVA! I think the actual problem was caused by some needless Javascript my designer stuck in one of the table cells that was taking precedence over my code. However, I like your code better than mine so I'm sticking with it. Works like a charm now. Thanks again! Cheers!
For years I've used this script and it worked just fine. I'm not developing a site on a new server (that shouldn't have anything to do with the problem). Check it out:
function confirmation(message, url) {
if (confirm(message)) {
window.location = url;
} else {
return false;
}
}...
So it's possible to use the image datatype in MS SQL to store binary data, but is that only good for images? Would it work for PDF or XLS files? If so, do you need to store the MIME type in a separate field?
Does anyone know the most effective way of storing files in an MS SQL database? I typically use MySQL and use the BLOB field. Is this the correct method in MS SQL as well?
We have been creating PDF-based interactive CD-ROMs for a client of ours for over a year now with no problems. All of a sudden with this current project we have a crazy problem. The bookmark navigation works fine on PC but not on Mac.
I've been able to get the Mac bookmarks to work only if I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.