adamlacombe Posted July 15, 2009 Share Posted July 15, 2009 I was wondering if there was a way to encrypt mysql querys? I have googled and googled and no results, I don't know if maybe im asking the wrong question or what. Quote Link to comment Share on other sites More sharing options...
rhodesa Posted July 15, 2009 Share Posted July 15, 2009 Can you elaborate more on what you mean? Quote Link to comment Share on other sites More sharing options...
adamlacombe Posted July 15, 2009 Author Share Posted July 15, 2009 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? Quote Link to comment Share on other sites More sharing options...
JonnoTheDev Posted July 15, 2009 Share Posted July 15, 2009 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. Quote Link to comment Share on other sites More sharing options...
adamlacombe Posted July 15, 2009 Author Share Posted July 15, 2009 Thats what im doing.. I have a php file with mysql querys and I want the whole file encrypted, php and mysql, all of it. Theres a way? Quote Link to comment Share on other sites More sharing options...
JonnoTheDev Posted July 15, 2009 Share Posted July 15, 2009 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. Quote Link to comment Share on other sites More sharing options...
adamlacombe Posted July 15, 2009 Author Share Posted July 15, 2009 ok, I'll see how it works out. Thanks! Quote Link to comment Share on other sites More sharing options...
adamlacombe Posted July 15, 2009 Author Share Posted July 15, 2009 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); Quote Link to comment Share on other sites More sharing options...
rhodesa Posted July 15, 2009 Share Posted July 15, 2009 where are your quotes? Â mail("___@media-script.com","New Install",$url,$email); Quote Link to comment Share on other sites More sharing options...
adamlacombe Posted July 15, 2009 Author Share Posted July 15, 2009 ooh, I need quotes? lol I didnt know that. So that would fix that error? Quote Link to comment Share on other sites More sharing options...
rhodesa Posted July 15, 2009 Share Posted July 15, 2009 It's a string, so you need quotes around it. That should fix that error. Quote Link to comment Share on other sites More sharing options...
adamlacombe Posted July 15, 2009 Author Share Posted July 15, 2009 Yep it did. Thanks for the help!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.