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

Posted by "Richard Lynch" on 07/22/05 05:26

On Thu, July 21, 2005 12:17 pm, Mathieu Dumoulin said:
> 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?

If your PHP script is on the same drive as the GTK lib, then you can use
phpinfo() to find out the variable name that has your drive letter.

Something like $script_filename or somesuch.

Insert the USB device, note the drive letter, run php -i | grep "X:"

Course, on a Mac or Linux box, your USB device won't have a drive "letter"
per se -- You'll have the correct PATH though, for the OS it's on, which
is far far more portable.

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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