News Feed
Jobs Feed
Sections




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

JSLabs:
How to create a self extracting PHP script
October 09, 2007 @ 11:33:00

Justin Silverton has posted about a method he's found to create a self-extracting PHP script for your application:

PHP has a built-in command called __HALT_COMPILER__. This command Halts the execution of the compiler. This can be useful to embed data in PHP scripts. Below is an example of a self-extracting php script. When executed, a second php file will be extracted in the same directory called testscript1.php.

The post includes the code and a brief explaination of how it works.

0 comments voice your opinion now!
selfextracting script extract example selfextracting script extract example


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso's Blog: Playing with the new PHP5.4 features

Jason Hinkle's Blog: Build a Backbone.js Application with PHP

Kevin Schroeder's Blog: A little more advanced ZF2 EventManager usage

Fernando Bassani's Blog: Putting the PHP/Java Bridge to work - I

Sameer Borate's Blog: How not to create a Random string


Community Events











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


facebook framework package release threedevsandamaybe series symfony2 hhvm language introduction application opinion unittest security hack composer podcast install component code

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