Jump to content

borfast

Members
  • Posts

    3,271
  • Joined

  • Last visited

Everything posted by borfast

  1. Sure, it's quite simple (the PHP manual has a few examples on how to get a directory listing, too). This code snippet will do what you want (I haven't tested it, though!) >// set up basic connection // ...... $dh = opendir("securityplus"); while (false !== ($source_file = readdir($dh))) { // Upload the file $upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); //check upload status if (!$upload) echo "FTP upload has failed"; else echo "<b>Uploaded:</b> $source_file <b>to</b> $ftp_server <b>as</b>$destination_directory$destination_file"; } One thing I noticed is the directory path you're trying to open: /securityplus/ This won't work because that path is relative to the server root. If you want to use absolute paths, you should allways append your home directory path first (for example, /home/yourusername/securityplus), otherwise the opendir() call will most probably fail due to lack of permissions to open that directory - but even if it didn't fail, that wouldn't be the directory you were looking for. Let me know if this helps
  2. Yes, it was the head of Mozilla Europe, Axel Hecht, but that extension is not included in all builds, only the German (de-DE) build. It seems Axel already admitted he messed up and it seems that the redirection link has been deactivated. Just in case someone doesn't want to read the whole thing, the problem is that the German (de-DE) build of Mozilla, made by Mozilla Europe, includes an ebay search plugin that takes the search query through a third party ad server, which keeps track of some info regarding that search - not the individual user, just the search. So it's not quite advertisement, it's more like spyware (yeah, I know it doesn't make things any better... ) This is a bit disapointing but I do hope people realize this was a decision taken by one person, not the whole Mozilla Foundation, that not every build of Firefox is "contaminated" by this problem and that Firefox is still a very good web browser (the best? ).
  3. I don't think you can use wildcards in there. You'll need to cycle through all the files in the directory, filtering out the ones you don't want and sending the ones you want, one by one.
  4. Leesha, what went wrong this time?
  5. Even if that value is incorrect, the server should not complain, so I'm guessing it's something else. But try removing that line from .htaccess and see if it still complains about it. By the way, I'm not sure if that's the correct path you should be using. But if you just want to use the default PHP includes, then you don't need to put them in .htaccess at all, since they are already configured server-wide.
  6. This is just a wild guess, since I never tried doing what you are doing but have you tried returning 0, just like in C, C++, etc?
  7. Mattis, check the "E-Mail Filtering" link under the "E-Mail" section on your cPanel. You can use something as "|/home/user/email.php" as the destination. Hope this helps
  8. If a .dcr file needs to run on the server, then no, it won't work. If it's only a file being loaded by the flash movie, to be processed on the browser, then it should work OK. Sorry, can't help you much more than this, I never used .dcr files with Flash :\
  9. Sorry, Sam, TCH shared accounts can't run Java programs
  10. Disabled the Print Screen button?? How is that possible? Can you share the link, Thomas? I'm curious to see how it works so I can find a way to go around it
  11. Glad you sorted it out Thumbs Up
  12. Perhaps some of the tables are really supposed to be named "<prefix>_mod_<tablename>"?
  13. I'm not familiar with it wither but I'd say they probably use a table name prefix and simply prepend it to the table names. Try looking on the administration panel, if it has one. If not, try looking in some file called "config.php" or something similar and see if you can find a configuration directive named "table_prefix" or something like that.
  14. leesha, first of all, welcome to the family! As for your problem, did you use "yourcpanelusername_databasename" as the database name? Also, the username must be in the same form: "yourcpanelusername_dbusername". Let me know if this helps. PS - Moving for better organization.
  15. Welcome aboard, Wolff Thumbs Up
  16. There's no way to do it. Those irritating "no-right-click" JavaScripts are only that: irritating, because they can be easily bypassed. Firefox even has an extension just to disable those At the very least, a thief will always have the "Print Screen" button to make a screenshot of your site and then it's just a matter of doing some editing work to get the images clean.
  17. That one's really odd! As Bob said, drive C: should never be assigned to a removable drive... If you have the time and patience, I'd say you could try to reinstall everything from scratch again and hope that it doesn't happen. If it does happen again, you can probably call the company that sold you the computer and ask them to help you out.
  18. Jim, I'm not an MT user, so I may be wrong on this but I'd say you need to use /home/yourusername/mt-static/ as the StaticWebPath config variable. Edit: oops, looks like Lisa was faster than I was
  19. It's a TCH-moderator thing, I think we all do that You just never noticed it until you became a mod. PS - See the "Edited by"...?
  20. Samantha, I haven't used either extensively but both phpDig and ht://dig looked nice, when I tried them.
  21. Glad you found the problem
  22. Thomas, I still haven't and that's why you see a "This post has been edited by TCH-Raul on ...." on 90% of my posts
  23. Darn, you're right, Thomas! I was mistaken, I was visiting search.msn.com instead of beta.search.msn.com!
  24. Oh man, it's finally going to happen and I can't go!! Just make sure you take lots of pictures and post them somewhere. Perhaps a section of the TCH site dedicated to the yearly meeting? I could take care of that...
  25. But MSN Search doesn't have a cache (VERY usefull when you want to see a page that has been changed since it was indexed, because the new page may not have what you searched for, or even worse, it may be unavailable) And it doesn't read PDFs, PPTs, SWFs, .DOCs... I'm not much into this search engine stuff but I did notice that Google's results have become less relevant... maybe if MSN Search is really good, Google will come back to their old higher standards of quality
×
×
  • Create New...