Bug #11659 Updated: fsockopen and fopen
| From: | sniper@php.net | Date: | Wed, 27 Jun 2001 13:45:07 +0000 |
| Subject: | Bug #11659 Updated: fsockopen and fopen | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-58204@lists.php.net to get a copy of this message | ||
ID: 11659
Updated by: sniper
Reported By: the_polymorph@rocketmail.com
Old-Status: Open
Status: Feedback
Bug Type: Sockets related
Operating system:
PHP Version: 4.0.6
Assigned To:
Comments:
Is the .html suffix regocnized to be run by PHP ?
I get 'file not found' on that url too. Or did you
delete it already?
And your script works for me just fine.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-06-26 12:10:10] the_polymorph@rocketmail.com
Hi.
New problem / question.
The following code generates the following error:
Not Found
The requested URL/style.css was not found on this server.
<HTML>
<HEAD>
<TITLE>
</HEAD>
</TITLE>
<BODY>
<?php
$webpage = "http://php.net/support.php";
$fp = fopen( $webpage, "r" ) or die("Couldn't open $webpage");
while( ! feof($fp ))
print fgets( $fp, 1024 );
?>
</BODY>
</HTML>
I tried it again with the URL:
http://www.corrosive.co.uk/php/hello.html
and it wouldn't connect. The output was consistently:
"couldn't open www.corrosive.co.uk/php/hello.html"
Thanks,
Katie.
---------------------------------------------------------------------------
[2001-06-26 11:28:56] the_polymorph@rocketmail.com
Hi.
The error I *was* receiving was the same as Bug i.d. #11058
Thanks.
---------------------------------------------------------------------------
[2001-06-26 11:26:18] the_polymorph@rocketmail.com
Hi.
It seems I made an error in not securing my machine from the clutches of my roommate. He started 20
seperate httpd processes! When I went through and used kill -9 on all of them and re-started the web
server, the php code worked.
Sorry. I did receive the error style/css on found on the server. What does this mean and how can I
fix it?
I am a serious PHP user and your assistance is very much appreciated. Are there any areas I should
look for onm own so I won't take up too much of your time? Such as php.ini in case I have
another question?
Thanks, Katie.
---------------------------------------------------------------------------
[2001-06-26 05:42:43] sniper@php.net
Your example script works just fine.
Can you please explain what exactly doesn't work?
And preferrably include suck non-working example
script (short one) into this bug report.
---------------------------------------------------------------------------
[2001-06-25 09:02:29] the_polymorph@rocketmail.com
<?php
$fd = fopen("http://www.php.net/", "r"
);
if($fd)
{
fpassthru($fd);
}
?>
I am also unable to write *functional* scripts using fsockopen...
My compile line was:
#./configure --with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i686/
--with-apxs=/usr/localapache_1.3.20/bin/apxs
make
make install
I am using Netscape 4.51.
Thanks, Katie.
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11659&edit=2