Re: Re: Help with directory !

From: Date: Fri, 30 Nov 2001 08:46:46 +0000
Subject: Re: Re: Help with directory !
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-76159@lists.php.net to get a copy of this message
$loc = "doos.txt"; $loc = "files\doos.txt"; don't put .\ to reference the current directory. if you were trying to move up a directory to access 'files' then $loc= "..\files\doors.txt". Just a thought, I've coded something for a windows box once, and remember it was finicky about stuff. but then again, to the best of my memory i thought you could use forwards slashes in php code for windows too. =) ----- Original Message ----- From: "De Necker Henri" <deNeckerH@ford.co.za> To: "PHP-General (E-mail)" <php-general@lists.php.net> Sent: Friday, November 30, 2001 1:37 AM Subject: RE: [PHP] Re: Help with directory ! > 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? > > > -----Original Message----- > From: Fred [mailto:fred.nospam.please@querymagic.com] > Sent: 30 November 2001 10:25 > To: php-general@lists.php.net > Subject: [PHP] Re: Help with directory ! > > > The first one looks like a *nix directory and the second one looks like a > windows direcrory. Perhaps it will work if you switch your slashes around. > > Fred > > De Necker Henri <deNeckerH@ford.co.za> wrote in message > news:3A8ED7A62794D311AA7700508B6164EC08DCA3F2@SCPTS01... > > Hi there.Im cant just get to access a file in a directory form my > localhost > > dir. > > The file : $loc = "./doos.txt" i can access, > > > > but the following i can't : $loc = ".\files\doos.txt" > > What am i doibg wrong? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#76159) next »