Re: Using a single php entry file for a whole site. [message #181877 is a reply to message #181875] |
Thu, 20 June 2013 22:34 |
Christoph Michael Bec
Messages: 207 Registered: June 2013
Karma:
|
Senior Member |
|
|
Am 20.06.2013 23:38, schrieb The Natural Philosopher:
> I think the general ideas of how to do it is now pretty clear, but there
> are some detail issues as to how much can and should go IN the database.
>
> I think anything small can, but big images and videos? Hmm.
Why do you want to put images and video files in the database?
> Can you execute PHP code stored in a database??
>
> I suppose in the limit you could write it to a file, and once written
> include() it?
>
> is there a better way? eval()? It comes with health warnings..
>
> ..select page from code_table where id='12345'..eval (page)...hmm.
Writing PHP code stored into a database to a file and including it is
not safer than eval()ing it in the first place, IMO.
--
Christoph M. Becker
|
|
|