Re: DIRECTORY_SEPARATOR and packages download default dir
| From: | Stig S. Bakken | Date: | Thu, 30 May 2002 06:27:09 +0000 |
| Subject: | Re: DIRECTORY_SEPARATOR and packages download default dir | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6636@lists.php.net to get a copy of this message | ||
On Wed, 2002-05-29 at 19:31, Urs Gehrig wrote:
> dear all
>
> i would like to ask two things:
>
> 1) DIRECTORY_SEPARATOR
> i did <?php echo DIRECTORY_SEPARATOR; ?> and got "\" in return. is this a
> system variable? i am asking because i did not find it while performing a
> c:\>env command.
It's defined by PHP, basically using #ifdef WIN32 :-)
> 2) packages default storage dir
> can i configure the default directory for storing packages downloaded via:
>
> c:\>pear download PEAR
>
> because in that case, the package will reamin like c:\>PEAR-0.11.tgz. but it
> would be cool to have it in c:\php\pear\packages\PEAR-0.11.tgz. if it is not
> configurable, it would be nice to have it ;)
Good idea. Will add a download_dir parameter to PEAR_Config (defaulting
to ".").
> thanx, urs
>
> ps: sorry for asking all this; i am trying to understand why Installer.php
> (it's a guess) does not work properly on win32; at least at my installation
> ;)
Don't be sorry, we need all the help we can get for making PEAR work
properly on Windows.
- Stig