News Feed
Jobs Feed
Sections




News Archive
Matthew Turland's Blog:
Environmental Awareness Quickie
July 28, 2008 @ 07:57:00

Matthew Turland came across someone having an issue running his PHP-based IRC bot (Phergie) an an environment where the exec function wasn't allowed:

This causes a warning in the Quit plugin, which uses exec to automatically detection of the full path to the PHP CLI binary on non-Windows systems that it will later use that path to initiate a new PHP CLI process to "restart" the bot.

It check this setting for the future, it was recommended that he look at the SPL ReflectionFunction class (a part of the Standard PHP Library) that would let him check the disabled status of any PHP function (looking at the result of the isDisabled call).

0 comments voice your opinion now!
spl isdisabled reflection exec irc bot phergie exec


blog comments powered by Disqus

Similar Posts

Michael Kimsal's Blog: Me griping about PHP :) (closures this time)

Robert Basic's Blog: Online resources for Zend Framework

Lorenzo Alberton's Blog: Create a video preview as animated GIF with FFmpeg and PHP SPL

Matthew Turland's Blog: Environmental Awareness Quickie

Greg Beaver's Blog: Working towards Pyrus and PEAR2, check it out or miss out


Community Events











Don't see your event here?
Let us know!


tool language object interview community code introduction composer functional conference example release development zendframework2 podcast series opinion unittest framework testing

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework