How to get PHP code embedded in a database to run

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-22-2004
Chris Matthews
 
Posts: n/a
Default How to get PHP code embedded in a database to run


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
##-----------------------------------------------##
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0