Results 1 to 2 of 2
  1. #1

    php script error


    Just read a tutorial on about php socket server:

    I am getting this error w/ php 4.3.4:

    Fatal error: Only variables can be passed by reference in /home/deadserv/public_html/testing/socket_notworking2.php on line 32

    The line in question:

    $ready = socket_select($read,null,null,null);

    Please help me get this workin
    "The only difference between a poor person and a rich person is what they do in their spare time."
    "If youth is wasted on the young, then retirement is wasted on the old"

  2. #2
    Join Date
    Apr 2003
    Los Angeles, CA
    Look at the man page for this function and see the example:

    You need to pass a variable for the 2nd and 3rd argument as it is used as a reference. See this:

    PHP Code:
    $num_changed_sockets socket_select($read$write NULL$except NULL0); 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts