
March 24th, 2002, 05:27 PM
|
|
Registered User
|
|
Join Date: Jun 2001
Posts: 12
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
configuration error i supose
Hello!
I tried to run gzip from php script with
exec(gzip /var/www/site/test.php)
system(gzip /var/www/site/test.php)
but it doesn't work
i have tried in many ways also with full paths
exec(/usr/bin/gzip /var/www/site/test.php)
it never returned me anything...no error...nothing
i have even tried
$out = system("ls -la 2>&1");
print($out);
and
$out = system("/usr/bin/ls -la 2>&1");
print($out);
if i tried backtick `
$out = `ls -la`;
then i got error:
Warning: Cannot execute using backquotes in safe mode in /var/www/site/test2.php on line 2
I have checked php.ini if there is some restriction for these functions but nothing....
I am desperate...is there anything wrong on my server..maybe in httpd.conf...I checked it but i am no linux expert so i rather don't tuch things i don't know...
please help!
Thank you
Last edited by djcybex : March 24th, 2002 at 05:41 PM.
|