php socket socket_create blocks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gilit golit
    New Member
    • Feb 2011
    • 27

    php socket socket_create blocks

    Hi
    when I do
    $socket=socket_ create(AF_INET, SOCK_STREAM, SOL_TCP))
    it blocks. Nothing happens.
    here is the code :
    I copied it from php.net
    I am using webmatrix , and IIS , Not apachi. maybe this causes the problem

    Code:
    error_reporting(E_ALL);
    
    set_time_limit(0);
    
    ob_implicit_flush(); 
    
    
    $address = '192.168.0.233';              
    
    $port = 1000;
    echo "address is : $address --- <br/><br/><br/>" ;
    
    echo "before socket_create ... <br/> " ;
    $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) ;
    echo "after socket_create <br/> " ;
    The output displayes : before socket_create ...
    and then, nothing happens
Working...