Re[2]: [PHP-WIN] Backslashed Quotes
| From: | Gonzalo Vera | Date: | Wed, 04 Oct 2000 23:30:48 +0000 |
| Subject: | Re[2]: [PHP-WIN] Backslashed Quotes | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2942@lists.php.net to get a copy of this message | ||
Quite true, I'll play psychic <8-O and give it a guess: you might be
trying to call some filename or something like that using backslahes,
windows-style. Since in win you need these backslashes, which are the
standard "escape" character in php, to "write" a backslash you first
have to escape, and then specify the backslash, just as if you want to
quote inside an echo or a variable definition you write:
echo "Hello \"world\""; //to quote "world"
$foo="Great and most \"venerated\" bar"; // quote "venerated"
So if you want to specify a path or so, you escape first:
$path="c:\\mydir\\myfile"; // result: "c:\mydir\myfile"
Did I guess right?
Gonzalo.
> It's reaaaaally hard to know what the problem is and help you with what
> you've described below. Not all of us a psychic! :o) Anyway, give some
> sort of indication of the actual code and the error messages or whatever it
> is that indicates it isnt working and people will be more than happy to
> help!
> Matt
> -----Original Message-----
> From: John Timor [mailto:john@supertimor.net]
> Sent: Thursday, 5 October 2000 9:14 AM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Backslashed Quotes
> Hi,
> I'm quite new to PHP.
> I'm using the PHP 4.0 CGI version for Win32 with Apache 1.3.12 on Win98.
> I encounter problems with a php script containing backslashed quotes : \"
> What am I supposed to do to make it work on win98 ??
> (the same script runs quietly on a linux apache server)
> This question may have been asked thousand times but if someone is nice
> enough to answer me :) it'll be great !
> Thanks,
> John.
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net