or u could add an other \ to tha path

"c:\\name.txt", "wb"

luck ....

toby 

--- Luis Moreira <[EMAIL PROTECTED]> wrote: > When you
refer to a ROOT; to create a file, you are
> not referring to the MACHINE's root, but to the FILE
> SYSTEM ROOT.
> That is why the file goes to HTDOCS.
> Try creating the file using an ABSOLUTE PATH, e.g
> "c:\Docs\example-dir\54.txt"
> 
> Regards,
> Luis
> 
> ----- Original Message ----- 
> From: "Sviss" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 08, 2002 9:46 PM
> Subject: [PHP-WIN] Creating files with PHP - need
> help
> 
> 
> > Hi NG.
> > 
> > I'm having problems creating files at a certain
> location.
> > If I attemt to create a file it gets created in
> the rootdir (htdocs) even
> > though I add a path infront of the file name. I've
> tried severel ways of
> > adding a path but nothing works.
> > 
> > eksample: "/nef/articles/54.txt"
> > 
> > File 54.txt gets created but not at the intented
> location, instead it gets
> > created in htdocs.
> > 
> > Can anyone help me by telling me how I'm suppose
> to do this?
> > I'm running PHP on Win98 with Apache.
> > 
> > ~ Sviss
> > 
> > 
> > 
> > 
> > -- 
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> > 
> 
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to