Share » Forums » Developer » how to: php socket comunication??

how to: php socket comunication??

how to: php socket comunication??

Friday 16 April 2004 2:41:51 am - 7 replies

Author Message

Bruce Morrison

Sunday 18 April 2004 7:40:39 pm

From the error message it seems that the function "socket_create" is not defined. What version of php are you using? This function was inroduced in 4.1 (see http://au.php.net/manual/en/function.socket-create.php)

Is line 192 the line with the socket_create code ?

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Alessandro Cipriani

Monday 19 April 2004 12:44:24 am

hi bruce!
thanx for your reply, i hope you can help me
yes, the call to the function is in line 192: $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);

i'm using ezpublish 3.3-1 with php 4.3.4
what can be the problem? should i import this function in my eztemplatestringoperator.php file?

cheers
alessandro

Bruce Morrison

Monday 19 April 2004 4:06:54 pm

Hi Alessandro

According to http://au.php.net/manual/en/ref.sockets.php -" The socket functions described here are part of an extension to PHP which must be enabled at compile time by giving the --enable-sockets option to configure."

I don't believe that this issue is php related.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Alessandro Cipriani

Tuesday 20 April 2004 12:05:03 am

thanks bruce
there's no way to enable this extension at compile time?
i don't know php (i'm starting learning it now) but i need this feature.
also i think that such a feature will be useful to extend ezpublish, to make it comunicate with other applications.

is there some built-in way to comunicate with other applications by sending them some informations?
Could be ezSoap useful to me?

cheers
alessandro

Alessandro Cipriani

Tuesday 20 April 2004 2:31:31 am

bruce,
is it possible to compile php under windows?
my server is on a windows 2k machine

cheers
alessandro

Bruce Morrison

Tuesday 20 April 2004 2:46:48 am

Don't worry about compiling php under windows - use one of these apache/php/mysql packages :
http://www.firepages.com.au/
http://sourceforge.net/projects/phptriad
http://www.foxserv.net/portal.php

or the many more found at http://www.google.com.au/search?hl=en&ie=UTF-8&oe=UTF-8&q=mysql+php+apache++windows&btnG=Search&meta=

I use linux and cannot vouch for any of them with ezPublish. I have used the first 2 listed in the very distant past.

Cheers
Bruce http://www.designit.com.au

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Alessandro Cipriani

Tuesday 20 April 2004 3:19:15 am

hi bruce
thanx for your support
i didn't need to compile anything!!!
i simply "decommented" the line
extension=php_sockets.dll
in my php.ini file
and downloaded the php_sockets.dll (http://kromann.info/php4/php_sockets.dll) and placed it into the winnt/system32 directory

all works perfectly!!

best regards
alessandro

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu