You are here: Unable to create socket « PHP Programming Language « IT news, forums, messages
Unable to create socket

Posted by dynaheir on 12/17/88 11:55

HI all,

I have PHP5.1.2 & Apache on my PC and I'm trying to connect PHP via a
socket to a java app acting as a server.

I'm failing at the first PHP hurdle.

The following line returns fatal error : Call to undefined function
socket_create() in <filename>.php
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);

Configuration: Php.ini lines
default_socket_timeout = 60
extension=php_sockets.dll
extension_dir = "./"
; tried with "./ext" same result... so I coppied php_sockets.dll
to php5 root folder
enable_dl = On ;maybe not relevant

phpinfo()
The only socket related items I can find are
Registered Stream Socket Transports | tcp, udp
default_socket_timeout | 60

Does anybody know what I'm doing wrong?

Thanks for reading this.

 

Navigation:

[Reply to this 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

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