P.S.  The telnet part, it said...

--snip--
Trying....
Connected to www.google.akadns.net
--snip--

When I exited, I get HTML codes dumped on screen along with bad request...

Scott F.
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> --- Scott Fletcher <[EMAIL PROTECTED]> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to