What is the errormessage you get? Depending on your log_level err message may not be displayed but stored to the webserver's logfile.
Might be, that either safe mode is disallowing the usage of exec or the function is disbaled in general in your php.ini.
Just another thing, whereever the content of $file_data['dir'], carfully verify it's content for validity.
|