Re: [PHP] Re: Permissions

2013-08-26 Thread Ashley Sheridan
On Tue, 2013-08-27 at 16:16 +0930, David Robley wrote: > Ethan Rosenberg wrote: > > > Dear List - > > > > Tried to run the program, that we have been discussing, and received a > > 403 error. > > > > rosenberg:/var/www# ls -la StoreInventory.php > > -rwxrwxrw- 1 ethan ethan 4188 Aug 26 20:26 St

[PHP] Re: Permissions

2013-08-26 Thread David Robley
Ethan Rosenberg wrote: > Dear List - > > Tried to run the program, that we have been discussing, and received a > 403 error. > > rosenberg:/var/www# ls -la StoreInventory.php > -rwxrwxrw- 1 ethan ethan 4188 Aug 26 20:26 StoreInventory.php > > rosenberg:/var# ls -ld www > drwxrwxrw- 37 ethan eth

[PHP] Permissions

2013-08-26 Thread Ethan Rosenberg
Dear List - Tried to run the program, that we have been discussing, and received a 403 error. rosenberg:/var/www# ls -la StoreInventory.php -rwxrwxrw- 1 ethan ethan 4188 Aug 26 20:26 StoreInventory.php rosenberg:/var# ls -ld www drwxrwxrw- 37 ethan ethan 20480 Aug 26 20:26 www I had set the

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

[PHP] Re: exec and system do not work

2013-08-26 Thread Tim Streater
On 26 Aug 2013 at 22:01, PhD Ethan Rosenberg wrote: >>> if( !file_exists("/var/www/orders.txt")); ^ | What's the semicolon doing there ---+ >>> { >>> echo system("touch /var/www/orders.txt", $ret);

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] How to send "post"-variables in a "Location" header

2013-08-26 Thread Tamara Temple
On Aug 26, 2013, at 2:48 PM, Ajay Garg wrote: > Hi all. > > I have a scenario, wherein I need to do something like this :: > > ### >$original_url = "/autologin.php"; >$username = "ajay"; >$password = "garg"; >

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] How to send "post"-variables in a "Location" header

2013-08-26 Thread Matijn Woudt
On Mon, Aug 26, 2013 at 9:48 PM, Ajay Garg wrote: > Hi all. > > I have a scenario, wherein I need to do something like this :: > > ### > $original_url = "/autologin.php"; > $username = "ajay"; > $password = "garg"

Re: [PHP] How to send "post"-variables in a "Location" header

2013-08-26 Thread ma...@behnke.biz
> Ajay Garg hat am 26. August 2013 um 21:48 > geschrieben: > > > Hi all. > > I have a scenario, wherein I need to do something like this :: > > ### >         $original_url = "/autologin.php"; >         $username = "ajay"; >         $pas

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

[PHP] How to send "post"-variables in a "Location" header

2013-08-26 Thread Ajay Garg
Hi all. I have a scenario, wherein I need to do something like this :: ### $original_url = "/autologin.php"; $username = "ajay"; $password = "garg"; header('Location: ' . $original_url); #

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