Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 6th, 2002, 01:40 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #2  
Old February 6th, 2002, 09:23 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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 ;)


Reply With Quote
  #3  
Old February 7th, 2002, 07:02 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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?

Reply With Quote
  #4  
Old February 8th, 2002, 07:44 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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>

Reply With Quote
  #5  
Old February 8th, 2002, 08:37 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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!

Reply With Quote
  #6  
Old February 10th, 2002, 01:48 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #7  
Old February 15th, 2002, 11:11 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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?

Reply With Quote
  #8  
Old February 21st, 2002, 03:24 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #9  
Old February 22nd, 2002, 04:41 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
  #10  
Old February 22nd, 2002, 12:23 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
  #11  
Old February 23rd, 2002, 03:59 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
  #12  
Old March 4th, 2002, 03:11 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #13  
Old March 5th, 2002, 07:26 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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??

Reply With Quote
  #14  
Old March 5th, 2002, 11:15 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #15  
Old March 7th, 2002, 09:40 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Call to undefined function: socket_create()

This function is enabled for PHP 4.1.*. So please download and install this version of PHP.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Socket Programming With PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT