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

2010-11-21 Thread Ronny Tiebel
Hi Xinchen, thank you for your reply. Nope, Apache runs in its standard configuration and is listening on "*:80" and "*:443", quiet as normal. But after some tests yesterday and after checking the init scripts of apache2 and openvpn (where that problem occours) ive testet to invoke the "apache2c

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

2010-11-21 Thread 惠新宸
Hi: is there a chance that there is a "Listen 8133" in your apache2 configure file? always no as "httpd.conf" or *.conf in the apache2/conf/extra folder. thanks Best regards 惠新宸 Xinchen Hui http://www.laruence.com/ On 2010/11/19 15:18, Ronny Tiebel wrote: Good Morning List ;) ive all

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

2010-11-18 Thread Ronny Tiebel
Good Morning List ;) ive allready postet my question on the german phpbar mailinglist, but no responses from anyone yet. i hope someone on that list could give me an advice or hint. i'm writing a php-daemon which will run on a debian lenny/squeeze. this daemon should listen to a specific port of

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

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

[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

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] php,sockets-help!

2002-01-09 Thread Bogdan Stancescu
Plus, isn't your request content-type: application/x-www-form-urlencoded? And another thing, since you send all the headers HTTP 1.1 compatible, why don't you use it instead of 1.0? Bogdan Sandeep Murphy wrote: > Hi, > > I am opening a socket on a remote server(weblogic) and sending my usernam

Re: [PHP] php,sockets-help!

2002-01-09 Thread Andrey Hristov
y 09, 2002 6:23 PM Subject: [PHP] php,sockets-help! > > Hi, > > I am opening a socket on a remote server(weblogic) and sending my username > and psswd to authentify them... > > I figure my php is opening the socket as no errors r being trapped.. However > the response is

[PHP] php,sockets-help!

2002-01-09 Thread Sandeep Murphy
Hi, I am opening a socket on a remote server(weblogic) and sending my username and psswd to authentify them... I figure my php is opening the socket as no errors r being trapped.. However the response is a blank page instead of an xml formatted response...why??? how can i rectify this?? Please

[PHP] php & sockets!- urg!!!

2002-01-09 Thread Sandeep Murphy
Hi, I am opening a socket on a remote server(weblogic) and sending my username and psswd to authentify them... I figure my php is opening the socket as no errors r being trapped.. However the response is a blank page instead of an xml formatted response...why??? how can i rectify this?? Please