07-14-2009, 12:59 PM
|
#1 (permalink)
|
|
The Contributor
Join Date: Feb 2009
Posts: 28
Thanks: 10
|
php define usage
Hi i am using define as in example below but it is giving me error about path which is i am replacing. when i do not use define and type path directly in code i.e. "uploads/" everything works fine .what am i doing wrong here?
PHP Code:
define( "FILEPATH", "/uploads/" ) ;
move_uploaded_file($_FILES['files']['tmp_name'], FILEPATH . $_FILES['files']['name']);
thanks
|
|
|
|