Re: Creating files with PHP - need help

From: Date: Thu, 10 Oct 2002 08:17:38 +0000
Subject: Re: Creating files with PHP - need help
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-16307@lists.php.net to get a copy of this message
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" <lamoreira@bes.pt> wrote in message 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" <sviss@nospam.dk> To: <php-windows@lists.php.net> 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 >

« previous php.windows (#16307) next »