Ask a Question related to PHP Programming, Design and Development.
-
trytertqwr #1
wget in php?
I was wondering that is it possible to like write a php script to wget files? ...
Like so people type the url in of the file, and it transfers it over to the server.
--
If not wget, something simular.
Is this possible? .. IF so be good for my entertainment site, save me from downloading, then uploading. Just one simple transfer!
Banned
- Join Date
- Aug 2011
- Posts
- 23
-
CPAN, LWP and Net:FTP firewall issues? Connection established transfer fails, yet ftp and wget work manual.
I assume this is a firewall issue, but seeing I'm new to perl I'm not sure what the problem is. I have Perl 5.8.00 installed on RedHat 8.0 with... -
Help installing wget
I need to install wget on a server that I have a domain on. But I do not understand where to upload the files and then how to install wget to get... -
Lynx and wget - redirect problems for PHP scripts
I have a PHP script that should be run a few times a day. Currently I run this script manually as I haven't been able to set up Lynx or wget to run... -
restarting wget?
If wget fails partway through recursively downloading a big website, is there some way to start it over again, to have it download the rest of the... -
rsync or wget?
Hi group, I've just installed apt-proxy. Should I use rsync or wget for fetching packages? I don't really understand the differences. I do... -
Ravish #2
Re: wget in php?
You can use file_get_contents() function to fetch contents of a remote file using PHP.
http://php.net/manual/en/function.file-get-contents.php
You can use wget or any linux shell command using exec() or system() function. I do not recommend using exec() and system() due to security risks.
You can use this code to download a remote file using wget:
PHP Code:<?php
exec('wget http://www.remote.com/file.txt');
?>
-
honeyclarck #3
Re: wget in php?
thanks for sharing such nice information about php. Keep it up with same passion.
Member
- Join Date
- Feb 2012
- Location
- UK
- Posts
- 35



Reply With Quote



