Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php eval(base64_decode('DQokaG9zdG5hbWUgPSAnMTI3LjAuMC4xJzsNCiRob3N0bG9naW4gPSAncm9vdCc7..

Decoded Output download


$hostname = '127.0.0.1';
$hostlogin = 'root';
$hostpassword = '';
$databasename = 'billingretail';

//Folder Name Change Only Necessary
$appfoldername = 'billingretail';

$link = mysql_connect($hostname, $hostlogin, $hostpassword) or die('Could not connect Table : ' . mysql_error());
mysql_select_db($databasename) or die('Could not select database'. mysql_error());

//echo $_SERVER['REQUEST_URI'] ; //To get full url. 
$currentworkingdomain = $_SERVER['SERVER_NAME']; //To get only server name.
$currentworkingdomain = 'http://'.$currentworkingdomain;

$applocation1 = $currentworkingdomain.'/'.$appfoldername; //Used inside excel export options on reports module.
$databasename = $databasename; //Used inside autoitemsearch2.php / autoitemsearch2purchase.php

Did this file decode correctly?

Original Code

<?php eval(base64_decode('DQokaG9zdG5hbWUgPSAnMTI3LjAuMC4xJzsNCiRob3N0bG9naW4gPSAncm9vdCc7DQokaG9zdHBhc3N3b3JkID0gJyc7DQokZGF0YWJhc2VuYW1lID0gJ2JpbGxpbmdyZXRhaWwnOw0KDQovL0ZvbGRlciBOYW1lIENoYW5nZSBPbmx5IE5lY2Vzc2FyeQ0KJGFwcGZvbGRlcm5hbWUgPSAnYmlsbGluZ3JldGFpbCc7DQoNCiRsaW5rID0gbXlzcWxfY29ubmVjdCgkaG9zdG5hbWUsICRob3N0bG9naW4sICRob3N0cGFzc3dvcmQpIG9yIGRpZSgnQ291bGQgbm90IGNvbm5lY3QgVGFibGUgOiAnIC4gbXlzcWxfZXJyb3IoKSk7DQpteXNxbF9zZWxlY3RfZGIoJGRhdGFiYXNlbmFtZSkgb3IgZGllKCdDb3VsZCBub3Qgc2VsZWN0IGRhdGFiYXNlJy4gbXlzcWxfZXJyb3IoKSk7DQoNCi8vZWNobyAkX1NFUlZFUlsnUkVRVUVTVF9VUkknXSA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