Re: [PHP] exec and system do not work

2013-08-27 Thread Daniel Brown
On Sun, Aug 25, 2013 at 11:41 PM, Ethan Rosenberg wrote: > Dear List - > > I'm lost on this one - > > This works - > > $out = system("ls -l ",$retvals); > printf("%s", $out); > > This does - > > echo exec("ls -l"); > > This does not - > > if( !file_exists("/var/www/orders.txt")); > { >$out = s

Re: [PHP] exec and system do not work

2013-08-27 Thread Jim Giner
On 8/26/2013 5:01 PM, Ethan Rosenberg, PhD wrote: On 08/26/2013 03:28 PM, Jim Giner wrote: On 8/26/2013 2:41 PM, Ethan Rosenberg wrote: On 08/26/2013 11:36 AM, ma...@behnke.biz wrote: Tamara Temple hat am 26. August 2013 um 08:33 geschrieben: On Aug 25, 2013, at 10:41 PM, Ethan Rosenb

Re: [PHP] exec and system do not work

2013-08-26 Thread David Robley
"Ethan Rosenberg, PhD" wrote: > > > Ethan Rosenberg, PhD > /Pres/CEO/ > *Hygeia Biomedical Research, Inc* > 2 Cameo Ridge Road > Monsey, NY 10952 > T: 845 352-3908 > F: 845 352-7566 > erosenb...@hygeiabiomedical.com > > On 08/26/2013 07:33 PM, David Robley wrote: >> Ethan Rosenberg wrote: >> >>

Re: [PHP] exec and system do not work

