Jump to content

Just a quick question about security..


PHPNewbie55

Recommended Posts

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...

Link to comment
https://forums.phpfreaks.com/topic/84638-just-a-quick-question-about-security/
Share on other sites

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...

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.