0

Hello !
i'm working in dreamweaver , and i have 2 lines :

$part="..\fl1\";
echo "OK";

Dreamweaver produce an error in second line.
if i change the first line to $part="..\fl1" everything is ok.
what is the problem with the \ character at the end ?
thank you.

3
Contributors
7
Replies
29
Views
4 Years
Discussion Span
Last Post by diafol
0

This looks like a directory reference, can't you use forward slashes instead?...

$part="../fl1/";
echo "OK";
0

This looks like a directory reference

duh!! i completely missed that..you are probably correct.

0

i need a string that ends with \ , is not a path.
Is possible to have in php ?
Thank you.

0

It's not a path? OK, then do as Jorge suggests - double up your backslash

Out of interest - if it's not a path, what is it?

Edited by diafol

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.