PHP Database Class: Defending the data

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

evstevemd
Forum Newbie
Posts: 11
Joined: Sat Jun 11, 2011 10:45 pm

Re: PHP Database Class: Defending the data

Post by evstevemd »

Mordred wrote:You can just hardcode them in your PHP source.
Do you think it will be good for install script after have installed the system database will execute another script that will write them in a PHP file as series of array?
I think this will maintain generic (no hard coded values) yet maintain the concept. Is there a better way to archieve this?
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: PHP Database Class: Defending the data

Post by Mordred »

This sounds nice, and you can add a "developer mode" option to do it at runtime while you develop on localhost.
evstevemd
Forum Newbie
Posts: 11
Joined: Sat Jun 11, 2011 10:45 pm

Re: PHP Database Class: Defending the data

Post by evstevemd »

Mordred wrote:This sounds nice, and you can add a "developer mode" option to do it at runtime while you develop on localhost.
cool then let me give it a go!
Post Reply