![]() |
..........
Fixed - ignore.
|
Can you have access to a database for all the domains?
|
Fixed - ignore.
|
OK. I can think of two ways of doing this. Either insert all the information into a single database on every domain acessing the same database. Or have a seperate database for each site and output the number of visitors with a seperate PHP file and pull the number outputted from each page. The first way would be the way I would go but it's a little harder to setup.
|
Fixed - ignore.
|
Yes they would. Just #2 would have more queries.
|
Hold on and I'll try to write something up real quick.
|
This is untested but it should work.
online.php Code:
// delete old visitors |
Fixed - ignore.
|
You will need to create a database. According to my script above you will need to name the database table sessions. Then you have to have a row in that table named lastvisit.
By the way I left something out of there. One of the most important parts. I'll change it in a little bit. |
I updated the script and actually tested it this time. I decided that it was not a very good way to go about this script. It makes the page lag and if a site is down will make the page hang for a very long time. I will update the code to make it work with one database shortly. If the sites are all on the same server you'll run into no problems. If not you will have to allow the ipaddress of the server to access the database.
|
Fixed - ignore.
|
You will need to use one database and just link all the sites to the one server. It shouldn't be too rough especially if you have cPanel. It's rather easy to setup in cPanel. I've been rather busy today. I'll see if I can't help you out later tonight and if not tomorrow.
|
Fixed - ignore.
|
Fixed - ignore.
|
lol wgt do you keep posting fixed-ignore?
|
Please don't edit your posts when you solve something, you probably aren't the only person to have whatever problem it was so leaving it could be of use to someone. It is considered good etiquette on help forum to leave your posts in tact.
|
| All times are GMT. The time now is 02:46 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0