homepage Welcome to WebmasterWorld Guest from 54.243.23.129
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Content Management
Forum Library, Charter, Moderators: ergophobe

Content Management Forum

    
LAMP: virtual web fileserver -Custom Files
Serve customized files from unique virtual directory
mainebob




msg:4172461
 7:00 pm on Jul 18, 2010 (gmt 0)

I am looking for simple inexpensive script to run on a Linux/Apache/MySql/PHP server.

This website will be for virtual customized file requests

mysite.com/files/3456/myfile.doc

The directory "3456" is a virtual directory whose name is contained in the MySQL table. It is a unique directory and in the same row is the client name "Jane Smith"

When the web request comes in for the /files/ subdirectory,
A lookup is done in the db to see the directory name 3456
and that this is for "Jane Smith"
A simple file process can do a fixed length character
substitution to replace #*$!#*$!#*$!#*$! with "Jane Smith " (padded with spaces).
There is one master file with the #*$!#*$!#*$!x replacement
area.
And
immediately the file is served.
Essentially this site has no webpages, just the
serving of the target doc file.

Are there simple available PHP scripts that
can do this? My google search turns up alot
of complicated solutions... I'm looking for
simple and fast. Thanks!

 

ergophobe




msg:4173059
 10:01 pm on Jul 19, 2010 (gmt 0)

It's pretty simple to whip up something like this if I understand your requirements (no shopping cart, no checkout process, no login, just serve up files at a certain URL).

I don't know of a pre-built solution, but I bet you could have it built on elance for under $100.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Content Management
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved