for some need,I want to upload files using php,
but I don't know how to do,
could somebady teach me?
(pragram code)
could this freeweb service run this function?
for some need,I want to upload files using php,
but I don't know how to do,
could somebady teach me?
(pragram code)
could this freeweb service run this function?
Hi there!
If you want to upload a file using PHP, its very simple. Firstly, you use a form and add a file upload control to it and make the action to a PHP file. Now you use the following function:
move_uploaded_file ( $_FILES['userfile']['tmp_name'], string destination )
Here, userfile is the name of the file control in the form and destination is the place where you want to upload the file. It is relative to the curent PHP file on the server.
If you need any other help, feel free to ask me.
Navraj
[email protected]
Hi there!
If you want to upload a file using PHP, its very simple. Firstly, you use a form and add a file upload control to it and make the action to a PHP file. Now you use the following function:
Here, userfile is the name of the file control in the form and destination is the place where you want to upload the file. It is relative to the curent PHP file on the server.Code:move_uploaded_file ( $_FILES['userfile']['tmp_name'], string destination )
If you need any other help, feel free to ask me.
Navraj
[email protected]
Thanks, really interesting !
:shock:
very very good !!! Thanks!.
Bookmarks