473,513 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php socket socket_create blocks

27 New Member
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

Expand|Select|Wrap|Line Numbers
  1. error_reporting(E_ALL);
  2.  
  3. set_time_limit(0);
  4.  
  5. ob_implicit_flush(); 
  6.  
  7.  
  8. $address = '192.168.0.233';              
  9.  
  10. $port = 1000;
  11. echo "address is : $address --- <br/><br/><br/>" ;
  12.  
  13. echo "before socket_create ... <br/> " ;
  14. $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) ;
  15. echo "after socket_create <br/> " ;
  16.  
  17.  
The output displayes : before socket_create ...
and then, nothing happens
Sep 5 '12 #1
0 1615

Sign in to post your reply or Sign up for a free account.

Similar topics

1
16584
by: Chuck E. Cheese | last post by:
I need a php page to connect to a python created socket and sent and receive data. below is the python code which opens a socket on the localhost @ port 21567: #!/usr/bin/python2 from socket...
7
6357
by: Martin | last post by:
I am a PHP newbie (just got my "Hello World" page working this morning). I'm doing some R&D work to see if PHP is viable for a situation I have. To accomplish what I want to do, I have to have the...
12
3798
by: Sven Groot | last post by:
I have a Windows Service application that acts as if it's an SMTP server. Outlook connects to this service, which is always running on the localhost. This works fine most of the time. However,...
1
4343
by: dynaheir | last post by:
HI all, I have PHP5.1.2 & Apache on my PC and I'm trying to connect PHP via a socket to a java app acting as a server. I'm failing at the first PHP hurdle. The following line returns fatal...
0
2408
by: doc | last post by:
Hi Hard to know where to post this and I don't want to double post it - please move it if you need to, I am trying to connect a Flash client socket (XML) to a php socket server (using Flash 8 and...
2
5687
by: ocpaul20 | last post by:
I am trying to play with sockets. using Windows XP - SP2 IIS PHP 5.2.3 I have searched online for this error message and I have tried the various suggestions, so now I have run out of things...
0
4120
by: samyphp | last post by:
i am trying to broadcast continuous data from server using udp connection... while accessing from single client its working fine... but while accessing from multiple clients its not working and...
0
7265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
7114
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7541
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5098
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3230
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.