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

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -