An absolute path would be like:
/var/www/html/project/temp, so you'd need to put the entire path.
A relative path would be from where the script is executing:
./project/temp/
Using absolute paths can be tricky, because if you move it to a windows machine, you can always loose that path. You can use like:
$abspath = getcwd() . "/temp";
If the script is running in the project directory it will list the full path, onto which you can add.