note 41921 deleted from function.move-uploaded-file by tomsommer

From: Date: Mon, 26 Apr 2004 17:08:42 +0000
Subject: note 41921 deleted from function.move-uploaded-file by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-68825@lists.php.net to get a copy of this message
Note Submitter: shimon@schoolportal.co.il ---- <? // tip by shimon doodkin $mydir=dirname(__FILE__)+"/"; echo "the directory relative to this file is $mydir"; //more examples: $mydir=realpath(dirname(__FILE__)+"/../"); move_uploaded_files($_FILES['userfile']['tmp_name'], dirname(__FILE__)+'/uploads/'.$_FILES['userfile']['name']); include(dirname(__FILE__)+"/../lib/file.php") ?>

« previous php.notes (#68825) next »