Hi
\ is the escape character:
$real_path=$real_path."\DefaultFld\SubFld\";
should be
$real_path=$real_path."\\DefaultFld\\SubFld\\";
or
$real_path .= "\\DefaultFld\\SubFld\\";
if you want to shorten it.
Ppf wrote:
Hi All:
I am trying to generate the directory path dynamically
to save the Uploaded file. when i try to concatnate
the string with"\ it generate an error, Hope you guys
can help me in this
here is the code
$real_Path=realpath("../../index.php");
$real_path=$real_path."\DefaultFld\SubFld\";
Here is generate error, I don't know how to escape the
" and \ . I will appreciate your help
Thanks in advance
Prad
__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php