php - full path to upload files to server -


I am getting an error while uploading the file

I uploaded the file that uploads the file The problem is that I'm calling it with a different file and different folders, which means that my folder on which the image folder is changing.

  WARNING: move_uploaded_file (http: // localhost)  

(I have the folder name - "pictures / user files")

  /dogger/images/usersFiles/13981072220-1.jpg) [function.move-uploaded-file]: failed to open the stream: HTTP wrapping in the \ "programming program (x86) \ wamp \ www \ dogger Does not support: 127: Warning: move_uploaded_file () [function.move-uploaded-file]: 'C: \ Program Files (x86) \ wamp \ tmp \ php9D89.tmp' to 'Unable to move to http: http : // func \ func.global.php: //localhost/dogger/images/usersFiles/13981072220-1.jpg 'In: \ Program I'm running a code from my local computer (x86) \ wamp \ www \ dogger \ func \ func.global.php on line 127   

:

  if ($ _SERVER ['REMOTE_ADDR'] == "127.0.0.1") $ usersFiles = 'http: // local host / dogger / images / usersFiles /'; else $ usersFiles = '/ home / israelig / public_html / sites / dogger / pictures / usersfiles / '; $ [[File '] [' name '] [$ i]))   $ [' file '] [' tmp_name '] [$ i], $ usersfiles  

The error message says, move_uploaded_file does not support writing HTTP you Local file path , no URL.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -