You are here: Loading dynamic extension « PHP « IT news, forums, messages
Loading dynamic extension

Posted by Mathieu Dumoulin on 07/21/05 22:17

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация