News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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

CodeIgniter.com: Amazing Progress Report & Addition of IRC to CodeIgniter.com

Box UK Labs: Dependency Injection and Reflection library

Dan Scott's Blog: Oooh...looks like I've got (even more) work cut out for me

PHPMaster.com: Using SPL Iterators, Part 2

Matthew Turland's Blog: Environmental Awareness Quickie


Community Events

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


composer interview series php7 framework language list application laravel part2 symfony yii2 conference example introduction opinion api podcast community project

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