long file or folder names like "Program files" have equivalent short names.
It is most probably
"c:\progra~1" for "C:\Program Files".  To see the short name, right click on
the folder or file and in the properties, check the MS-DOS name.

so your path can be like "C:/progra~1/apache~1/htdocs/abc.txt"

regds,

-----Original Message-----
From: Aidal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 13:48
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Creating files with PHP - need help


If I use full path I get in trouble with spaces in the path like
"c:\program
files\Apache ...", in this case the path would be "c:\program" due to
the
space in the path.
Of cause I could make a new dir on C like "c:\articles" to work around
this,
but if I could get the files into a sub folder of http-server-root that
would be prefered.

"Luis Moreira" <[EMAIL PROTECTED]> wrote in message
00d901c26f78$67228770$5a655080@lamoreira2000">news:00d901c26f78$67228770$5a655080@lamoreira2000...
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

Reply via email to