jgingras Posted December 26, 2007 Share Posted December 26, 2007 (edited) From the command prompt, im trying to FTP an entire directory to my local machine. It needs to go through all the sub directories as well. How could I do that? Thanks, -Jacques Edited December 26, 2007 by jgingras Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted December 27, 2007 Share Posted December 27, 2007 Why not zip the contents and ftp a single file? Or if you have access to ncftpput you can use the -R recursive command. See instructions Quote Link to comment Share on other sites More sharing options...
jgingras Posted December 27, 2007 Author Share Posted December 27, 2007 In the past, I used ZipArchive or something like that for PHP to zip up all the files before running the script to download all the files but for some reason, it stopped working, it think it was when the file size got too big, but im not sure.,. Here is the error that it gave. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10619739 bytes) The weird thing is that it would give that error message at different points when I would try to run the script again. Thanks, -Jacques Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted December 27, 2007 Share Posted December 27, 2007 It is very possible that you have run out of web space in your account when trying to zip it up. Not knowing how much space your site is taking up and how much you have left it would be hard to answer that. Quote Link to comment Share on other sites More sharing options...
Madmanmcp Posted December 27, 2007 Share Posted December 27, 2007 think it was when the file size got too big, but im not sure.,. Try breaking it up into smaller groups of zip files. They all don't have to be in one file. Quote Link to comment Share on other sites More sharing options...
jgingras Posted December 27, 2007 Author Share Posted December 27, 2007 The amount of disk space left on the account isn't a problem. We have several Gigs left and im only trying to zip up like 500 meg or something like that. Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted December 27, 2007 Share Posted December 27, 2007 Open a ticket with the help desk and ask them to take a look. Never hurts. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.