Re: [PHP] Is the php sockets extension experimental?

2012-03-28 Thread Meike Stone
Hello, >    Sounds like the package maintainer is a minimum of six years > behind the times, or they've done some forking to it.  We don't > support any third-party packages, so that would be something you'd > need to discuss with them, but - in all likelihood - someone just > hasn't removed the "

Re: [PHP] Is the php sockets extension experimental?

2012-03-28 Thread Daniel Brown
On Wed, Mar 28, 2012 at 09:39, Meike Stone wrote: > Hello, > > in the packet description of the php5-sockets in the SuSE Linux > Enterprise Server 11 (SLES11) is > the package php5-sockets in the additional SDK available, but marked > as "experimental" (see below). > Is this the true, where can I

[PHP] Is the php sockets extension experimental?

2012-03-28 Thread Meike Stone
Hello, in the packet description of the php5-sockets in the SuSE Linux Enterprise Server 11 (SLES11) is the package php5-sockets in the additional SDK available, but marked as "experimental" (see below). Is this the true, where can I find this Information, or is this only a historical relic? Are

Re: [PHP] PHP Sockets, problem with remote execution (exec/system)

2010-11-21 Thread Ronny Tiebel
ws up the following: >> >> tcp0 0 10.0.0.1:8133 0.0.0.0:* LISTEN 31490/apache2 >> tcp6 0 0 :::80 :::* LISTEN 31490/apache2 >> >> so i cant restart the daemon because apache uses that port/ip (or >> socke

Re: [PHP] PHP Sockets, problem with remote execution (exec/system)

2010-11-21 Thread 惠新宸
nt act like apache or openvpn). Am i missing something? Or is that the default behavior of linux/apache/php/sockets ??? Additional Information about OS etc. Server/Client Debian LennyApache 2.2.9PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 4 2010 06:06:53) Cl

[PHP] PHP Sockets, problem with remote execution (exec/system)

2010-11-18 Thread Ronny Tiebel
e. (mysql doesnt act like apache or openvpn). Am i missing something? Or is that the default behavior of linux/apache/php/sockets ??? Additional Information about OS etc. Server/Client Debian LennyApache 2.2.9PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 4 2010 06:0

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-04 Thread Steve Staples
On Thu, 2010-11-04 at 11:48 -0600, Nathan Nobbe wrote: > On Thu, Nov 4, 2010 at 11:43 AM, Nathan Nobbe wrote: > > > $ yum search php | grep -i socket > > php-pear-Net-Socket.noarch : Network Socket Interface > > > > check that - thats def *not* the package you're looking for, it's a > userspace o

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-04 Thread Nathan Nobbe
On Thu, Nov 4, 2010 at 11:43 AM, Nathan Nobbe wrote: > $ yum search php | grep -i socket > php-pear-Net-Socket.noarch : Network Socket Interface > check that - thats def *not* the package you're looking for, it's a userspace oo wrapper. you'd be best asking how to install this software on some s

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-04 Thread Nathan Nobbe
On Thu, Nov 4, 2010 at 11:11 AM, Suyash R wrote: > On Tue, Nov 2, 2010 at 5:49 PM, Nathan Nobbe wrote: > >> On Tue, Nov 2, 2010 at 2:33 PM, Suyash R wrote: >> >>> No, we didn't try it our dept.'s admin wants to know where is sockets.so >>> file on disk >>> >> >> lol, tell your dept.'s 'admin' to

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-04 Thread Suyash R
On Tue, Nov 2, 2010 at 5:49 PM, Nathan Nobbe wrote: > On Tue, Nov 2, 2010 at 2:33 PM, Suyash R wrote: > >> No, we didn't try it our dept.'s admin wants to know where is sockets.so >> file on disk >> > > lol, tell your dept.'s 'admin' to run > > locate sockets.so > yeah he couldn't find it eithe

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-04 Thread Suyash R
We added the extension=sockets.so to php.ini but it didn't work. However, the problem was there was no sockets.so extension anywhere to be found. i searched if I could install or add sockets.so extension. Couldn't find anything. Still looking for it. Thank you for all the help. -Suyash On Tue

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-02 Thread Nathan Nobbe
On Tue, Nov 2, 2010 at 2:33 PM, Suyash R wrote: > No, we didn't try it our dept.'s admin wants to know where is sockets.so > file on disk > lol, tell your dept.'s 'admin' to run locate sockets.so > and why should we try this when the phpinfo() displays sockets being > enabled? > probly there

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-02 Thread Nicholas Kell
On Nov 2, 2010, at 3:23 PM, Suyash R wrote: > > No, our dept.'s admin wants to know where is sockets.so file on disk and why > should we try this when the phpinfo() displays sockets being enabled? > > Can help me find sockets.so file I don't know where it is It's a shared > object right are t

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-02 Thread Suyash R
Sorry for the bad formatting and grammar in the previous mail. No, we didn't try it our dept.'s admin wants to know where is sockets.so file on disk and why should we try this when the phpinfo() displays sockets being enabled? Can you please help me find sockets.so file. I can't find it. It's a s

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-02 Thread Suyash R
No, our dept.'s admin wants to know where is sockets.so file on disk and why should we try this when the phpinfo() displays sockets being enabled? Can help me find sockets.so file I don't know where it is It's a shared object right are they stored on disk as individual files or all together compil

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-02 Thread Nicholas Kell
On Nov 2, 2010, at 2:50 PM, Suyash R wrote: > My admin disagrees and I have questions too. > > The phpinfo() fuction displays that sockets have been enabled. If > extension=sockets.so is an alternate way to enable sockets, then why should > this be done twice? > > Suyash Ramineni > On Mon, Nov

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-02 Thread Suyash R
My admin disagrees and I have questions too. The phpinfo() fuction displays that sockets have been enabled. If extension=sockets.so is an alternate way to enable sockets, then why should this be done twice? Suyash Ramineni On Mon, Nov 1, 2010 at 2:35 PM, Nicholas Kell wrote: > > On Nov 1, 2010,

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-01 Thread Nicholas Kell
On Nov 1, 2010, at 1:12 PM, Suyash R wrote: > No, sockets.so in not included in any of the machines php.ini file. However, > I found that Linux machine's php.ini doesn't include sockets.so and sockets > work fine on it but don't work on the Solaris machine. > > Is it required to be included o

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-01 Thread Suyash R
No, sockets.so in not included in any of the machines php.ini file. However, I found that Linux machine's php.ini doesn't include sockets.so and sockets work fine on it but don't work on the Solaris machine. Is it required to be included only in Solaris? On Mon, Nov 1, 2010 at 1:41 PM, Nicholas K

