PHPNewbie55 Posted January 5, 2008 Share Posted January 5, 2008 I was wondering.. Is putting PHP code in a MySQL table secure..?? What I have is a MySQL Table that I put PHP code in... Then in my pages I call the PHP code with something like this.. <%php-code-1%> <%php-code-2%> The reason I do this is so that I can place these elements in my pages without having to cut and paste the entire code... I just wanted to know if there are any security issues with this.. Just curious to know what some of your thoughts on this are... Quote Link to comment https://forums.phpfreaks.com/topic/84638-just-a-quick-question-about-security/ Share on other sites More sharing options...
Ken2k7 Posted January 5, 2008 Share Posted January 5, 2008 I'm saying it's just redundant and unnecessary. What's wrong with having PHP? If someone wanted to hack your system that bad, they can just as easily pull your data from a database if they wanted to. Quote Link to comment https://forums.phpfreaks.com/topic/84638-just-a-quick-question-about-security/#findComment-431296 Share on other sites More sharing options...
PHPNewbie55 Posted January 5, 2008 Author Share Posted January 5, 2008 How is it redundant....????? The codes in the MySQL database are pretty big... With this option all I have to do to place that code in one or more of my templates is to just put the <%php-code-1%> where ever I want. If I want to tweak that code I can tweak it in the database and it's done... If I copied and pasted that code every where I would have a lot of places to fix... I guess I could just put the code in a seperate PHP file and INCLUDE it... Quote Link to comment https://forums.phpfreaks.com/topic/84638-just-a-quick-question-about-security/#findComment-431302 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.