Jump to content

[SOLVED] How to encrypt a PHP file with MYSQL querys


adamlacombe

Recommended Posts

Well I have a install file for my script but I want to encrypt it because I have an email function that I dont want taken out, I tried a PHP file encrypter but it failed because it was not for MYSQL.

 

Do you know of any free / cheap?

Link to comment
Share on other sites

You can encrypt php files with the likes of ioncube. Does the php not contain the mysql queries?

Are you trying to encrypt a .sql file (i.e text file containing your create database queries)? You cannot do this if so. Why not use a php file to create the database and insert the data. Then it can be encrypted.

Link to comment
Share on other sites

I have a php file with mysql querys and I want the whole file encrypted, php and mysql, all of it

Its your description thats a little misleading. A php file containing code that connects to a mysql database and runs queries is simply php, not mysql. Mysql is a database engine.

 

To encode php files use ioncube

http://www.ioncube.com/

 

However when deploying it on servers they will require the ioncube libraries to decode. Good news is that a lot of hosts have installed the modules, if not you can supply with your app.

Link to comment
Share on other sites

Parse error: syntax error, unexpected '@' in /home/media/public_html/ggg/twilight_loader.php(119) : eval()'d code on line 12

Getting that error.

Is their a way to still use an @ symbol?

The problem is this:

mail(___@media-script.com,New Install,$url,$email);

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.