* socket syntax is different in php5. make it configurable.
[citadel.git] / ctdlphp / sessionproxy.php
index 681ee1af5175918db506e55df1ab1a0dd1e643e4..fdb7b699dfbfe98dd4c68dc31b1d74ca63706903 100755 (executable)
@@ -96,7 +96,7 @@ chmod($sockname, 0600);
 
 // We need to get a connection to the Citadel server going now.
 
-$ctdlsock = fsockopen(CITADEL_HOSTNAME, CITADEL_TCP_PORTNO, $errno, $errstr, 30);
+$ctdlsock = fsockopen(SOCKET_PREFIX.CITADEL_HOSTNAME, CITADEL_TCP_PORTNO, $errno, $errstr, 30);
 if (!$ctdlsock) {
        socket_close ($sock);
        system("/bin/rm -f " . $sockname);