Re: fopen remote file problem..

From: Date: Wed, 10 Oct 2001 01:30:32 +0000
Subject: Re: fopen remote file problem..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70559@lists.php.net to get a copy of this message
I get this too on my search engine script when trying to open a URL using the file command. This happens when the URL you enter is either not there (server replies with 404), or it redirects to another location, in which case no data is returned from the remote server other than HTTP headers. You can also use something like $filetext = join("", file("http://file.to.open/file.txt")); and that may do it if fopen isnt capable of opening remote files. =) > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- - Tim PHP Galaxy: http://www.phpgalaxy.com/ The LavaWarp Engine: http://www.phpgalaxy.com/engine.php3 BitSearch: http://www.phpgalaxy.com/bitsearch.php3 MetaWarp: http://www.phpgalaxy.com/metawarp.php3 PhotoRate: http://www.phpgalaxy.com/photorate.php3 Earn $10 per order selling these scripts on your site! http://www.phpgalaxy.com/aff/

« previous php.general (#70559) next »