hi i can't seem to get php 4.2.2 to execute commands with the pipe operator in safe mode. i am issuing this command
passthru("jpegtopnm picture.jpg | pnmscale .5 | pnmtojpeg >picture_small.jpg");
i can't seem to get php to pipe the output of one command to the other.
also, the > doesn't work...for instance
passthru("jpegtopnm picture.jpg > picture.pnm");
however,
passthru("jpegtopnm picture.jpg");
does write the pnm binary text to the screen.
someone please help me out.
i also have jpegtopnm, pnmtojpeg, and pnmscale in my safe mode exec dir.
helton
executing commands with pipe operator in safe mode
Moderator: General Moderators
-
Tubbietoeter
- Forum Contributor
- Posts: 149
- Joined: Fri Mar 14, 2003 2:41 am
- Location: Germany
yes i am able to run these commands from the command line.
i'm not receiving any error messages, i'm just not getting a response.
in order to use redirection operators do you need to have a shell running? when i run 'ps' from a php script it shows that there are no processes running. (i put 'ps' in my safe mode exec dir)
helton
i'm not receiving any error messages, i'm just not getting a response.
in order to use redirection operators do you need to have a shell running? when i run 'ps' from a php script it shows that there are no processes running. (i put 'ps' in my safe mode exec dir)
helton