Search found 6 matches

by redduck666
Thu Dec 29, 2005 11:39 am
Forum: PHP - Code
Topic: sockets
Replies: 13
Views: 1507

IRC eh? I can see why the host wouldn't allow it for this reason alone. you ain`t the only one :( Your best bet would be to just setup a server at home. my biggest concern is that my site will be loading slow. can you make any estimation of what is the difference in the loading times if i am the on...
by redduck666
Thu Dec 29, 2005 8:06 am
Forum: PHP - Code
Topic: sockets
Replies: 13
Views: 1507

ask your host to open up the port you need the refuse to do so, i guess i`m screwed up :( What is the purpose for all this anyways? the purpose of this was to creat a php scipt that would connect to sql server and than listed for orders, on my side i planed to create a java irc bot using pircbot, t...
by redduck666
Wed Dec 28, 2005 3:05 pm
Forum: PHP - Code
Topic: sockets
Replies: 13
Views: 1507

Doubt you're gonna find an easy way to check the firewall rules with no SSH. Call your host up and ask them


thanks, will do. if there is a firewall i am screwed up? any ways around this?
by redduck666
Wed Dec 28, 2005 9:58 am
Forum: PHP - Code
Topic: sockets
Replies: 13
Views: 1507

The error message is pretty clear, not? It says there is already a process (program) that is using that port.. in that case there is a trouble, i tried changing 10000 to 65000 and to random ports such as 59367, yet i got the same error, so i`m kinda confused :( (i find it HIGHLY unlikelly that prog...
by redduck666
Wed Dec 28, 2005 3:54 am
Forum: PHP - Code
Topic: sockets
Replies: 13
Views: 1507

having ssh access has nothing to do with creating a socket cool well since you set the time limit to 0 once you run it, it will continue running listening on that port, you should implement at least some kind of time out before you start running that k will do. try out the example script here: http...
by redduck666
Tue Dec 27, 2005 6:25 pm
Forum: PHP - Code
Topic: sockets
Replies: 13
Views: 1507

sockets

ok i could use some help with sockets: <?php set_time_limit (0); $address = '212.72.100.21'; $port = 9000; $sock = socket_create(AF_INET, SOCK_STREAM, 0); socket_bind($sock, $address, $port) or die('Could not bind to address'); socket_listen($sock); $client = socket_accept($sock); $input = socket_re...