2013-08-26 Thread Jasper Kips
Ethan, A return code of not 0 means an error occured. Probably /var/www is not writable. Test that one by doing this: $a = is_writable("/var/www); var_dump($a); If that says anything else than (boolean) TRUE, you can't write in the directory. Sincerely, Jasper Kips Op 27 aug. 2013, om 02:32

Re: [PHP] exec and system do not work

2013-08-26 Thread Ethan Rosenberg, PhD
Ethan Rosenberg, PhD /Pres/CEO/ *Hygeia Biomedical Research, Inc* 2 Cameo Ridge Road Monsey, NY 10952 T: 845 352-3908 F: 845 352-7566 erosenb...@hygeiabiomedical.com On 08/26/2013 07:33 PM, David Robley wrote: Ethan Rosenberg wrote: On 08/26/2013 11:36 AM, ma...@behnke.biz wrote: Tamara

Re: [PHP] exec and system do not work

2013-08-26 Thread David Robley
Ethan Rosenberg wrote: > > On 08/26/2013 11:36 AM, ma...@behnke.biz wrote: >> >> >>> Tamara Temple hat am 26. August 2013 um 08:33 >>> geschrieben: >>> >>> >>> >>> On Aug 25, 2013, at 10:41 PM, Ethan Rosenberg >>> wrote: >>> Dear List - I'm lost on this one - This works

Re: [PHP] exec and system do not work

2013-08-26 Thread Ethan Rosenberg, PhD
On 08/26/2013 03:28 PM, Jim Giner wrote: On 8/26/2013 2:41 PM, Ethan Rosenberg wrote: On 08/26/2013 11:36 AM, ma...@behnke.biz wrote: Tamara Temple hat am 26. August 2013 um 08:33 geschrieben: On Aug 25, 2013, at 10:41 PM, Ethan Rosenberg wrote: Dear List - I'm lost on this one -

Re: [PHP] exec and system do not work

2013-08-26 Thread Tamara Temple
On Aug 26, 2013, at 1:41 PM, Ethan Rosenberg wrote: > On 08/26/2013 11:36 AM, ma...@behnke.biz wrote: >>> Tamara Temple hat am 26. August 2013 um 08:33 >>> geschrieben: >>> >>> >>> >>> On Aug 25, 2013, at 10:41 PM, Ethan Rosenberg >>> wrote: >>> Dear List - I'm lost on this

Re: [PHP] exec and system do not work

2013-08-26 Thread ma...@behnke.biz
> Ethan Rosenberg hat am 26. August 2013 um > 20:41 geschrieben: > >  > Please show the output of the directory listing. >  > Please us "ls -la" > > echo exec('ls -la orders.txt'); > > -rw-rw-rw- 1 ethan ethan 43 Aug 25 23:50 orders.txt Please supply the complete output. Especially the rights

Re: [PHP] exec and system do not work

2013-08-26 Thread Jim Giner
On 8/26/2013 2:41 PM, Ethan Rosenberg wrote: On 08/26/2013 11:36 AM, ma...@behnke.biz wrote: Tamara Temple hat am 26. August 2013 um 08:33 geschrieben: On Aug 25, 2013, at 10:41 PM, Ethan Rosenberg wrote: Dear List - I'm lost on this one - This works - $out = system("ls -l ",$retva

Re: [PHP] exec and system do not work

2013-08-26 Thread Ethan Rosenberg
On 08/26/2013 11:36 AM, ma...@behnke.biz wrote: Tamara Temple hat am 26. August 2013 um 08:33 geschrieben: On Aug 25, 2013, at 10:41 PM, Ethan Rosenberg wrote: Dear List - I'm lost on this one - This works - $out = system("ls -l ",$retvals); printf("%s", $out); This does - echo ex

Re: [PHP] exec and system do not work

2013-08-26 Thread ma...@behnke.biz
> Tamara Temple hat am 26. August 2013 um 08:33 > geschrieben: > > > > On Aug 25, 2013, at 10:41 PM, Ethan Rosenberg > wrote: > > > Dear List - > > > > I'm lost on this one - > > > > This works - > > > > $out = system("ls -l ",$retvals); > > printf("%s", $out); > > > > This does - > > > > echo

Re: [PHP] exec and system do not work

2013-08-25 Thread Tamara Temple
On Aug 25, 2013, at 10:41 PM, Ethan Rosenberg wrote: > Dear List - > > I'm lost on this one - > > This works - > > $out = system("ls -l ",$retvals); > printf("%s", $out); > > This does - > > echo exec("ls -l"); > > This does not - > > if( !file_exists("/var/www/orders.txt")); > { > $ou

Re: [PHP] exec and system do not work

2013-08-25 Thread Robert Cummings
On 13-08-25 11:41 PM, Ethan Rosenberg wrote: Dear List - I'm lost on this one - This works - $out = system("ls -l ",$retvals); printf("%s", $out); This does - echo exec("ls -l"); This does not - if( !file_exists("/var/www/orders.txt")); { $out = system("touch /var/www/orders.txt", $re

Re: [PHP] exec and system do not work

2013-08-25 Thread Sorin Badea
*/var/www* is usually under *www* user. It may be a permissions problem. On Mon, Aug 26, 2013 at 6:41 AM, Ethan Rosenberg < erosenb...@hygeiabiomedical.com> wrote: > Dear List - > > I'm lost on this one - > > This works - > > $out = system("ls -l ",$retvals); > printf("%s", $out); > > This does

[PHP] exec and system do not work

2013-08-25 Thread Ethan Rosenberg
Dear List - I'm lost on this one - This works - $out = system("ls -l ",$retvals); printf("%s", $out); This does - echo exec("ls -l"); This does not - if( !file_exists("/var/www/orders.txt")); { $out = system("touch /var/www/orders.txt", $ret); $out2 = system("chmod 766 /var/www/orders

Re: [PHP] What needs to configure to run php exec for socket connection?

2013-01-27 Thread Ashley Sheridan
On Sun, 2013-01-27 at 21:40 +1100, jupiter wrote: > On 1/27/13, Ashley Sheridan wrote: > > On Sun, 2013-01-27 at 03:45 -0600, tamouse mailing lists wrote: > > > >> On Sun, Jan 27, 2013 at 3:10 AM, jupiter wrote: > >> > Hi, > >> > > >> > I have a client.php which calls an external python socket

Re: [PHP] What needs to configure to run php exec for socket connection?

2013-01-27 Thread jupiter
On 1/27/13, Ashley Sheridan wrote: > On Sun, 2013-01-27 at 03:45 -0600, tamouse mailing lists wrote: > >> On Sun, Jan 27, 2013 at 3:10 AM, jupiter wrote: >> > Hi, >> > >> > I have a client.php which calls an external python socket client >> > program exec("Client.py"), the Client.py calls >> > s

Re: [PHP] What needs to configure to run php exec for socket connection?

2013-01-27 Thread jupiter
On 1/27/13, tamouse mailing lists wrote: > On Sun, Jan 27, 2013 at 3:10 AM, jupiter wrote: >> Hi, >> >> I have a client.php which calls an external python socket client >> program exec("Client.py"), the Client.py calls >> sockobj.connect(("localhost", 6)) to connect socket. >> >> If I run th

Re: [PHP] What needs to configure to run php exec for socket connection?

2013-01-27 Thread Ashley Sheridan
On Sun, 2013-01-27 at 03:45 -0600, tamouse mailing lists wrote: > On Sun, Jan 27, 2013 at 3:10 AM, jupiter wrote: > > Hi, > > > > I have a client.php which calls an external python socket client > > program exec("Client.py"), the Client.py calls > > sockobj.connect(("localhost", 6)) to conne

Re: [PHP] What needs to configure to run php exec for socket connection?

2013-01-27 Thread tamouse mailing lists
On Sun, Jan 27, 2013 at 3:10 AM, jupiter wrote: > Hi, > > I have a client.php which calls an external python socket client > program exec("Client.py"), the Client.py calls > sockobj.connect(("localhost", 6)) to connect socket. > > If I run the client.php from Linux command line $ ./client.php

[PHP] What needs to configure to run php exec for socket connection?

2013-01-27 Thread jupiter
Hi, I have a client.php which calls an external python socket client program exec("Client.py"), the Client.py calls sockobj.connect(("localhost", 6)) to connect socket. If I run the client.php from Linux command line $ ./client.php, it works find, no problem at all. But when I run it from w

Re: [PHP] exec to launch putty.exe for telnet

2012-07-10 Thread Hans Åhlin
2012/7/3 Devang Patel > Hello Experts, > > I have putty.exe on my desktop so if I will go to command prompt and then > to C:\Documents and Settings\user\Desktop location and execute following > command it will launch the Putty window of telnet connection to server > specified: > > putty.exe tel

Re: [PHP] exec to launch putty.exe for telnet

2012-07-03 Thread Matijn Woudt
On Tue, Jul 3, 2012 at 8:24 PM, Devang Patel wrote: > Hello Experts, > > I have putty.exe on my desktop so if I will go to command prompt and then > to C:\Documents and Settings\user\Desktop location and execute following > command it will launch the Putty window of telnet connection to server >

[PHP] exec to launch putty.exe for telnet

2012-07-03 Thread Devang Patel
Hello Experts, I have putty.exe on my desktop so if I will go to command prompt and then to C:\Documents and Settings\user\Desktop location and execute following command it will launch the Putty window of telnet connection to server specified: putty.exe telnet://10.3.215.15/ I am trying to l

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Richard Quadling
On 14 January 2011 18:48, Nicholas Kell wrote: > > On Jan 14, 2011, at 12:41 PM, Kai Renz wrote: > >> Hi guys and thanks for your answers... >> >> @Nicholas: >> Yes, you are right. The first socket is only used if a new clients >> connects, thats why the script generates a new port so the client c

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Nicholas Kell
On Jan 14, 2011, at 12:41 PM, Kai Renz wrote: > Hi guys and thanks for your answers... > > @Nicholas: > Yes, you are right. The first socket is only used if a new clients > connects, thats why the script generates a new port so the client can > connect to the new socket. After that socket1 shoul

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Nicholas Kell
On Jan 14, 2011, at 12:41 PM, Kai Renz wrote: > Hi guys and thanks for your answers... > > @Nicholas: > Yes, you are right. The first socket is only used if a new clients > connects, thats why the script generates a new port so the client can > connect to the new socket. After that socket1 shoul

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Kai Renz
Hi guys and thanks for your answers... @Nicholas: Yes, you are right. The first socket is only used if a new clients connects, thats why the script generates a new port so the client can connect to the new socket. After that socket1 should continue its work and wait for new clients. @Daniel: Yeh

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Daniel Brown
On Fri, Jan 14, 2011 at 13:28, Kai Renz wrote: (Putting this back on the list. Please use Reply-All.) > @Daniel: > Yeh i tried sending it to the background, this works but still it does > wait for the other script to finish. It shouldn't. In fact, just to see if I somehow completely f

Fwd: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Evil Son
Sorry, not sent to the list. -- Forwarded message -- From: Evil Son Date: Sat, Jan 15, 2011 at 4:26 AM Subject: Re: [PHP] Exec Script in the background, don't wait till it finishes To: Kai Renz On Sat, Jan 15, 2011 at 2:56 AM, Kai Renz wrote: > Hi there, > >

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Daniel Brown
On Fri, Jan 14, 2011 at 11:56, Kai Renz wrote: > > Now here is the problem: > it all works fine, but the client can't send a quit message to socket1 > because socket1.php waits until socket2.php is finished. socket2.php > is working properly, and if i connect to the new socket and quit the > conne

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Nicholas Kell
On Jan 14, 2011, at 10:56 AM, Kai Renz wrote: > Hi there, > > i'm currently working on a socket project. It consists of two scripts. > The first script (socket1.php) creates a socket on a specified port > and waits for a client to connect. If a client connects, they exchange > some informations,

[PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Kai Renz
Hi there, i'm currently working on a socket project. It consists of two scripts. The first script (socket1.php) creates a socket on a specified port and waits for a client to connect. If a client connects, they exchange some informations, including a random created port. Next, the first script cal

Re: [PHP] exec output to mySQL, How?

2010-07-21 Thread Per Jessen
Nilesh Govindarajan wrote: > On Wed, Jul 21, 2010 at 12:29 PM, Per Jessen wrote: >> Tom Sparks wrote: >> >>> How do I take the output from a command line program and update a >>> MYSQL database with it? >> >> | mysql -u user -p -Ddatabase >> > > I don't think this is what he needs? Otherwise wh

Re: [PHP] exec output to mySQL, How?

2010-07-21 Thread Ashley Sheridan
On Wed, 2010-07-21 at 12:57 +0530, Nilesh Govindarajan wrote: > On Wed, Jul 21, 2010 at 12:29 PM, Per Jessen wrote: > > Tom Sparks wrote: > > > >> How do I take the output from a command line program and update a > >> MYSQL database with it? > > > > | mysql -u user -p -Ddatabase > > > > > > > >

Re: [PHP] exec output to mySQL, How?

2010-07-21 Thread Nilesh Govindarajan
On Wed, Jul 21, 2010 at 12:39 PM, Tom Sparks wrote: > --- On Wed, 21/7/10, Nilesh Govindarajan wrote: >> On Wed, Jul 21, 2010 at 8:49 AM, Tom >> Sparks >> wrote: >> > How do I take the output from a command line program >> and update a MYSQL database with it? >> > >> > tom_a_sparks >> > Light tr

Re: [PHP] exec output to mySQL, How?

2010-07-21 Thread Nilesh Govindarajan
On Wed, Jul 21, 2010 at 12:29 PM, Per Jessen wrote: > Tom Sparks wrote: > >> How do I take the output from a command line program and update a >> MYSQL database with it? > > | mysql -u user -p -Ddatabase > > > > -- > Per Jessen, Zürich (22.6°C) > > > -- > PHP General Mailing List (http://www.php.

Re: [PHP] exec output to mySQL, How?

2010-07-21 Thread Tom Sparks
--- On Wed, 21/7/10, Nilesh Govindarajan wrote: > On Wed, Jul 21, 2010 at 8:49 AM, Tom > Sparks > wrote: > > How do I take the output from a command line program > and update a MYSQL database with it? > > > > tom_a_sparks > > Light travels faster then sound, which is why some > people appear brig

Re: [PHP] exec output to mySQL, How?

2010-07-21 Thread Per Jessen
Tom Sparks wrote: > How do I take the output from a command line program and update a > MYSQL database with it? | mysql -u user -p -Ddatabase -- Per Jessen, Zürich (22.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] exec output to mySQL, How?

2010-07-20 Thread Nilesh Govindarajan
On Wed, Jul 21, 2010 at 8:49 AM, Tom Sparks wrote: > How do I take the output from a command line program and update a MYSQL > database with it? > > tom_a_sparks > Light travels faster then sound, which is why some people appear bright, > until you hear them speak > > > > > -- > PHP General Mail

[PHP] exec output to mySQL, How?

2010-07-20 Thread Tom Sparks
How do I take the output from a command line program and update a MYSQL database with it? tom_a_sparks Light travels faster then sound, which is why some people appear bright, until you hear them speak -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] Exec not functioning

2010-06-30 Thread kronos
Hi, I'm trying to utilize EXEC to have some text from a db query converted to a wav file using 'espeak'. The 'espeak' command works admirably by cli, but no matter what I do, exec does not seem to function on my Linux box, even though safe_mode is off. I've stripped the db query out, and ra

Re: [PHP] exec in different directory where PHP is Installed

2010-05-25 Thread loki
I have a begin of explanation When PHP is run as CGI it's work but with this header message : '\\xxx.xxx.xxx.xxx\scriptdir' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. Status: 200 OK X-Powered-By: PHP/5.2.8 Cont

Re: [PHP] exec in different directory where PHP is Installed

2010-05-24 Thread Kevin Kinsey
loki wrote: Hello, PHP is installed in c:\program files\php the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ in the PHP script, we try to launch the command @exec(...) with a executable located in c:\program files\ourexecutable\ it's not work :( but if we move the PHP script f

RE: [PHP] exec in different directory where PHP is Installed

2010-05-24 Thread Bob McConnell
From: loki > On 5/24/2010 11:31 PM, Bob McConnell wrote: >> From: loki >> >>> PHP is installed in c:\program files\php >>> the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ >>> in the PHP script, we try to launch the command @exec(...) with a >>> executable located in c:\program fil

Re: [PHP] exec in different directory where PHP is Installed

2010-05-24 Thread loki
On 5/24/2010 11:31 PM, Bob McConnell wrote: From: loki PHP is installed in c:\program files\php the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ in the PHP script, we try to launch the command @exec(...) with a executable located in c:\program files\ourexecutable\ it's not work

Re: [PHP] exec in different directory where PHP is Installed

2010-05-24 Thread loki
the script is vbulletin function fetch_im_exec($command, $args, $needoutput = false, $dieongs = true) { if (!function_exists('exec')) { $this->error = array(fetch_error('php_error_exec_disabled')); return

RE: [PHP] exec in different directory where PHP is Installed

2010-05-24 Thread Bob McConnell
From: loki > PHP is installed in c:\program files\php > the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ > in the PHP script, we try to launch the command @exec(...) with a > executable located in c:\program files\ourexecutable\ > > it's not work :( > > but if we move the PHP sc

[PHP] exec in different directory where PHP is Installed

2010-05-24 Thread loki
Hello, PHP is installed in c:\program files\php the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ in the PHP script, we try to launch the command @exec(...) with a executable located in c:\program files\ourexecutable\ it's not work :( but if we move the PHP script from \\xxx.xx

Re: [PHP] exec() problem [SOLVED]

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an unes

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an unes

Re: [PHP] exec() problem

2009-11-14 Thread Kim Madsen
Ashley Sheridan wrote on 2009-11-15 00:23: Looked to all log...nothing! :-( What other logs did you look at? Then do this from a command line: su - "the user apache runs as" copy the command from the ph script and run it from commandline and let us see the error you recieve... -- Kind

Re: [PHP] exec() problem

2009-11-14 Thread Ashley Sheridan
On Sun, 2009-11-15 at 00:25 +0100, A. Mannini wrote: > Ashley Sheridan ha scritto: > > On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: > > > >> Ashley Sheridan ha scritto: > >>> Have you checked to ensure that the exec is actually running at all? > >>> Check the error logs to see what they

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an unes

Re: [PHP] exec() problem

2009-11-14 Thread Ashley Sheridan
On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: > Ashley Sheridan ha scritto: > > > > Have you checked to ensure that the exec is actually running at all? > > Check the error logs to see what they say. There may be a problem with > > the string argument for exec(), like an unescaped charact

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an unescaped character that is causing an issue Thanks, Ash http://www.ashleysheridan.

[PHP] exec() problem

2009-11-14 Thread A. Mannini
Hi all, i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache 2.2.13. Safe mode is OFF and Apache isn't chrooted. I would run /usr/lib/mailman/bin/find_member -l so i used exec("sudo run /usr/lib/mailman/bin/find_member -l ",$output) and set /etc/sudoers with apache ALL=NOPA

Re: [PHP] exec() problem

2009-11-14 Thread Ashley Sheridan
On Sat, 2009-11-14 at 22:20 +0100, A. Mannini wrote: > Hi all, > > i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache > 2.2.13. Safe mode is OFF and Apache isn't chrooted. > > I would run /usr/lib/mailman/bin/find_member -l so i used > exec("sudo run /usr/lib/mailman/bin/

[PHP] exec() problem

2009-11-14 Thread A. Mannini
Hi all, i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache 2.2.13. Safe mode is OFF and Apache isn't chrooted. I would run /usr/lib/mailman/bin/find_member -l so i used exec("sudo run /usr/lib/mailman/bin/find_member -l ",$output) and set /etc/sudoers with apache ALL=

Re: [PHP] exec() confused by a specially crafted string

2009-10-12 Thread Eddie Drapkin
On Mon, Oct 12, 2009 at 2:10 PM, Soner Tari wrote: > On Mon, 2009-10-12 at 13:21 -0300, Jonathan Tapicer wrote: >> Confirmed, it also happens to me on Linux, PHP version: >> >> PHP 5.2.4-2ubuntu5.7 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 21 >> 2009 19:52:39) >> Copyright (c) 1997-2007 The PHP

Re: [PHP] exec() confused by a specially crafted string

2009-10-12 Thread Soner Tari
On Mon, 2009-10-12 at 13:21 -0300, Jonathan Tapicer wrote: > Confirmed, it also happens to me on Linux, PHP version: > > PHP 5.2.4-2ubuntu5.7 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 21 > 2009 19:52:39) > Copyright (c) 1997-2007 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend

Re: [PHP] exec() confused by a specially crafted string

2009-10-12 Thread Jonathan Tapicer
Confirmed, it also happens to me on Linux, PHP version: PHP 5.2.4-2ubuntu5.7 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 21 2009 19:52:39) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies And adding a single character to the echoed string makes

[PHP] exec() confused by a specially crafted string

2009-10-12 Thread Soner Tari
When shell command returns a specially crafted string, I get an empty array as $output of exec(), instead of the string. I can very easily reproduce this issue as follows: Put the following lines in bug.php: Then put the following in echostr.php (the string is just one line actually, new lines

Re: [PHP] EXEC and SYSTEM delay

2009-07-23 Thread Sam Stelfox
Well if the server your running on is linux based (and I haven't tried this) you could try adding a nohup and background the task for example rather than doing: system('updatedb'); try system('nohup updatedb &'); It should background the task and let it continue running even when the php sc

[PHP] EXEC and SYSTEM delay

2009-07-08 Thread Alberto García Gómez
Fellows: I'm experimenting problems with a call that I made to exec or system. The problem is that the script await for the function finish and that take's a lot of time. I need a way to use those functions in order to continue without await for it. Saludos Fraternales

[PHP] Re: php exec()

2008-11-07 Thread Michelle Konzack
Am 2008-11-03 13:28:27, schrieb cheesiong: > hi Chris, > thank you. i change the path and change the httpd.conf LogLevel to debug > then restart apache. > but nothing is change from the output or the error log. > basically it is still not working. > > this is weird, isn't it. the apache is run

Re: [PHP] php exec()

2008-11-03 Thread Stut
On 3 Nov 2008, at 08:06, cheesiong wrote: i tried you suggestion, with lalala.txt');?> the lalala.txt was created but the file is empty. anymore suggestion? Try... &1');?> It's not uncommon for CLI utilities to output their banner on stderr so it doesn't get included when the output is pip

Re: [PHP] php exec()

2008-11-03 Thread Zoltan Ormandi
Hi, I'm not a Linux guru, so maybe my question is stupid, but are you sure the command prints its output to the *standard* output? Z cheesiong wrote: hi ash, i tried you suggestion, with lalala.txt');?> the lalala.txt was created but the file is empty. anymore suggestion? thank you. rega

Re: [PHP] php exec()

2008-11-03 Thread cheesiong
hi ash, i tried you suggestion, with lalala.txt');?> the lalala.txt was created but the file is empty. anymore suggestion? thank you. regards,-keo On Mon, Nov 3, 2008 at 3:29 PM, Ashley Sheridan <[EMAIL PROTECTED]>wrote: > On Mon, 2008-11-03 at 15:21 +0800, cheesiong wrote: > > hi Chris, > >

Re: [PHP] php exec()

2008-11-02 Thread Ashley Sheridan
On Mon, 2008-11-03 at 15:21 +0800, cheesiong wrote: > hi Chris, > i found out that when execute ipkg, the return is before the header. > > root [ /srv/www/test ]# /program/php-5.2.6/bin/php-cgi ipkg.php > ipkg version 0.99.163 > X-Powered-By: PHP/5.2.6 > Content-type: text/html > > Array > ( > )

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
hi Chris, i found out that when execute ipkg, the return is before the header. root [ /srv/www/test ]# /program/php-5.2.6/bin/php-cgi ipkg.php ipkg version 0.99.163 X-Powered-By: PHP/5.2.6 Content-type: text/html Array ( ) which is different than the whoami program. root [ /srv/www/test ]# /pr

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
hi Chris, i did try, below is the continouos output from prompt when i do su. root [ /srv/www/test ]# su daemon root [ /srv/www/test ]# i didnt manage to switch user. i will create an user... so that i can switch to it. i created a user call lfs into group lfs. able to execute ipkg-cl and /prog

Re: [PHP] php exec()

2008-11-02 Thread Chris
cheesiong wrote: hi Chris, my linux system is LFS that i build from scratch. i cant su to daemon. below is my /etc/passwd: root [ /srv/www/test ]# cat /etc/passwd root:x:0:0:root:/root:/bin/bash nobody:x:99:99:Unprivileged User:/dev/null:/bin/false sshd:x:50:50:sshd PrivSep:/var/lib/sshd:/bin

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
hi Chris, my linux system is LFS that i build from scratch. i cant su to daemon. below is my /etc/passwd: root [ /srv/www/test ]# cat /etc/passwd root:x:0:0:root:/root:/bin/bash nobody:x:99:99:Unprivileged User:/dev/null:/bin/false sshd:x:50:50:sshd PrivSep:/var/lib/sshd:/bin/false daemon:x:6:6

Re: [PHP] php exec()

2008-11-02 Thread Chris
cheesiong wrote: hi Chris, thank you. i change the path and change the httpd.conf LogLevel to debug then restart apache. but nothing is change from the output or the error log. basically it is still not working. this is weird, isn't it. the apache is run with Daemon, but i already change t

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
hi Chris, thank you. i change the path and change the httpd.conf LogLevel to debug then restart apache. but nothing is change from the output or the error log. basically it is still not working. this is weird, isn't it. the apache is run with Daemon, but i already change the chmod to 777. shoul

Re: [PHP] php exec()

2008-11-02 Thread Chris
cheesiong wrote: hi Chris, i change the script to: the output from browser: array() other stuff remain the same. can i conclude php program is not a problem here? It could be a path problem still even though you put it in /usr/bin/ try a full path (recommended anyway): exec('/usr/bin/ipkg

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
hi Chris, i change the script to: the output from browser: array() other stuff remain the same. can i conclude php program is not a problem here? i will try to use other server to see if it is server inheritance. and will try to increase errorlog level to see what is the problem. regards,-keo

Re: [PHP] php exec()

2008-11-02 Thread Chris
cheesiong wrote: hi Chris, thank you. it is not working as well. i copy the ipkg-cl into /usr/bin add error_reporting(E_ALL); and ini_set('display_errors', true); to the top of your script. any errors/warnings/whatever show up? -- Postgresql & php tutorials http://www.designmagick.com/

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
hi Chris, thank you. it is not working as well. i copy the ipkg-cl into /usr/bin do i need to set anything in the httpd.conf on the directive? i am running apache-2.2.9. this is code copy from you suggestion: output from browser: Array ( ) output from prompt if i execute on the linux system:

Re: [PHP] php exec()

2008-11-02 Thread Chris
the output from the browser is the same and not the expecting version of the ipkg-cl. then i tried to echo exec('ifconfig'); the output is the same also. You need to do this: $output = array(); exec('/program/', $output); for it to put the results of running the command into the $output

[PHP] Re: php exec()

2008-11-02 Thread cheesiong
i try to use the system() function, i found the the last line of the ifconfig is actually nothing. but i still cannot execute the ipkg-cl program. any idea? thank you. regards,-keo On Mon, Nov 3, 2008 at 11:31 AM, cheesiong <[EMAIL PROTECTED]> wrote: > hi all, > this is the first time i try out

[PHP] php exec()

2008-11-02 Thread cheesiong
hi all, this is the first time i try out the mailing list. i hope to get help from here. thank you. i hope this email can reach the mail group as i use bluecolour.sz to sign on the news group but using bluecolour to do all the emailing. i am facing a problem when i study exec() php function: i t

Re: Re: [PHP] exec() Error

2008-06-30 Thread zhiqi pan
to:[EMAIL PROTECTED] > > Sent: Thursday, June 26, 2008 7:50 AM > > To: Boyd, Todd M.; php-general@lists.php.net > > Subject: RE: Re: [PHP] exec() Error > > > > Hi, Todd: > > > >It looks like I have some other errors in my Perl code, and I got > it &

RE: Re: [PHP] exec() Error

2008-06-27 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 26, 2008 7:50 AM > To: Boyd, Todd M.; php-general@lists.php.net > Subject: RE: Re: [PHP] exec() Error > > Hi, Todd: > >It looks like I have some other errors in

Re: Re: [PHP] exec() Error

2008-06-26 Thread Jason Murray
== > Alice Wei > MIS 2009 > School of Library and Information Science > Indiana University Bloomington > [EMAIL PROTECTED] > ________ > From: Boyd, Todd M. [EMAIL PROTECTED] > Sent: Wednesday,

RE: RE: Re: [PHP] exec() Error

2008-06-26 Thread Per Jessen
Boyd, Todd M. wrote: >> >PHP or other programming languages? For example, C, Python, or Perl. >> >> And that works just fine using exec(). > > Well... if she was trying to execute *LOCAL* PHP code from within a > PHP script that was already running (which she was not), why would you > suggest th

RE: RE: Re: [PHP] exec() Error

2008-06-26 Thread Boyd, Todd M.
> -Original Message- > From: Per Jessen [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 26, 2008 1:11 AM > To: php-general@lists.php.net > Subject: RE: Re: [PHP] exec() Error > > Boyd, Todd M. wrote: > > >> > >> Well, "http://www.mysite.com

RE: Re: [PHP] exec() Error

2008-06-26 Thread Wei, Alice J.
net Subject: RE: Re: [PHP] exec() Error > -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 3:31 PM > To: Boyd, Todd M.; Per Jessen; php-general@lists.php.net > Subject: RE: Re: [PHP] exec() Error ---8<--- snip > >

RE: Re: [PHP] exec() Error

2008-06-25 Thread Per Jessen
Boyd, Todd M. wrote: >> >> Well, "http://www.mysite.com/calculate.php"; is not an executable. >> Try this instead: >> >> exec("php /calculate.php"); > > I still don't think this is how exec() should be used when executing > remote PHP scripts via HTTP, since the web server is not going to give

RE: Re: [PHP] exec() Error

2008-06-25 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 3:31 PM > To: Boyd, Todd M.; Per Jessen; php-general@lists.php.net > Subject: RE: Re: [PHP] exec() Error ---8<--- snip > > Well, "http://www.mysite.

RE: Re: [PHP] exec() Error

2008-06-25 Thread Wei, Alice J.
From: Boyd, Todd M. [EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 4:25 PM To: Per Jessen; php-general@lists.php.net Subject: RE: Re: [PHP] exec() Error > -Original Message- > From: Per Jessen [mailto:[EMAIL PROTECTED] > Sent: Wednesday

RE: Re: [PHP] exec() Error

2008-06-25 Thread Boyd, Todd M.
> -Original Message- > From: Per Jessen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 2:48 PM > To: php-general@lists.php.net > Subject: Re: [PHP] exec() Error > > Wei, Alice J. wrote: > > > I have got a task from my clien

RE: [PHP] exec() Error

2008-06-25 Thread Wei, Alice J.
___ From: Per Jessen [EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 3:47 PM To: php-general@lists.php.net Subject: Re: [PHP] exec() Error Wei, Alice J. wrote: > I have got a task from my client asking me to build something > that allo

Re: [PHP] exec() Error

2008-06-25 Thread Per Jessen
Wei, Alice J. wrote: > I have got a task from my client asking me to build something > that allows the variables in the PHP file passed to another > PHP file or a file in a different computer language to perform > some operations on another remote machine. According

[PHP] exec() Error

2008-06-24 Thread Wei, Alice J.
Hi, I have got a task from my client asking me to build something that allows the variables in the PHP file passed to another PHP file or a file in a different computer language to perform some operations on another remote machine. According to my client, he calls this behind the scenes

Re: [PHP] exec return values

2008-04-04 Thread Daniel Brown
On Fri, Apr 4, 2008 at 11:34 AM, Philip Thompson <[EMAIL PROTECTED]> wrote: > Is there a set list of return values/error codes returned by exec? I am > running this command on a windows box and getting the following error: > > exec ("net use /delete i: /y", $output, $ret); > print_r ($output);

[PHP] exec return values

2008-04-04 Thread Philip Thompson
Is there a set list of return values/error codes returned by exec? I am running this command on a windows box and getting the following error: exec ("net use /delete i: /y", $output, $ret); print_r ($output);// Array() echo "Return: $ret"; // Return: 2 I tested this statement with the m

Re: [PHP] Php exec

2007-12-31 Thread Richard Lynch
http://php.net/imap_createmailbox On Sun, December 23, 2007 4:31 pm, mattias wrote: > If i use courier-mta > Can i create a php script wich create mailboxes? > And users > Hope any understand > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.

  1   2   3   4   >