You are here: PHP socket works on Mac, but not on XP Pro « PHP Programming Language « IT news, forums, messages
PHP socket works on Mac, but not on XP Pro

Posted by DJ Craig on 09/15/05 15:27

This command works on my home computer:
if($locsock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) echo
"Socket created\n";
My home computer is running Mac OS X, and is on a small LAN behind a
NAT router with a hardware firewall (no software firewall). I tried to
execute the same command on a school computer. It's running XP Pro and
is on a large LAN behind a NAT router and a (very overprotective)
hardware firewall. It's also running "Microsoft Firewall Client for
ISA Server".
Both computers are running PHP 5.05. Heres what I get when I run the
program on the XP computer:
Fatal error: Call to undefined function socket_create() in
E:\client.php on line 4
The schools firewall blocks all outgoing and incoming traffic on all
ports except for 80 (at least all the ones that I've tried) but all I'm
trying to do it make a connection to localhost (127.0.0.1) on port 23.
The hardware firewall shouldn't be able to stop computers inside the
LAN from connecting to themselves, should it? So does that mean it
must be the software firewall that is stopping me? Does anyone know of
a way I can get this to work? I've posted the whole program source
code (its not long) at:
http://www.rascalsteencenter.com/client.txt

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация