Friday 16 April 2004 2:41:51 am
hi all
that's my problem:
in my pagelayout.tpl i got to make a call to a log server that will register some information i send to it but without opening any browser window.
i read some php documentation and i saw that there is the socket functions that will fit for me. so i modified the templatestringoperator.php by adding a new function "sendviasocket" in this way:
//send a socket request
case $this->SendViaSocket:
{
/* get the port for the WWW service. */
$service_port = getservbyname('www', 'tcp');
/* get the server address. */
$address = gethostbyname($namedParameters['address']);
/*open the socket*/
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
$operatorValue=$address;
}break;
no problems until i try to create the socket through the socket_create function
the error is:
Fatal error: Call to undefined function: socket_create() in c:\programmi\ezpublish\ezpublish\lib\eztemplate\classes\eztemplatestringoperator.php on line 192 Fatal error: eZ publish did not finish it's request
should i import (how??) this function in such a way? is it possible to have a similar behavior?
best regards alessandro
|