Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 199912

Re: [PHP4BETA] 'use' keyword From: Stanislav Malyshev (stas <email protected>)
Date: 12/02/99

MK>> I would expect it in mosc cases, but not always. Let assume I try to write
MK>> portable and relocatable package, so I always use("../inc/file.inc"), and
MK>> in another place I want ti check if it is included. With absolute path I
MK>> must know the base of the system then, because there is no "../inc/file"
MK>> in $USED_PACKAGES. How about additional get_used_packages_absolute() or
MK>> conditional parameter like get_used_packages($relative=0)?

Here it goes. Don't you feel it's getting more and more kludgy? Maybe it's
good to make it the right way from the start, not to add one symlink
kludge and one absolute path kludge and one here and one there and make it
a complete mess? Just make package("This_And_That") which defines package
and is_included("This_And_That") and maybe make use("This_And_That") first
look for This_And_That.php3 in the path...

-- 
Stanislav Malyshev   stas <email protected>          
+972-50-624945

-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>