Re: [PHP] PHP sockets enabled but socket_create() gives an error callto undefined function

2010-11-01 Thread Nicholas Kell
On Nov 1, 2010, at 12:36 PM, rek wrote: > I don't think the unix permission will cause a function undefined error. > > 於 2010年11月02日 01:08, crrr errr 提到: >> Yes, the http ( Apache user) has rl ( read permission) on the php file with >> sockets code in it. I think write access is unnecess

Re: [PHP] PHP sockets enabled but socket_create() gives an error callto undefined function

2010-11-01 Thread rek
I don't think the unix permission will cause a function undefined error. 於 2010年11月02日 01:08, crrr errr 提到: Yes, the http ( Apache user) has rl ( read permission) on the php file with sockets code in it. I think write access is unnecessary for Apache user. On Mon, Nov 1, 2010 at 12:50 P

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-01 Thread Nicholas Kell
On Nov 1, 2010, at 12:08 PM, crrr errr wrote: > Yes, the http ( Apache user) has rl ( read permission) on the php file with > sockets code in it. I think write access is unnecessary for Apache user. > > On Mon, Nov 1, 2010 at 12:50 PM, Nicholas Kell wrote: > >> >> On Nov 1, 2010, at 11

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-01 Thread Nicholas Kell
On Nov 1, 2010, at 12:08 PM, crrr errr wrote: > Yes, the http ( Apache user) has rl ( read permission) on the php file with > sockets code in it. I think write access is unnecessary for Apache user. > > On Mon, Nov 1, 2010 at 12:50 PM, Nicholas Kell wrote: > > On Nov 1, 2010, at 11:44

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-01 Thread crrrrrrr errrrrrr
Yes, the http ( Apache user) has rl ( read permission) on the php file with sockets code in it. I think write access is unnecessary for Apache user. On Mon, Nov 1, 2010 at 12:50 PM, Nicholas Kell wrote: > > On Nov 1, 2010, at 11:44 AM, crrr errr wrote: > > > Yes, the phpinfo() shows that

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-01 Thread Nicholas Kell
On Nov 1, 2010, at 11:44 AM, crrr errr wrote: > Yes, the phpinfo() shows that sockets are enabled in both machines. > On Mon, Nov 1, 2010 at 12:43 PM, Bastien Koert wrote: > >> On Mon, Nov 1, 2010 at 12:40 PM, crrr errr >> wrote: >>> Hello, >>> >>> I was trying to create a soc

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-01 Thread crrrrrrr errrrrrr
Yes, the phpinfo() shows that sockets are enabled in both machines. On Mon, Nov 1, 2010 at 12:43 PM, Bastien Koert wrote: > On Mon, Nov 1, 2010 at 12:40 PM, crrr errr > wrote: > > Hello, > > > > I was trying to create a socket connection from a Solaris machine to a > Red > > Hat machine

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-01 Thread Bastien Koert
On Mon, Nov 1, 2010 at 12:40 PM, crrr errr wrote: > Hello, > > I was trying to create a socket connection from a Solaris machine to a Red > Hat machine  to get the PATH in Red Hat machine remotely on Solaris machine > and display it to the user. > > We have a PHP 5.1.6 installation on a Li

[PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-01 Thread crrrrrrr errrrrrr
Hello, I was trying to create a socket connection from a Solaris machine to a Red Hat machine to get the PATH in Red Hat machine remotely on Solaris machine and display it to the user. We have a PHP 5.1.6 installation on a Linux server (Apache) and PHP 5.2.6. on a Unix(Solaris) server(Apache) .

Re: [PHP] Sockets (reading)

2009-08-27 Thread Martin Scotta
On Wed, Aug 26, 2009 at 5:36 PM, Philip Thompson wrote: > On Aug 26, 2009, at 2:47 PM, Bob McConnell wrote: > > From: Philip Thompson >> >>> On Aug 26, 2009, at 11:56 AM, Bob McConnell wrote: >>> From: Philip Thompson > > During a socket read, why would all the requested number

Re: [PHP] Sockets (reading)

2009-08-26 Thread Philip Thompson
On Aug 26, 2009, at 2:47 PM, Bob McConnell wrote: From: Philip Thompson On Aug 26, 2009, at 11:56 AM, Bob McConnell wrote: From: Philip Thompson During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: This is actually in a loop,

RE: [PHP] Sockets (reading)

2009-08-26 Thread Bob McConnell
From: Philip Thompson > On Aug 26, 2009, at 11:56 AM, Bob McConnell wrote: >> From: Philip Thompson >>> >>> During a socket read, why would all the requested number of bytes not >>> get sent? For example, I request 1000 bytes: >>> >>> >> $data = @socket_read ($socket, 2048, PHP_BINARY_READ); >>> ?>

RE: [PHP] Sockets (reading)

2009-08-26 Thread Bob McConnell
From: Shawn McKenzie > Bob McConnell wrote: >> From: Philip Thompson >>> During a socket read, why would all the requested number of bytes not >> >>> get sent? For example, I request 1000 bytes: >>> >>> >> $data = @socket_read ($socket, 2048, PHP_BINARY_READ); >>> ?> >>> >>> This is actually in a

Re: [PHP] Sockets (reading)

2009-08-26 Thread Shawn McKenzie
Bob McConnell wrote: > From: Philip Thompson >> During a socket read, why would all the requested number of bytes not > >> get sent? For example, I request 1000 bytes: >> >> > $data = @socket_read ($socket, 2048, PHP_BINARY_READ); >> ?> >> >> This is actually in a loop, so I can get all the data i

Re: [PHP] Sockets (reading)

2009-08-26 Thread Philip Thompson
On Aug 26, 2009, at 11:56 AM, Bob McConnell wrote: From: Philip Thompson During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: This is actually in a loop, so I can get all the data if split up. So, for example, here's how the d

RE: [PHP] Sockets (reading)

2009-08-26 Thread Bob McConnell
From: Philip Thompson > > During a socket read, why would all the requested number of bytes not > get sent? For example, I request 1000 bytes: > > $data = @socket_read ($socket, 2048, PHP_BINARY_READ); > ?> > > This is actually in a loop, so I can get all the data if split up. So, > for examp

Re: [PHP] Sockets (reading)

2009-08-26 Thread Jim Lucas
Philip Thompson wrote: > Hi. > > During a socket read, why would all the requested number of bytes not > get sent? For example, I request 1000 bytes: > > $data = @socket_read ($socket, 2048, PHP_BINARY_READ); > ?> > > This is actually in a loop, so I can get all the data if split up. So, > for

[PHP] Sockets (reading)

2009-08-26 Thread Philip Thompson
Hi. During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: This is actually in a loop, so I can get all the data if split up. So, for example, here's how the data split up in 3 iterations (for 1000 bytes): 650 bytes 200 bytes

Re: [PHP] Re: php sockets

2007-12-20 Thread vixle
With any code doing a basic socket functionality, the code that i gave in the original post is suppossed to connect to a deamon, and get a message from it , instead it "makes the deamon go crazy" in the sense that it starts endless looping and loads the system resources up to max. "Jim Lucas" <

Re: [PHP] Re: php sockets

2007-12-20 Thread Jim Lucas
vixle wrote: > well i mean even if we would not consider that particular piece of code as > an example of the code that i have issues with im still rather interesting > if theres some different between the socket model used by say, c++(winsock > in my case) and the sockets used in php > because

Re: [PHP] Re: php sockets

2007-12-20 Thread vixle
well i mean even if we would not consider that particular piece of code as an example of the code that i have issues with im still rather interesting if theres some different between the socket model used by say, c++(winsock in my case) and the sockets used in php because when made a simple c++

Re: [PHP] Re: php sockets

2007-12-19 Thread Nathan Nobbe
figured id top-post on this one, since the original message was so long.. i recommend debugging with a tool like wireshark. that way you can see whats in the packets going over the wire and hopefully it will lead to a solution. -nathan On Dec 19, 2007 12:54 AM, vixle <[EMAIL PROTECTED]> wrote:

[PHP] Re: php sockets

2007-12-18 Thread vixle
this code doesn't interact with php client while with c++ based one it works just fine. .anybody? #include #include #include #include using namespace std; int i = 0; int ar = 0; const int is = 50; SOCKET stack[is]; void clientserve(void* ws) { SOCKET wsocket = *(SOCKET*)ws; int fgotus

[PHP] Re: php sockets

2007-12-18 Thread vixle
this code doesn't interact with with php client while with c++ based one it works just fine. .anybody? #include #include #include #include using namespace std; int i = 0; int ar = 0; const int is = 50; SOCKET stack[is]; void clientserve(void* ws) { SOCKET wsocket = *(SOCKET*)ws; int f

[PHP] php sockets

2007-12-17 Thread vixle
i have a daemon running on that port that sends a message when it's got a client connected but the script above doesn't output anything it just loads my cpu up to 100 percent and thats it then it basically stops working. While i need it to display the messages sent by server(daemon) to the us

Re: [PHP] Sockets as a module or a separate PHP CLI instance?

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 6:29 am, [EMAIL PROTECTED] wrote: > I need to do some socket work on a production machine that is > constantly > busy so I don't dare re-compile php. Anybody know if it's possible to > load > the socket functions dynamically, maybe as if they were in a module? If you can do --w

Re: [PHP] Sockets as a module or a separate PHP CLI instance?

2007-05-02 Thread Oliver Block
Am Mittwoch, 2. Mai 2007 14:36 schrieb Oliver Block: > --with-socket=shared Actually it should be --enable-sockets=shared Regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sockets as a module or a separate PHP CLI instance?

2007-05-02 Thread Oliver Block
Am Mittwoch, 2. Mai 2007 13:29 schrieb [EMAIL PROTECTED]: > I need to do some socket work on a production machine that is constantly > busy so I don't dare re-compile php. Anybody know if it's possible to load > the socket functions dynamically, maybe as if they were in a module? It's possible if

[PHP] Sockets as a module or a separate PHP CLI instance?

2007-05-02 Thread list3
I need to do some socket work on a production machine that is constantly busy so I don't dare re-compile php. Anybody know if it's possible to load the socket functions dynamically, maybe as if they were in a module? Alternatively, would it be possible to compile PHP without apache and with sockets

Re: [PHP] Sockets problem

2007-03-21 Thread Adrian Gheorghe
Thanks for the answer. In the meantime I've managed to solve the problem be removing the pcntl_wait call. Actually I think this is a bug, because as I understand things pcntl_wait shouldn't block the main process, but I don't have experience with either sockets or Unix process, so I might be wrong

Re: [PHP] Sockets problem

2007-03-20 Thread Richard Lynch
On Tue, March 20, 2007 8:27 am, Adrian Gheorghe wrote: > I've sent a bug report earlier and it got marked as bogus, so I > decided to ask here about a possible solution. You can see the bug > report at http://bugs.php.net/bug.php?id=40864 Looks like a pretty cogent bug report to me... Perhaps Ton

[PHP] Sockets problem

2007-03-20 Thread Adrian Gheorghe
Hello everyone, I've sent a bug report earlier and it got marked as bogus, so I decided to ask here about a possible solution. You can see the bug report at http://bugs.php.net/bug.php?id=40864 Thanks in advance, Adrian. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

RE: [PHP] PHP Sockets - How to detect client disconnection?

2007-01-06 Thread Aras
Koktas [EMAIL PROTECTED] Business Excellence Development Phi.dot Internet Systems -Original Message- From: Anthony Rasmussen [mailto:[EMAIL PROTECTED] Sent: Saturday, January 06, 2007 11:12 PM To: php-general@lists.php.net Subject: [PHP] PHP Sockets - How to detect client disconnection

[PHP] PHP Sockets - How to detect client disconnection?

2007-01-06 Thread Anthony Rasmussen
How do I detect a disconnected client from a socket resource? In an infinite loop, I socket_read() every open resource that passes a socket_select(). As far as I know, the only way to detect if the client disconnected unexpectedly from their socket resource is when socket_read() returns FALS

[PHP] Sockets and SOAP

2005-08-10 Thread Eli
Hi, I want to implement a client-server relationship between a PHP server application and another .NET client application. I want the connection to be kept alive, so I use the socket routine running till disconnecting. I also want to transfer the data between the server and client using SOAP e

Re: [PHP] sockets

2005-07-12 Thread Ahmed Saad
On 7/13/05, Greg Donald <[EMAIL PROTECTED]> wrote: > `php -h` tells you all the command line options.. and all the basic > fuctionality is covered in the manual online. Seems complete to me. ehmm you weren't refering to the CLI version but anyways, I'd be grateful to anyone who points me to more

Re: [PHP] sockets

2005-07-12 Thread Greg Donald
On 7/12/05, Ahmed Saad <[EMAIL PROTECTED]> wrote: > yeah the manual is completely drak when it comes to php CLI binary `php -h` tells you all the command line options.. and all the basic fuctionality is covered in the manual online. Seems complete to me. -- Greg Donald Zend Certified Engineer

Re: [PHP] sockets

2005-07-12 Thread Ahmed Saad
Hi André, On 7/12/05, André Medeiros <[EMAIL PROTECTED]> wrote: > Since there was no reference to that on the PHP manual, I thought about > mentioning it just to be safe. yeah the manual is completely drak when it comes to php CLI binary -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] sockets

2005-07-12 Thread André Medeiros
Since there was no reference to that on the PHP manual, I thought about mentioning it just to be safe. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sockets

2005-07-12 Thread Ahmed Saad
hi all, > On Tue, 2005-07-12 at 16:49 +0200, daro wrote: > Also remember to set_time_limit(0) ;) PHP ENTER CONFUSION The *CLI* version of php has no max execution time by default (0) - Where's the php CLI version in php4? [PHP_HOME]/cli/php.exe and it reads a php.ini if it was in the SAME direc

