Re: fopen wierdness

From: Date: Fri, 06 Apr 2001 00:24:43 +0000
Subject: Re: fopen wierdness
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47355@lists.php.net to get a copy of this message
"Jerry" <bonnej@Prairie.lakes.com> wrote: > im trying to fopen a url with something like to following : > > fopen("something.com/something.txt", r); > > this returns a "0" If you're trying to open an external file make sure you prepend the URL with 'http://'. If that's a local file and it's not finding the file, make sure the path is correct. > now when i rename the doc to something.htm, ill get the contents? Which document - the one being called by fopen() or the one containing the PHP script? -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

« previous php.general (#47355) next »