It is currently Fri Sep 21, 2018 7:09 pm


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Sockets and php
PostPosted: Sat Dec 09, 2006 4:36 am 
Noobie
Noobie

Joined: Sat Oct 29, 2005 10:09 pm
Posts: 2
Hello, I was trying to make a socket work using a tutorial, so I am not exactly sure of what I am doing yet. However, all the tutorials seem to say to use socket_create() yet I am unable to get it to work, it just outputs a fatal error:

Fatal error: Call to undefined function: socket_create() in /home/www/nsider.freestarthost.com/test.php on line 8

I was wondering if sockets are enabled or not and if that is my problem.

The bad line is:

$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) or die("Could not create
socket\n");


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ]  Moderators: fhmagic, KJ, Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
100WebSpace © 2011