Re: [PHP] sockets

2005-07-12 Thread André Medeiros
Please, PLEASE "Reply to All"! Yes, you have to add something like --8<- while(true) { // code here if( $someConditionThatWillMakeMeExit ) { break; } sleep(1); // to prevent excessive processor

Re: [PHP] sockets

2005-07-12 Thread André Medeiros
On Tue, 2005-07-12 at 09:58 -0500, Greg Donald wrote: > On 7/12/05, daro <[EMAIL PROTECTED]> wrote: > > I don't know where should I put this script to be able to receive all > > datas and respond > > with proper strings. > > You would run the script as a shell script from the command line. > >

Re: [PHP] sockets

2005-07-12 Thread Hidayet Dogan
You should use/run it via PHP-CLI. It is a shell script. Ex: /usr/local/bin/php socket.php (on linux) or C:\PHP\php.exe socket.php (on windooz/M$-dos) Good luck. Hidayet Dogan On Tue, 12 Jul 2005, daro wrote: Hi. I'm writing a TCP/IP server and client. On your website I found ready php sc

Re: [PHP] sockets

2005-07-12 Thread André Medeiros
On Tue, 2005-07-12 at 16:49 +0200, daro wrote: > Hi. > I'm writing a TCP/IP server and client. > On your website I found ready php script http://pl2.php.net/sockets but I > have a question. > > For TCP/IP server the example script from your website has to be put on > server as index.php file an

Re: [PHP] sockets

2005-07-12 Thread Greg Donald
On 7/12/05, daro <[EMAIL PROTECTED]> wrote: > I don't know where should I put this script to be able to receive all datas > and respond > with proper strings. You would run the script as a shell script from the command line. On windows you can just save the code as a regular php script then sta

[PHP] Sockets

2005-06-08 Thread Harry
Hello, Is there a special newsgroup for socket programming? regards Harry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Sockets

2004-05-14 Thread Tom Chubb
This may sound a bit cheeky, but I've spent most of today looking for some examples of sockets. I've managed to create a socket and it's connecting ok, but next I need to find a way of sending an ASCII string to the remote computer and echo-ing the results back to my screen. (Using a text box to su

Re: [PHP] sockets - fine tunning

2003-10-28 Thread Raditha Dissanayake
Hi, I think curt is right about transfer encoding being a problem, however i feel it may not be 'the' problem. This timing issue looks like you are running into a 'blocking' kind of situation. Cosmin, Have you tried the 'Connection: close' header? Getting back to transfer encoding you might wan

Re: [PHP] sockets - fine tunning

2003-10-27 Thread Curt Zirzow
* Thus wrote Cosmin ([EMAIL PROTECTED]): > On Sun, 2003-10-26 at 15:30, Raditha Dissanayake wrote: > > are you getting any 1xx status codes from the web server? > > here are the full headers: > > Transfer-Encoding: chunked This is probably the problem. If you inspect your data, you'll notice that

Re: [PHP] sockets - fine tunning

2003-10-26 Thread Cosmin
On Sun, 2003-10-26 at 15:30, Raditha Dissanayake wrote: > are you getting any 1xx status codes from the web server? here are the full headers: HTTP/1.1 200 OK Date: Mon, 27 Oct 2003 06:15:30 GMT Server: Apache/1.3.27 (Unix) PHP/4.3.3 X-Powered-By: PHP/4.3.3 Transfer-Encoding: chunked Content-Type:

Re: [PHP] sockets - fine tunning

2003-10-26 Thread Raditha Dissanayake
are you getting any 1xx status codes from the web server? Cosmin wrote: I'm trying to make an application using XML-RPC, and I have the following problem: I use fsockopen() to simulate a POST to my local web-server. All goes very well except it's very very slow. Here is my code maybe someone coul

Re: [PHP] sockets - fine tunning

2003-10-25 Thread Cosmin
On Sat, 2003-10-25 at 17:42, Curt Zirzow wrote: > * Thus wrote Cosmin ([EMAIL PROTECTED]): > > I'm trying to make an application using XML-RPC, and I have the > > following problem: I use fsockopen() to simulate a POST to my local > > web-server. All goes very well except it's very very slow. Here

Re: [PHP] sockets - fine tunning

2003-10-25 Thread Curt Zirzow
* Thus wrote Cosmin ([EMAIL PROTECTED]): > I'm trying to make an application using XML-RPC, and I have the > following problem: I use fsockopen() to simulate a POST to my local > web-server. All goes very well except it's very very slow. Here is my > code maybe someone could tell me what I'm doing

[PHP] sockets - fine tunning

2003-10-25 Thread Cosmin
I'm trying to make an application using XML-RPC, and I have the following problem: I use fsockopen() to simulate a POST to my local web-server. All goes very well except it's very very slow. Here is my code maybe someone could tell me what I'm doing wrong: = $url

[PHP] Re: php sockets was Re: [PHP] socket_write eats data - solved

2003-09-15 Thread Daniel Souza
Probably your problems about "i can send about seven messages per second" may be relationed to OS's tcp connection stream buffering... try to flush every fd after write to it. I wrote a multi-threaded (pcntl_fork()) application in phpcli using many sockets and they worked well... array iterations a

[PHP] php sockets was Re: [PHP] socket_write eats data - solved

2003-09-14 Thread Raditha Dissanayake
Hi thomas, Thomas Weber wrote: IMAP? We were talking about IRC, Used imap as an example. the Internet Relay Chat. In detail, my problems doesn't even refer to IRC directly, as i am developing a server for a html-based webchat, but the server-structure and the messages are nearly the same. Yes m

[PHP] Sockets tutorial problem in Mac OSX

2003-07-31 Thread René Fournier
Hello, I'm just getting my feet wet with a Dev Shed sockets tutorial (http://www.devshed.com/Server_Side/PHP/SocketProgramming/page5.html). I am having a little problem with one of the tutorial code samples, which should socket_write some text back to the client--except it's not doing that.

[PHP] Resume PHP Sockets?

2003-03-21 Thread Richard Mikalsen
Is it possible to resume persistent sockets opened with pfsockopen? I really need to know if it's possible to resume a socket from another script, like if I've saved the socket into a session variable. Thank You -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] Sockets and Header data

2003-03-11 Thread Todd Cary
Ever since PHP 3, I have been using Sockets to pass GET and POST information.  Yes, now that there is the caching ability, I no longer need to do it that way, however it has never failed me and since I deal with some high visibility applications, I am reluctant to change. With my experience li

[PHP] sockets: resource(20) of type (Unknown)

2003-02-10 Thread Jason k Larson
Hi - I have an problem and I'm not sure how to proceed troubleshooting. I have a socket connection that I'm making to a local stunnel daemon. The connection works and is valid until it seemingly dies and the resource type becomes unknown. at timestamp: 1044900028.6608 my object has this reso

[PHP] sockets (again)

2002-11-25 Thread Gareth Thomas
Hi, I really need some help here because I am going to lose my mind otherwise!! A script that was running fine Friday has decided not to work for no apparent reason today. The problem seems to be with a socket_create that just stops the script, so I created a simple test script as shown below to s

Re: [PHP] sockets

2002-11-21 Thread Chris Shiflett
I'm not sure if it would be helpful, but I wrote a quick PHP socket application that implements a specialized HTTP proxy. It's a quick hack of sorts, but I have found it to be very stable, and it uses the latest sockets API. It consists of only one small PHP script, and it's fairly well commented.

[PHP] sockets

2002-11-21 Thread Gareth Thomas
Hi, I realise that sockets is still 'experimental' but any help will be much appreciated. I am developing a queue system to send commands across from a server to a client using sockets. Problem is that the I keep getting a 'connection reset by peer' error after the first command is sent. The serve

[PHP] sockets

2002-11-13 Thread Ian Newlands
I am in the beginning stages of writing my first socket based php app from scratch. However I think I've quickly picked up a bad coding habbit when reading from sockets. I'm doing the following: //writing the socket socket_write ($socket,"blah blah$CRLF", strlen ($in)); //sleeping for 1 second.

Re: [PHP] sockets

2002-11-08 Thread Marek Kilimajer
This is how sockets work, if you close the process holding the socket, the conection is closed. There is no function reopen_the_old_conection. You are not clear about what you are trying to achive, but maybe you should rethink your design. Gareth Thomas wrote: Hi, I am running 4.3.0pre2 on RH

[PHP] sockets

2002-11-07 Thread Gareth Thomas
Hi, I am running 4.3.0pre2 on RH 7.2 and on Windows2k I am trying to implement a socket based client/server communication program with the server being on the Linux side and the current test client on windows (although it will be on Linux eventually). A series of commands is sent by the client sid

Re: [PHP] Sockets

2002-10-07 Thread Marco Tabini
Yep, if you're using UNIX and compiling from source, you must add this switch to the command line when you're configuring and compiling PHP: --enable-sockets (e.g.: ./configure --enable-sockets). If you're using a prepackaged version (RPM or Windows) then you should look into the documentation

