How to get PHP code embedded in a database to run
Next message: yacobson: "email html"
Date: Fri, 22 Oct 2004 17:24:26 -0500
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 NewsGroups
http://www.phpfreaks.com/newsgroups
Get Addicted: php.general
##-----------------------------------------------##
Next message: yacobson: "email html"
Relevant Pages
- Re: automated upload with PHP
... have your script one once per day and upload any images not already ... tiffs and the php script, ... // request local file read permission ... (comp.lang.php) - Re: Using PHP to create folders on web space and upload files?
... I use a web-based database which has online forms that users can use to submit data directly into the database. ... The only problem is that there is no way for them to upload files with each of these application forms, but I require them to upload around 7 documents with each form, so I'm currently looking for workaround to this issue. ... Therefore, it would be ideal if this form could not only upload files to my web space, but also create a folder which is named ... The ability to be able to view what has already been uploaded into each folder would also be very useful, as would the intelligence of the script to check if the folder is create, then if not, create it; or if it is there, simply upload the files into it. ... (comp.lang.php) - Re: script "chaining"
... If a task would take too long to run while attached to the browser, the current system writes the data to a database file. ... The daemon checks that file every 10 seconds and executes the task, writing the data back to database. ... If you take the A out of LAMP you can write a php script like a bash script or a perl script and execute it. ... (comp.lang.php) - Re: script "chaining"
... If a task would take too long to run while attached to the browser, the current system writes the data to a database file. ... The daemon checks that file every 10 seconds and executes the task, writing the data back to database. ... If you take the A out of LAMP you can write a php script like a bash script or a perl script and execute it. ... (comp.lang.php) - [UNIX] Cobalt Raq XTR Combination Attack (Remote/Local)
... Due to an authentication bug in the upload Handler, ... The next problem lies in the base64 encoding of the filename, ... After the symlinks have been created (script to create base64 symlink is ... (Securiteam) |
|