large folder + php script help

  • Logitech
  • Born
  • Born
  • No Avatar
  • Joined: Feb 02, 2010
  • Posts: 1
  • Status: Offline

Post February 2nd, 2010, 12:12 pm

Hello all :)


I have a image hosting website, the script i use do not have a random folder upload function
so all images uploaded get in "images" and now the folder has over 300.000 images and it cant be open form the ftp. iam thinking is there a way i can upload a php script which has a search function and can delete images in the folder by request form me.

Thanks
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 2nd, 2010, 12:12 pm

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post February 2nd, 2010, 3:38 pm

I'm guessing you're trying to open the folder with a GUI based FTP application and your application just hangs ?

You can try the command line FTP application, that should let you navigate around the server and "PUT" a file there without retrieving the directory listing you probably have hanging you up.

You'll want to open the command prompt and make sure you navigate to the directory where your PHP script is with CD.

Code: [ Select ]
cd c:\path\to\php\folder


Then connect to your server with the FTP application.

Code: [ Select ]
ftp ftp.server-address.com


This should prompt you for your username/password, after you enter your credentials it will start you in your home directory on the server.

Use CD to navigate to the folder you want to place the script in, try not to use the command "LS" or "DIR" unless you're sure you're not already in the folder with all of the images.

Once you're where you want to be, you "PUT" the file on the server. Since it's a PHP or text file you don't need to switch to binary mode or anything.

Code: [ Select ]
put script-name.php remote-script-name.php


After it's uploaded you can just close the command prompt to close the FTP connection.
Strong with this one, the sudo is.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 127 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.