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
Post a Comment