CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript, Python code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Thu Mar 28, 2024 8:09 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: PHP bcompiler em .class bytecode
PostPosted: Thu Jan 19, 2012 1:09 pm 
Offline

Joined: Thu Jan 19, 2012 12:59 pm
Posts: 0
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 ();
?>


Attachments:
PHP_bcompiler.zip [1.85 KiB]
Downloaded 3744 times
Top
 Profile  
 
 Post subject: Re: PHP bcompiler em .class bytecode
PostPosted: Thu Jan 19, 2012 3:56 pm 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3931
Hi, Cadesuel.

We understand your suggestion.
We will look at the ability to add it.

Regards,
Codelobster Team.


Top
 Profile  
 
 Post subject: Re: PHP bcompiler em .class bytecode
PostPosted: Mon May 14, 2012 3:36 am 
Offline

Joined: Wed May 09, 2012 3:57 am
Posts: 14
Any update on this one? Has this feature been added?

_________________
Works like a charm!!! Image


Top
 Profile  
 
 Post subject: Re: PHP bcompiler em .class bytecode
PostPosted: Mon May 14, 2012 7:19 am 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3931
not yet :(


Top
 Profile  
 
 Post subject: Re: PHP bcompiler em .class bytecode
PostPosted: Mon Mar 28, 2016 12:48 pm 
Offline

Joined: Mon Mar 28, 2016 12:46 pm
Posts: 1
Has this feature been added?


Top
 Profile  
 
 Post subject: Re: PHP bcompiler em .class bytecode
PostPosted: Thu Oct 27, 2016 8:21 pm 
Offline

Joined: Thu Oct 27, 2016 8:20 pm
Posts: 1
I'm interested in the same question too. I greet you.

_________________
wypadanie włosów witaminy privatlån ränta liderin bez recepty störst penis


Top
 Profile  
 
 Post subject: Re: PHP bcompiler em .class bytecode
PostPosted: Mon Oct 31, 2016 3:50 am 
Offline

Joined: Thu Aug 04, 2016 10:06 am
Posts: 46
We understand your suggestion.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2016 phpBB Group