Wapcoderz
Started on the old forum in December 2007 · view the original in the archive · old links redirect here
yes good but for it should unlimited subdomain Plan for make site best because one user make many sites and http://site.com/?id=1 people dont like it now days any way best of luck happy new year all
left wap stuff
i think i can make one, i was trying to do this from a long time. But i am too lazy to code, and i dont work for money. Maybe when i finish making mine i might give it out. But you gotta wait. Or if you need any ideas to make it, i can help you out. It is very easy to do, but still pain in butt.
who can make a wap/web site that can enable users to make there on wapsite on it? site contains chat,pm,forums etc..
ok wont code it for for you but here is how i would do it with the cgi wml code as it is the one i know best and seems most simple to do it with.
The cgi code is better to use(for me) as a test because the main site code can be the same with no edits and used by as many diffent ppl as you like. the only folders and files that need creating is the sub folder, index.php file, index.cgi file, app.ccc file and the mysql database.
So all you need to code is a script that creates a: "sub folder" in your public_html folder an example will be test so new domain is http://manysites.com/test
Inside this folder your code will need to create an index.php or wml file for pointing the wap device to the index.cgi here is only one change needed per site to this file (test) file like:
<?php /* This script detects a wap browser. The top redirect is for your web page, the second is for your wap page. */ if ((eregi ("text/vnd.wap.wml", $HTTP_ACCEPT)) != true) { header("Location: <http://wapsilon.com/manywap.com/>test"); exit; } else { header("Location: index.cgi"); exit; } ?>index.cgi which points to the app.ccc file there is only one change needed per new site (test)to this file example cgi file below: #!/usr/bin/perl
require "/home/manysites/public_html/test/app.ccc";
Init();
app.ccc which points to the main base code of the site. There are only 1change (database location) $database = "test"; the rest of the app.ccc file can stay the same example below:
-- Database Server (MySQL) connection information:
$driver = "mysql"; $hostname = "localhost"; $database = "test"; $dbuser = "manysites"; $dbpass = "password"; $dsn = "DBI:$driver:database=$database;hostname=$hostname";
last (or first!)thing your code will need to do is create a new database there are many diff scripts out there already to do this just google and rob one!
Thats about it. is the simplest way i can think of doing it. All the above is taking into account the main source code is uploaded here /home/manysites the new site addy would be http://manysites.com/test seems pretty easy in my mind and can think of many ways to make this even better but i shall leave that to you as i dont want to do it lol!
no longer in the game