Hello,
I have in trouble with safe mode.
firstly I generate a new folder with PHP by the below code :
<?
$old_mask=umask(0);
mkdir("$folder_name",0777);
umask($old_mask);
?>
And copy uploaded files to this folder by this :
<?
move_uploaded_file($file,$folder_name."/".$file_name);
?>
Everything is ok yet. The folder is generated and file is copied in it. but when I want to use getimagesize() I get an error with the SAFE_MODE restriction. The error says that the uids are different so restriction takes place.
Has anyone got an idea about how I can solve this problem or did I make a mistake?
Any help or even any suggestion is really appreciated.
Much thanks in advance.