I have a script that uploads a file. It then creates a new folder and moves the uploaded file to that folder along with the another script.
After the file is moved, I need to run a second script that resides in the new folder. But I need the second script to use its path and NOT the path of where it is called/executed from. (the upload script)
This is how I have tried to execute the script from the upload script.
exec("php-cli uploads/".$dirname."/".$file_name."/generate_thumbs.php");
I have error reporting on but nothing is generated. Any ideas?