Monday 16 December 2019

php - Open_basedir restriction oddness

I'm having a problem with move_uploaded_file in PHP, with the returned error message telling me that the open_basedir restriction is in place (which I've set) and that on the path I'm attempting to write to is not within the allowed paths, but it is (and is clearly displayed on the error message).



Has anyone come across this before?



Edit:



Sorry, the error message might help!:





Unhandled Error (/var/www/vhosts/(myhost)/libs/imanager.php, 226): 2,
'...move_uploaded_file() [function.move-uploaded-file]:
open_basedir restriction in effect.
File(/var/www/vhosts/(myhost)/httpdocs/tributes/images/precrop/1317227884228.jpg)
is not within the allowed path(s):
(/var/www/vhosts/(myhost)/httpdocs/tributes/images/precrop/:/tmp)...'


No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...