Re: php wget: Return an empty file

From: Date: Fri, 08 Apr 2005 13:59:00 +0000
Subject: Re: php wget: Return an empty file
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-212638@lists.php.net to get a copy of this message
Chris Blake wrote:
wget was the first thing I thought of :) You thought wrong :-) Are you are going to parse the file after you've downloaded it ? See this function, http://www.php.net/file_get_contents , if allow_url_fopen is set to TRUE in your php.ini, there will be no problems opening a URL, so $contents = file_get_contents($url); is going to to the job perfectly !
Hope this helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com

« previous php.general (#212638) next »