![]() |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2003
Posts: 9
|
PHP file upload
I am trying to upload a picture through PHP but the move_uploaded_file function always fails. I've tried using absolute and relative file paths but none seem to work.
Code:
$filepath = "logo.jpg";
move_uploaded_file($_FILES["pic"]["tmp_name"], $filepath) or die("error");
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|