PHP: Cannot see upload directory
I have been struggling for a few days trying to find out how come I cannot move a file(`move_uploaded_file`) from temp to the directory I have setup (`/img/uploads/photos`).

After alot of testing and head scratching, I decided to write into CakePHP's CakeLog whatever is happening in the upload function.

Although I have physically created :`/img/uploads/photos`, when I use `CakeLog::write('debug', 'Does directory exist?: '.json_encode(file_exists('/img/uploads/photos/')));` it logs `false`. Or `is_dir`, also returns `false`

Why is this happening... Can anyone help me out!
PHP: Cannot see upload directory
===

I have been struggling for a few days trying to find out how come I cannot move a file(`move_uploaded_file`) from temp to the directory I have setup (`/img/uploads/photos`).

After alot of testing and head scratching, I decided to write into CakePHP's CakeLog whatever is happening in the upload function.

Although I have physically created :`/img/uploads/photos`, when I use `CakeLog::write('debug', 'Does directory exist?: '.json_encode(file_exists('/img/uploads/photos/')));` it logs `false`. Or `is_dir`, also returns `false`

Why is this happening... Can anyone help me out!