Using PHP Version 4.3.7/Apache/2.0.46 (Red Hat), I am not given access to php's socket functions. However, when I run the socket program by serving it as a web page, everything works as expected.
The path to php (#!/usr/local/bin/php -q) appears to be correct because other functions are being called successfully before reaching the socket functions. Perhaps someone can suggest what to change or add from the command line call below to enable the socket functions.
Your feedback will be greatly appreciated.
Thanks,
Andrew Pasetti
[admin@www test]$ php -c /etc/php.ini -f socketTest.php
Error returned:
[08-Oct-2004 12:36:28] PHP Fatal error: Call to undefined function: socket_create() in ...