I've made a script that makes a list of al the images in a folder of the primary site.
The script is running from an ibay.
On e-smith 4.1.1 its ok, on SME 5.0 its ok, but after an upgrade to SME 5.1.2 i receive an error :S
The error is: open_basedir restriction in effect.
In the PHP manual it states its something to do with safe_mode, but thats off in the default php.ini as far as i can tell.
Anyone have a solution?
What has changed and how can i undo it?
(piece of the script)
$path="$imgupdir";
$handle=opendir($path);
while ($file = readdir($handle)) {
$file_path = "$path/$file";
if ($file != "." && $file != ".." && substr($file,0,1)!=".") {
if(!is_dir($file_path)) {
echo ("
$file ");
}
}
}
closedir($handle);
?>
The line 2 creates the error apparently ... but on SME 5.0 its ok