Reply to Re: fsockopen problem

Your name:

Reply:


Posted by tim on 05/21/06 23:22

> > Thank you for the reply.... However, I forgot to mention in my
> > initial post that if I try it with a normal http post on port 80 it
> > still throws an error: Something like:
> >
> > "Unable to find the socket transport "http" - did you forget to enable
> > it when you configured PHP?
> >

> My only suggestion is recompile php with --enable-sockets as well as
> --with-openssl like Colin said earlier.

I made a big mistake. I thought fsockopen was one of the socket
functions and needed enabling. It isn't. Its one of the network
functions and is always available.

By chance I got the exact same message you had when I tried
fsockopen('http://servername.com',80) but itr workde when I tried
fsockopen('servername.com',80)

>From the looks of http://uk.php.net/manual/en/transports.php the right
way to do a normal http request with fsockopen is using 'tcp://' not
'http://'.....Also tcp:// is assumed if by default if one isn't
specified and http:// isnt recognised.

Tim

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация