[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] Is the php sockets extension experimental?

2012-03-28 Thread Daniel Brown
On Wed, Mar 28, 2012 at 09:39, Meike Stone meike.st...@googlemail.com 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

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] 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

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 quickshif...@gmail.com wrote: On Tue, Nov 2, 2010 at 2:33 PM, Suyash R r.suy...@gmail.com 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

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 r.suy...@gmail.com wrote: On Tue, Nov 2, 2010 at 5:49 PM, Nathan Nobbe quickshif...@gmail.comwrote: On Tue, Nov 2, 2010 at 2:33 PM, Suyash R r.suy...@gmail.com wrote: No, we didn't try it our dept.'s admin wants to know where is sockets.so file on

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 quickshif...@gmail.comwrote: $ 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

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 quickshif...@gmail.comwrote: $ 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

[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] 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 r.suy...@gmail.com 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

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 phps...@gmail.com wrote: On Mon, Nov 1, 2010 at 12:40 PM, crrr errr r.suy...@gmail.com wrote: Hello, I was trying to create a socket connection from a Solaris machine

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 phps...@gmail.com wrote: On Mon, Nov 1, 2010 at 12:40 PM, crrr errr r.suy...@gmail.com wrote: Hello, I was

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 n...@monkeyknight.comwrote: On Nov 1, 2010, at 11:44 AM, crrr errr wrote: Yes, the

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 n...@monkeyknight.com wrote: On Nov

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 n...@monkeyknight.comwrote: On Nov

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

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 unnecessary

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

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 only

Re: [PHP] Sockets (reading)

2009-08-27 Thread Martin Scotta
On Wed, Aug 26, 2009 at 5:36 PM, Philip Thompson philthath...@gmail.comwrote: 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

[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: ?php $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 example, here's how the data

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: ?php $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

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: ?php $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 example,

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: ?php $data = @socket_read ($socket, 2048, PHP_BINARY_READ); ? This is actually in a loop, so I can get

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: ?php $data = @socket_read ($socket, 2048, PHP_BINARY_READ); ? This is actually in a loop, so I can get all the data if split up.

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: ?php $data = @socket_read ($socket, 2048, PHP_BINARY_READ); ? This is actually in a loop, so I can get all

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: ?php $data = @socket_read ($socket, 2048, PHP_BINARY_READ); ? This is

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: ?php $data = @socket_read

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-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 when

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-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 with php client while with c++ based one it works just fine. .anybody? #include stdio.h #include winsock2.h #include iostream #include process.h using namespace std; int i = 0; int ar = 0; const int is = 50; SOCKET stack[is]; void clientserve(void* ws) {

[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 stdio.h #include winsock2.h #include iostream #include process.h using namespace std; int i = 0; int ar = 0; const int is = 50; SOCKET stack[is]; void clientserve(void* ws) { SOCKET

[PHP] php sockets

2007-12-17 Thread vixle
?php /* Get the port for the WWW service. */ //$service_port = getservbyname('www', 'tcp'); /* Get the IP address for the target host. */ //$address = gethostbyname('www.example.com'); /* Create a TCP/IP socket. */ $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); //echo Attempting to

[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

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

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 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

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

[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:

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 Tony

[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

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] 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

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 start

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 and the

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

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. On windows

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 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

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 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

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
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

[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

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

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 it

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

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:

[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: =

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

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 is my

[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

[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

[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:

[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

[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

[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

[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

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-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

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

[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,

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-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

[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

[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 my

[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 I

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

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

[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

Re: [PHP] PHP sockets/daemon problem

2002-06-26 Thread B i g D o g
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: [josh@jlevine-research josh]$ telnet 127.0.0.1 60324

Re: [PHP] PHP sockets/daemon problem

2002-06-26 Thread Josh Levine
-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'm trying to write a simple PHP script that communicates with a daemon running on the same

[PHP] --enabel-pnctl / php sockets

2002-05-06 Thread Barry Smoke
, 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 understanding

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 system

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 write

[PHP] sockets and flush()

2002-04-09 Thread dietrich
i have a script that makes a socket connection about halfway through the page. nothing on the page prints until the socket operation is finished, even if i call flush() prior to the socket operation. does anyone now of a way to force PHP to output the buffer prior to executing the socket code?

Re: [PHP] sockets and flush()

2002-04-09 Thread Robert Cummings
dietrich wrote: i have a script that makes a socket connection about halfway through the page. nothing on the page prints until the socket operation is finished, even if i call flush() prior to the socket operation. does anyone now of a way to force PHP to output the buffer prior to

RE: [PHP] sockets and flush()

2002-04-09 Thread Dietrich Ayala
no tables. my test script prints a single string prior to the sockets code. thx, dietrich -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 11:12 AM To: dietrich Cc: [EMAIL PROTECTED] Subject: Re: [PHP] sockets and flush

RE: [PHP] sockets and flush()

2002-04-09 Thread Matthew Luchak
. [EMAIL PROTECTED] -Original Message- From: Dietrich Ayala [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 5:39 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] sockets and flush() no tables. my test script prints a single string prior to the sockets code. thx

Re: [PHP] sockets and flush()

2002-04-09 Thread Robert Cummings
To: dietrich Cc: [EMAIL PROTECTED] Subject: Re: [PHP] sockets and flush() dietrich wrote: i have a script that makes a socket connection about halfway through the page. nothing on the page prints until the socket operation is finished, even if i call flush() prior

[PHP] Sockets with windows / win32 - 'call to undefined function: ...'

2002-04-04 Thread Odd Arne Beck
Hi.. The error I get is this one: Fatal error: Call to undefined function: socket() i'm 100% positive that all my code is correct.. anyone else have this problem, or anyone else NOT having this problem? I have a win2000 with iis 5.0 and it's latest updates. the latest version of php

RE: [PHP] Sockets with windows / win32 - 'call to undefined function: ...'

2002-04-04 Thread Maxim Maletsky
:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 1:23 AM To: [EMAIL PROTECTED] Subject: [PHP] Sockets with windows / win32 - 'call to undefined function: ...' Hi.. The error I get is this one: Fatal error: Call to undefined function: socket() i'm 100% positive that all my code

[PHP] Sockets and Telnet

2002-03-19 Thread Hunter, Ray
Has anyone created a telnet session in php with sockets and can give me some help on setting one up? Thank you, Ray Hunter Firmware Engineer I ENTERASYS NETWORKS Phone: 801.887.9888 Fax:801.972.5789 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www:

Re: [PHP] Sockets and Telnet

2002-03-19 Thread Nick Winfield
On Tue, 19 Mar 2002, Hunter, Ray wrote: Has anyone created a telnet session in php with sockets and can give me some help on setting one up? Take a look at PHP Shell to see how it's done. http://www.gimpster.com/php/phpshell/index.php Cheers, Nick Winfield. -- PHP General Mailing List

  1   2   >