php file uploading -


file uploading in php use html file tag, instead of file tag can give direct path name...

normal procedure

move_uploaded_file($_files['file']['tmp_name'],'path'.$_files['file']['name'])  

is working fine...

instead give

move_uploaded_file(c:/users/lenovo/desktop/images/img03.jpg,'path/img03.jpg')  

is not working why?.......
need give path name only....
how can it....
other way there doing dis....
can support local server remote server

see first line in documentation:

this function checks ensure file designated filename valid upload file (meaning uploaded via php's http post upload mechanism). if file valid, moved filename given destination.

if file wasn't uploaded, won't move it

what want rename: http://www.php.net/manual/en/function.rename.php

if going across boundary rename cannot cross, want copy() , unlink().


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -