I'm having problems with fsockopen command since installing PHP5 (FreeBSD 4.10 system w/Apache 1.3.32).
The following simple fsockopen command now fails:
<?php
$sockfile = '/usr/tmp/.vmailmgrd';
$vmailsock = fsockopen ($sockfile, 0, $errno, $errstr, 20);
if (!$vmailsock) die("Failed to open unix socket file at '$sockfile'<br>\n Error: $errno - $errstr");
?>
It continues to work normally with PHP4. What gives? There doesn't seem to be any hints on the web about fsockopen syntax having been changed between the versions.
The error message produced is as follows:
Warning: fsockopen() [function.fsockopen]: unable to connect to /usr/tmp/.vmailmgrd:0 (Failed to parse address "/usr/tmp/.vmailmgrd") in /usr/web/site31821/htdocs/testsock.php on line 4
Failed to open unix socket file at '/usr/tmp/.vmailmgrd'
Error: 0 - Failed to parse address "/usr/tmp/.vmailmgrd"
That socket file is present and the daemon is running.
Any ideas? Thanks!