Re: Duplicating code between packages.

From: Date: Sat, 14 Jun 2003 16:07:18 +0000
Subject: Re: Duplicating code between packages.
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-17457@lists.php.net to get a copy of this message
----- Original Message ----- From: "Pierre-Alain Joye" <paj@pearfr.org> > Temp folders and files can be a really pain to work with, PEAR solves > much of them. In somedays, it should even use the user config settings > directly, keeping the whole thing consistent. > As easy as: <?php include 'PEAR/Config.php'; $config = PEAR_Config::singleton(); $php_dir = $config->get('php_dir'); ?> There is no var for setting a temp folder in the pear cmd config, but you could use System::mktemp() or System::tmpdir() for that. Tomas V.V.Cox

« previous php.pear.dev (#17457) next »