Results 1 to 1 of 1
Hello!
I am having trouble when trying the following:
The webserver is running php version 4.4.0, with safe_mode activated. In my trials to export data into either .csv or .xls ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-14-2010 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 2
Problem running shell command from php on Suse 10
Hello!
I am having trouble when trying the following:
The webserver is running php version 4.4.0, with safe_mode activated. In my trials to export data into either .csv or .xls format (tried a bunch of solutions but they either take waaay too long or they block the server resources) I wanted to try writing to a .txt file from shell, by using
.Code:echo some text >> /path/to/file.txt
When executing shell commands in php with safe_mode on, you have to copy the command files (or whatever they are) to php's safe_mode_exec_dir. I have copied echo in the exec_dir, but the command listed above has no effect (although it works when I run it in shell directly). Any thoughts about how I could fix this are appreciated.


Reply With Quote
