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

 

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.