This is a discussion on How to get PHP code embedded in a database to run within the PHP General forums, part of the PHP Programming Forums category; So, here's the scoop: I have a file upload script which generically encodes any file I upload into a ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
So, here's the scoop: I have a file upload script which generically encodes any file I upload into a series of BLOB fields in a database. I then use a PHP script to emulate that file when requested. (so an <img> tag, for example, might link to file_push.php?choice=1, which is a script that pulls the data from the table, and echoes it, after the appropriate header, out to the browser, thus creating an image.) In general, it works fine, BUT I would like to be able to upload a PHP script in the same fashion and then execute that script when requested. I have tried include(file_push.php?choice=1) and file(file_push.php?choice=1) and both give me an error indicating the file doesn't exist. Any suggestions? ##-----------------------------------------------# Article posted from PHP Freaks NewsGroup http://www.phpfreaks.com/newsgroup Get Addicted: php.genera ##-----------------------------------------------## |