Hi, I gave the following php script:
#!/usr/bin/php -f
<?php
require_once(dirname(dirname(__FILE__))."/modules/common/common.config.inc.php");
$path = $conf["root"]."/media/images/tricouri/tmp/";
$command = "rm -Rf".$path."*";
if(exec($command))
{
echo "Folder cleared\n";
}
else
{
echo "Folder clear failed\n";
}
?>
I want to delete some .png files from the ./tmp folder and I receive a rm error:
The rm -rf command sintax is ok on the linux bash, but from php i receive the error.
Php safe mode is off. Can someone help, please ?