Loading dynamic extension

From: Date: Thu, 21 Jul 2005 19:17:11 +0000
Subject: Loading dynamic extension
Groups: php.general 
Request: Send a blank email to php-general+get-219141@lists.php.net to get a copy of this message
Hi, ive got two hard questions for you guys. 1. I'm trying to load an extension dynamically using DL(): if(!extension_loaded('gtk')){ dl('php_gtk.'.PHP_SHLIB_SUFFIX); } The problem with this is that i can't load the extension correctly since the software is running from a USBKEY. These removable medias do not necessarely always have the same drive letter and i can't ask people to copy the software on their machine since the software will write back on the key at a specific location. 2. Further more, i can't seem to find a way to know from which path or drive my usbkey is operating. There is maybe something i missed somewhere that's why im asking. Anyone ever found something about the CLI current run path in $_ENV or $_SERVER var? Mathieu Dumoulin

« previous php.general (#219141) next »