| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Reindl Harald | Date: | September 19 2011 11:27pm |
| Subject: | Re: Quotes around INSERT and SELECT statements' arguments from the mysql CLI and PHP | ||
| View as plain text | |||
Am 20.09.2011 01:23, schrieb Dotan Cohen: > On Tue, Sep 20, 2011 at 01:48, Reindl Harald <h.reindl@stripped> wrote: >> i would use a samll class holding the db-connection with insert/update-methods >> pass the whole record-array, lokk what field types are used in the table >> and use intval(), doubleval() or mysql_real_escape-String >> > By the way, the database connection is include()ed from a file outside > the webroot. This way if Apache is ever compromised or for whatever > reason stops parsing the PHP, the resulting code returned to the > browser won't have the daabase info (especially the password) if stops parsing - yes, but not relevant if it is in a include if the machine is compromised it does not matter someone could read your files can read also the include outside the docroot Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
