Page 1 of 1

linux server doesn't have sockets.so .. any way around this

Posted: Fri Jan 31, 2003 3:11 am
by lazy_yogi
I've done some socket programming in php and it works fine in my computer running XP using the sockets library for windows (php_sockets.dll)

but when I upload it to a server running apache, the linux eqivalent (sockets.so) doesn't appear to be part of their php library

any ideas how i could get around this .. like getting it separately (no idea whre from though) and including the file in my php file that uses sockets ?

Any help would be great
Thanx

Posted: Fri Jan 31, 2003 7:34 am
by Stoker
do a phpinfo(); on that server and see if sockets are enabled, there should be something like '--enable-sockets' in the configure string at the top part and a section below where sockets is stated as enabled.. If it is not configured with sockets you wont be able to load the module even if you had it..
If your ISP won't recompile PHP with it, perhaps you could use perl for that part of your scripts? .. or python ..

Posted: Fri Jan 31, 2003 7:36 am
by DeGauss
You could always cheat and use a link from the unix box back to your local machine

:D