While uploading image using php function move_uploaded_file() its working locally bt have error "open_basedir restriction in effect." -


I have written this php code to upload the server to upload an image from any remote computer

  if ((($ $ _FILES ["file"] ["type"] == "picture / gif") ($ _FILES ["file"] ["type"] == " Image / JPEG ") ($ _FILES [" file "] [" type "] ==" image / jpg ") ($ _FILES [" file "] [" type "] ==" picture / pjepag " )) & Amp; amp; $ _FILES ["file"] ["size"] <1000000)) {$ filename = $ _ files ["file"] ["name"]; Move_uploaded_file ($ _ files ['file'] ['tmp_name'], "upload /.. File file name"); } Else {resonant "invalid file"; Exit; }  

Can you try changing your upload folder to:

  move_uploaded_file ($ _ files ['file'] ['tmp_name'], ".//".$ file name upload);  

Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -