Re: fopen problem
| From: | Garth Dahlstrom | Date: | Sat, 29 Sep 2001 19:43:49 +0000 |
| Subject: | Re: fopen problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-69315@lists.php.net to get a copy of this message | ||
Sid,
The reason you are getting an error is because your
syntax is totally wrong.
As the function's name suggests read*FILE* takes a
*filename* as a parameter and pipes it into
the output stream of your page. I am almost certain that
' "http://...@chaosgamerz.com"
target=_blank>http://...@chaosgamerz.com"
' is not
a filename on your system.
If you are trying to make protected file open
in a new window you are proably trying to do
something like this:
header("frame-target: _blank"); /* similar to this... go look up header */
readfile("http://user:pass@chaosgamerz.com/myfile.html");
Northern.CA ===--
http://www.northern.ca
Canada's Search Engine
#################### (Attached Message) ####################----- "Sid"
----- Re: [PHP] fopen problem
----- Sat, 29 Sep 2001 13:56:22 +0550
That still does not work :-(
>Hi,
>
>I am trying this command $fp=fopen (http://www.chaosgamerz.com/index.php);
>This command is being executed from a script on the same domain but a
different
>location. This is the warning message I get -
>Warning: readfile("http://...@chaosgamerz.com"
target=_blank>http://...@chaosgamerz.com") -
A socket must be already
connected.
>
>
>Any solutions???