socket functions not available to command line script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Pasetti

    #1

    socket functions not available to command line script

    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.

    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 ...
  • Alvaro G. Vicario

    #2
    Re: socket functions not available to command line script

    *** Andrew Pasetti escribió/wrote (8 Oct 2004 09:55:36 -0700):[color=blue]
    > 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.[/color]

    It sounds like you are using different binaries. Check build info with
    phpinfo() from both a web page and command line.



    --
    -+ Álvaro G. Vicario - Burgos, Spain
    +- http://www.demogracia.com (la web de humor barnizada para la intemperie)
    ++ Las dudas informáticas recibidas por correo irán directas a la papelera
    -+ I'm not a free help desk, please don't e-mail me your questions
    --

    Comment

    Working...