Web Hosting Talk







View Full Version : Self replicating websites on RaQ3?


horoscopes2000
01-06-2002, 01:42 AM
Hi, does anyone know of a good program or script for implementing self replicating websites on a RaQ3. I want to get an affiliate program started but haven't a clue how to do this. I want each affiliate to have his own mini site such as mysite.com/affiliate/22333 for example.

Would php be capable of this, or do I just need some kind of perl script?

I don't particularly wish to throw hundreds of dollars at this, as it's for a new, low cost venture (although I fear there may not be a low cost solution to this question).

driverdave
01-06-2002, 05:20 AM
What is a self replicating website? You just want php to make a directory and a file on your server?

http://www.php.net/manual/en/ref.filesystem.php

Yes, php can do all of that.

Omair Haroon
01-06-2002, 05:55 AM
Well, I don't think that you would even need to create directories for it. All you would need would be a php script which would act as a 404 error file.

Below is how it would work:


Visitor points his browser to http://www.domain.com/af/123

The server founds not file like that and forwards the error to the 404 file. The 404 file then basically gets the url, break it into appropiate variables and gets the values from the database.



E-mail me at omair@omair-haroon.com if you want me to work it out for you.


Salam,
-Omair