Welcome to WebmasterWorld Guest from

Forum Moderators: ergophobe

Message Too Old, No Replies

LAMP: virtual web fileserver -Custom Files

Serve customized files from unique virtual directory

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

New User

5+ Year Member

joined:July 18, 2010
posts: 5
votes: 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


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
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!
10:01 pm on July 19, 2010 (gmt 0)

Moderator This Forum

WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 25, 2002
votes: 208

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.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members