> The first one works both ways!O and im working on windows
> This works fine : $loc = "./doos.txt"
> This works fine : $loc = ".\doos.txt"
> 
> The second one does work at all!
> Is it in the correct order/way?

How come you say "this one works fine" to the second row and in the next
deny it? Man ..

Anyway. PHP was first written unix in mind thus it use unix style
directory seperators eg / and not \. Reason is that \ is escape
character. For example \t is tab and \n is new line. But if you still
insist on using \ as directory seperator, you got to escape it using
another \, for example: 

$loc = ".\\some\\dir\textfile.txt"


-- 
 | ,_,    Jani Mikkonen, Portal System Administrator, +358456700349
 |(O,O)               [EMAIL PROTECTED]
 |(   )    Public pgp key @ http://www.mikkonen.org/jani/keyw.html
 +-"-"-------] Save the whales, feed the hungry and free the mallocs  
 |

Attachment: msg41535/pgp00000.pgp
Description: PGP signature

Reply via email to