Re: Need Help in escaping " and\

From: Date: Thu, 14 Nov 2002 10:07:32 +0000
Subject: Re: Need Help in escaping " and\
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124400@lists.php.net to get a copy of this message
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


« previous php.general (#124400) next »