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.

More: http://www.whenpenguinsattack.com/2007/10/09/how-to-create-a-self-extracting-php-script/

0 comments