|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Missing page?
It seems that this article is missing a page, the second page in particular. Please let us know when/if this is corrected, I'd love to read this. Thanks
|
|
#2
|
|||
|
|||
|
Wrong order
You have 'putting it all together' as your first chapter... surely supposed to come at the end. Bit of an edit run needed here, but great article ;)
|
|
#3
|
|||
|
|||
|
Socket Code is Experimental?
In order to try out the examples in the article, I downloaded the latest source (v4.1.1) and tried to compile it using the -enable-php-sockets option. THe compilation failed.
s that the correct option to enable? According to the help for the configure script, it should only be used for testing. Has anybody managed to run the examples yet? |
|
#4
|
|||
|
|||
|
Re: Socket Code is Experimental?
Oops!!
Correct option is --enable-sockets! The option I was wrongly trying to use was actually --enable-php-streams. I must have misread that through lack of sleep, honest! Recompiled with --enable-sockets and all is well. <g> |
|
#5
|
|||
|
|||
|
no go on win2000
i just tested this with a fresh php4.1.1 install on win2000,
but, alas, it doesn't work the way its suppost to be. all it does is accept a single char and then returns it imediatly (with for example the inversed string example). i also tried the example scripts on php.net: http://www.php.net/manual/en/html/ref.sockets.html but with the same result :( i guess it still needs some work for the win32 platform. i haven't tried it on linux yet, because i didnt have the guts yet to upgrade my 4.0.6 install to 4.1.1 which is ofcourse to bad since i had the idea of creating a chat server/client with this socket stuff. that would be possible, right? anyway, still a nice article! |
|
#6
|
|||
|
|||
|
Excelent
Very nice article, thanks for giving us the insides on PHP socket programming! I never knew you could write server apps in PHP, but I did have a bit of experience with using PHP sockets as a client.
Again, thanks for the info. I look forward to writing some useful applications for myself. |
|
#7
|
|||
|
|||
|
same problem on linux!?
tried it on my linux box,
exactly the same problem as on win2000. but with a msg this time: PHP Warning: UåSè: Unable to initialize module Module compiled with debug=140, thread-safety=180 module API=1075564500 PHP compiled with debug=0, thread-safety=0 module API=20010901 These options need to match in Unknown on line 0 any ideas? |
|
#8
|
|||
|
|||
|
Thanks!
Your article is very interesting for a php beginner like me.
Other thing: please, could you to send me the php code for the fonctionnality "Printer Friendly Version" of each page? Thank you in advance. Regards Bernard |
|
#9
|
|||
|
|||
|
|
|
#10
|
|||
|
|||
|
|
|
#11
|
|||
|
|||
|
|
|
#12
|
|||
|
|||
|
Re: no go on win2000
Hello GiLuX (it seams that this name looks like a famous french TV showman, isnt'it ?).
I had the same trouble, but I realize that it cames from my windows telnet client and not from the PHP server. Using another client over which I had a total control (programmed through PHP of course :) everything is going allright. Hope it helps. And thanks for PHP Sockets article. |
|
#13
|
|||
|
|||
|
Call to undefined function: socket_create()
i get the above error message when trying the script. Am using PHP 4.0.6 and Apache 1.3.20 for windows 98. Any help??
|
|
#14
|
|||
|
|||
|
Re: Call to undefined function: socket_create()
Make sure you compile PHP with --enable-sockets, I'm not sure how you'd do this in Win98 w/o Cygwin, but if you are, make sure you do that.
|
|
#15
|
|||
|
|||
|
Re: Call to undefined function: socket_create()
This function is enabled for PHP 4.1.*. So please download and install this version of PHP.
|
![]() |
| Viewing: Dev Shed Forums > Other > Development Articles > Socket Programming With PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|