[PHP] Sockets

2002-10-07 Thread Asmodean
Hey everyone, Does anybody know what the current support / functionality for PHP with sockets is? According to the documentation, all the socket_ functions should be included in PHP >= 4.1.0. I'm currently running 4.2.1 and PHP doesn't seem to recognize these functions (socket_send, socket_write,

[PHP] Sockets

2002-09-23 Thread Martin W Jørgensen
Is it possible to read and write to multiple sockets at once with php? Can anyone please answer that question? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ADVANCED PHP (SOCKETS)

2002-08-14 Thread Ninety-Nine Ways To Die
I've got a fully functioning socket server that I use for monitoring written in PHP... email if you want the full script, too big to waste peoples time with here. --- /* Neunzig neun Möglichkeiten zu sterben // Ich bin nur ein anderer Zahn in der Maschine. */ On Wed, 14 Aug 2002 15:09:09 Gus

[PHP] Re: ADVANCED PHP (SOCKETS)

2002-08-14 Thread J Smith
Although pcntl and fork() were mentioned, you might want to look at socket_select() as an alternative. Using socket_select(), you can set up a multiplexer to handle multiple sockets at the same time. (Or roughly the same time...) J Gustavo Almeida wrote: > > > I would like to know, what

[PHP] Re: ADVANCED PHP (SOCKETS)

2002-08-14 Thread Philip Hallstrom
Take a look at the pcntl functions. In particular the pcntl_fork() function. On Wed, 14 Aug 2002, Gustavo Almeida wrote: > > > I would like to know, what I have to do to make my application handle > multiple connections? > > My current application only handle one user per time. > > Sorry about

[PHP] ADVANCED PHP (SOCKETS)

2002-08-14 Thread Gustavo Almeida
I would like to know, what I have to do to make my application handle multiple connections? My current application only handle one user per time. Sorry about my English, but i live in Brazil, if anybody could help me answer me [EMAIL PROTECTED] . Thanky you -- PHP General Mailing List (htt

Re: [PHP] Sockets & 'requested address is not valid in its context'

2002-07-07 Thread Miguel Cruz
On Sat, 6 Jul 2002, Zac Hillier wrote: > I'm opening a port on a remote machine presently I'm using fsockopen() which > is fine for opening the port and sending data however I'm having trouble > reading data back from the port. > > So I've considered using socket functions but do not appear to be

[PHP] Sockets & 'requested address is not valid in its context'

2002-07-06 Thread Zac Hillier
Hi All, I'm opening a port on a remote machine presently I'm using fsockopen() which is fine for opening the port and sending data however I'm having trouble reading data back from the port. So I've considered using socket functions but do not appear to be able to get a connection. When I run th

Re: [PHP] PHP sockets/daemon problem

2002-06-26 Thread Josh Levine
umns/demitrious/sockets-connection > > B i g D o g > > - Original Message - > From: "Josh Levine" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, June 26, 2002 11:32 AM > Subject: [PHP] PHP sockets/daemon problem > > > I

Re: [PHP] PHP sockets/daemon problem

2002-06-26 Thread B i g D o g
D]> Sent: Wednesday, June 26, 2002 11:32 AM Subject: [PHP] PHP sockets/daemon problem > I'm trying to write a simple PHP script that communicates with a daemon > running on the same server. > > Basically, the daemon just accepts an integer and returns an integer: > > [

[PHP] PHP sockets/daemon problem

2002-06-26 Thread Josh Levine
I'm trying to write a simple PHP script that communicates with a daemon running on the same server. Basically, the daemon just accepts an integer and returns an integer: [josh@jlevine-research josh]$ telnet 127.0.0.1 60324 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 9 2

RE: [PHP] --enabel-pnctl / php sockets

2002-05-06 Thread Barry Smoke
Barry Smoke Project Leader Vispman.org -Original Message- From: Barry Smoke [mailto:[EMAIL PROTECTED]] Sent: Monday, May 06, 2002 1:07 PM To: [EMAIL PROTECTED] Subject: [PHP] --enabel-pnctl / php sockets I have recently discovered php's binary capabilities, and am using it to wr

RE: [PHP] --enabel-pnctl / php sockets

2002-05-06 Thread Insomniac Admin
Check out phpserv. -Original Message- From: Barry Smoke [mailto:[EMAIL PROTECTED]] Sent: 06 May 2002 19:07 To: [EMAIL PROTECTED] Subject: [PHP] --enabel-pnctl / php sockets I have recently discovered php's binary capabilities, and am using it to write a virtual isp management s

[PHP] --enabel-pnctl / php sockets

2002-05-06 Thread Barry Smoke
qmail, etc... I have seen a couple of other php binary projects(using php sockets), such as phserv, where an entire web server (like apache) has been written in nothing but php. I tried to install these, and they wouldn't run without php compiled with --enable-pcntl Now, it is my understa

  1   2   >