Hi there,
I'm trying to setup a php script for users to be able to upload. I got the upload piece working but what's killing me is the directory timestamp. So, the scenario is that when a user uploads a file, the script will place that file on a directory based on the current date. Creating the directory based on the date is easy as I can write something in perl and put that in cron.
My variable in upload.php is this:
$file_dir = "/home/httpd-2.2.3/htdocs/"date("m.d.y");
I've seen other examples where people hard-code the path but I can't in this situation. Any advice? Is this even possible in php? Thank you.
-twantrd
I'm trying to setup a php script for users to be able to upload. I got the upload piece working but what's killing me is the directory timestamp. So, the scenario is that when a user uploads a file, the script will place that file on a directory based on the current date. Creating the directory based on the date is easy as I can write something in perl and put that in cron.
My variable in upload.php is this:
$file_dir = "/home/httpd-2.2.3/htdocs/"date("m.d.y");
I've seen other examples where people hard-code the path but I can't in this situation. Any advice? Is this even possible in php? Thank you.
-twantrd