You might also consider looking at variable variables and dynamic PHP
(writing and evaluating php expressions on the fly).
http://us.php.net/variables.variable
http://us.php.net/eval
Writing the PHP to a file could be a potential security vulnerability.
Especially if this was going to go into usage within a high usage web
app. =)
Adam
Daniel Brown wrote:
On 6/26/07, Marius Toma <marius@xxxxxxxxxxxxxxxxxxxx> wrote:
I can not believe how stupid I can be sometime.
I was trying to create a file, but a file with the same name already
existed on the server - and I did not have the write permission to it,
so from here I got the error message saying that I can not create the
file :(
Thank for your time,
Marius
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you absolutely *must* create PHP files on-the-fly, and only
need them for a one-off thing, put them in a specific directory that
only the web server has access to read, write, and execute, and then
delete the files immediately after you've used them as needed.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php