Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: TheDust
  • Order by date
  1. TheDust

    Using get_file_contents() with a dynamic URL

    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...
  2. TheDust

    PHP Recursion problem - value returns null... variable scope issue?

    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...
  3. TheDust

    PHP Recursion problem - value returns null... variable scope issue?

    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...
  4. TheDust

    Dynamic SELECT drop down does not resize

    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...
  5. TheDust

    Dynamic SELECT drop down does not resize

    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?
  6. TheDust

    Dynamic SELECT drop down does not resize

    Interesting. Have you seen an example of how this is done and what the browser support for it is?
  7. TheDust

    Dynamic SELECT drop down does not resize

    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...
  8. TheDust

    Qmail not receving? This is strange...

    No quotas being used and the user didn't delete this emails... they just never got delivered. Lost in transit, it would seem.
  9. TheDust

    Qmail not receving? This is strange...

    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?
  10. TheDust

    Force empty form fields on load

    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.
  11. TheDust

    Dynamic number of columns? (istockphoto.com)

    Yeah I actually figured this out by doing what you said... worked like a charm! Thanks for taking the time to offer advice!
  12. TheDust

    Dynamic number of columns? (istockphoto.com)

    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...
  13. TheDust

    Redirect based on query string

    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?
  14. TheDust

    Redirect based on query string

    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$...
  15. TheDust

    Redirect based on query string

    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...
  16. TheDust

    Confirm / Redirect script not working

    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!
  17. TheDust

    Confirm / Redirect script not working

    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; } }...
  18. TheDust

    Storing files in MS SQL using PHP?

    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?
  19. TheDust

    Storing files in MS SQL using PHP?

    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?
  20. TheDust

    Bookmarks to other PDFs work great in PC... not on Mac!!

    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...

Part and Inventory Search

Back
Top