Wapcoderz

Started on the old forum in December 2007 · view the original in the archive · old links redirect here

11 replies · 1,013 views · started 18 years ago · 1 min read

5 participants
Guest #1

who can make a wap/web site that can enable users to make there on wapsite on it? site contains chat,pm,forums etc..

mcKeny Developer · 130 posts #2

yeah how much you willing to pay notice whenever they register for the site they will all have the same url but different id e.i

http://site.com/?id=1

R.M.C

PHP Adovocate B)

Guest #4

one like mobile.web.tr?

yes, kinda like mobile.web.tr

WhiteWarrior Principal · 1,419 posts #5

let me finish the site what im doing now then ill speak more to you about it.

GiLL Senior · 356 posts #7

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

Guest #8

You don't unnecessarily need unlimited domains..

Guest #9

any news? ? who can do it? i got a wifiwap.com domain, so if users make there own site, their url would be site.wifiwap.com

Guest #10

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.

cgp Developer · 107 posts #11

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

Guest #12

thanks mate..

Sign in to reply.

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close