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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
lazy_yogi
Forum Contributor
Posts: 243
Joined: Fri Jan 24, 2003 3:27 am

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

Post 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
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post 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 ..
DeGauss
Forum Contributor
Posts: 105
Joined: Tue Oct 22, 2002 9:44 am
Location: Gainesville, FL

Post by DeGauss »

You could always cheat and use a link from the unix box back to your local machine

:D
Post Reply