-
how to download file remotely
Hello
I was using this to dowload a file remote http://a.net/n.txt and to store it in my /home/user/
shell_exec("wget -r -nH --cut-dirs=10 -P /home/user/ http://a.net/n.txt");
Now my webhoster disabled shell_exec usage and I have to use alternatives ways. How can I reach same goal of the line above using
only php code ?
Thank you!
Graziano
-
SitePoint Wizard
-

Originally Posted by
crmalibu
copy($url, $local_path)
Thank you!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks