Page 1 of 1
generate web pages based on uploads?
Posted: Tue Sep 06, 2005 4:10 pm
by akdrmeb
anyone know the php solution to dynamically generate new webpages based on a visitor's upload? i want the new page to contain a predetermined template that I create and a picture that a visitor uploads.... any thoughts are appreciated
farf
Posted: Tue Sep 06, 2005 4:19 pm
by s.dot
You may need to clarify a little bit further.
If the file uploads have predetermined names, then redirecting to a correct page would be possible. However if you have no idea of what the name is, there's no way to guage what a file is (unless you do mime types to specify what kind of file).
Edit: I may have misunderstood your question. If you just want a users picture to display then that is easy. Just load your template after they submit, and then find the picture that they uploaded on your server to display as the image.
Posted: Tue Sep 06, 2005 4:21 pm
by Burrito
search this forum for "uploading files" or visit the manual for
uploading files.
You'll probably want to associate the files uploaded to the user who uploaded them and I'd do that in a MySQL table. You can then query off of the db for the file name (for their picture) and then dump it onto the page.
Posted: Tue Sep 06, 2005 8:59 pm
by feyd
why generate multiple (theoretically) identical pages? Why not use a php file to simply pull the appropriate information based on input. If you're worried about search engine indexing and junk where people want definite urls, then you can use mod_rewrite and/or
path_info