Hi everyone.
I'm trying to do a
little script to upload file.
I'm wondering if this solution
for the path is good enough.
Tree:
dir_root
--admin
-- form_upload.php
images
index.php
the nitty-gritty:
$real_path = realpath("../images");
$imagename = basename($FILES['image_file']['name']);
$newimage = $real_path."/".$imagename;
move_uploaded_file($FILES['image_file']['tmp_name'], $newimage);
Advice 🙂
Bye.
Whisher