Good day!
For security levels in the source code there is a feature natively in PHP PHP classes that turns into bytecode files. Is it possible you put this feature in the Editor PHPCodeLobster? Then we would have such a button compiler class.
Enable the following options in the php.ini file:
extension = php_bcompiler.dll (windows)
php_bcompiler.so extension = (* nix)
extension = php_bz2.dll
more information:
http://clares.wordpress.com/2010/09/30/ ... asses-php/=================================================
file: compiler.php
<?
/ / Create a new file called Usuario.class
$ fh = fopen ("usuario.class", "w");
/ / Directs the compiler to the file is still empty
bcompiler_write_header ($ fh);
/ / Stores the contents of our class in the new file
bcompiler_write_file ($ fh, ". / Usuario.class.php");
bcompiler_write_footer ($ fh);
/ / Close the file compiled
fclose ($ fh);
?>
=================================================
file: Usuario.class.php
<php
Class User {
public $ name;
public $ email;
public function __construct ($ name, $ email) {
$ this-> name = $ name;
$ this-> email = $ email;
echo "<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js'> </ script>";
echo "tst <h3> Title </ h3>";
echo "<script> alert ('Tst');</ script>";
echo "<script> $ ('h3'). html ('Changing text'). css ({'fontSize': '30px ',' color ':' red '});</ script>";
}
public function getName () {
return $ this-> name;
}
public function getmail () {
return $ this-> email;
}
}
?>
=================================================
file: usuario.php
<php
/ / Load the compiled class
bcompiler_load ('usuario.class');
/ / Instance of obj, passing the constructor arguments
$ foo = new User ('test',
'teste@gmail.com');
/ / Call the getName method
print $ foo-> getName ();
/ / Call the method getmail
print $ foo-> getmail ();
?>