Re: PHP Header to stimulate a POST method or POST string????
| From: | Chris Shiflett | Date: | Wed, 18 Feb 2004 21:44:06 +0000 |
| Subject: | Re: PHP Header to stimulate a POST method or POST string???? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178176@lists.php.net to get a copy of this message | ||
--- Scott Fletcher <scott@abcoa.com> wrote:
> Sample code is $fp = fsockopen("www.whatever.com", 443, $errno,
> $errmsg);
>
> Error message is $errno --> 13 and $errmsg --> Permission denied
I'd recommend forgetting the SSL bit for now and trying this with a
regular Web server.
I'm not sure what permission denied is about. You should get a connection
refused message if there is any networking problem or firewall preventing
the connection. Can you try this script:
<?
echo ini_get('allow_url_fopen');
$fp = fsockopen('www.google.com', 80, $errno, $errmsg);
echo "[$errno] [$errmsg]";
?>
Maybe this will reveal something. You can also want to manually test this:
telnet www.google.com 80
Just to see if you can connect from the host where this script is running.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming mid-2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/