WXforum.net
May 19, 2013, 12:57:55 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6609  •  Posts: 178220  •  Topics: 18100
Please welcome TargY, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: whos online  (Read 1183 times)
0 Members and 1 Guest are viewing this topic.
hayskswx
Forecaster
*****
Offline Offline

Posts: 1572



WWW
« on: February 27, 2012, 11:44:55 PM »

What is the easiest way to install the who's online script?
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Bunty
Forecaster
*****
Online Online

Posts: 944


Stillwater marks the spot.


WWW
« Reply #1 on: March 01, 2012, 12:21:52 PM »

I gather it's complex to install?   I've never tried myself.
Logged

hayskswx
Forecaster
*****
Offline Offline

Posts: 1572



WWW
« Reply #2 on: March 01, 2012, 02:24:52 PM »

True. It's over my head
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
saratogaWX
Administrator
Forecaster
*****
Offline Offline

Posts: 3729


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #3 on: March 01, 2012, 09:31:46 PM »

Mike's Who's Online script is more difficult to install only because it uses a SQL database for it's storage .. none of the other scripts for personal weather websites use SQL services, so can be installed with only PHP code to worry about.

Setting up a SQL database is somewhat complicated, and varies depending on your webhoster.  I'd suggest that you not try it until you've checked out what your hoster offers for SQL database useage and whether they allow something that has a semi-realtime aspect (high traffic websites might exceed the terms/conditions of SQL database usage for minimal hosting arrangements).
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
Moose Whisperer
Senior Contributor
****
Offline Offline

Posts: 210



WWW
« Reply #4 on: May 12, 2012, 10:15:02 PM »

Yep,

I actually got as far as creating a SQL database on my web hosting server following the installation instructions. But as soon as I hit this step:

Step 1)
Create a mysql database on your web server.
Because many web hosts use different types of control panels, there are different ways.
Usually your web host will have a FAQ or help guide to show you how to add a database.
After you add your database, create the tables with whos-online.sql.txt
If you use phpMyAdmin you can select your new database,
then paste the contents of whos-online.sql.txt into the SQL statement entry form.

The whos-online.sql.txt file is located in the readme-files folder.


...I hit an all-stop. I have absolutely no idea how to do this. I found the whos-online.sql.txt form he is referring to, but there doesn't seem to be any corresponding place for it in the phpMyAdmin thingy. I have a feeling this is one of those steps that would be a no brainer to a database geek. But for a mere mortal like myself, it might as well be written in Chinese!
Logged

capeweather
Administrator
Forecaster
*****
Offline Offline

Posts: 921



WWW
« Reply #5 on: May 12, 2012, 11:18:22 PM »

If you have phpmyadmin, you select your database, go to the import tool and browse for whos-online.sql.txt on your pc. Hit the Go button and it will create the tables for you inside the database you created.
Logged


Chris
Cape Coral, Florida
Website: http://www.capeweather.com
Website: http://www.fortmyersweather.net
Moose Whisperer
Senior Contributor
****
Offline Offline

Posts: 210



WWW
« Reply #6 on: May 13, 2012, 08:08:54 PM »

Wow, that actually worked! Thanks!

I was getting confused, my first read of the instructions looked like the phpMyAdmin was saying it required a zip file, not that it was optional.

However, that only got me a little ways. Now I get error messages about not being able to connect with the database. It looks like the password is wrong, but I have double checked the user name and password many times, even used the password generator and cut and pasted and still no luck. The only thing I can think is maybe I am using the wrong syntax somewhere in the include-whos-online-settings.php file. For example, is the localhost field the full URL to my website? My database tacks on some extra stuff to the user names I create (xxx_username), do I include that too? Is there more than one place in the file that the username and password needs to be entered?

I've tried all possible combinations with no luck. I've just gone back to disabling the whole script to get my webpage to load.

Logged

Moose Whisperer
Senior Contributor
****
Offline Offline

Posts: 210



WWW
« Reply #7 on: May 13, 2012, 10:16:22 PM »

OK, I got it working. So apparently you enter the user_name, db_name, and password, but you leave localhost as localhost.

Yeah, I knew that!  Wink   Liar

http://www.ak-image.com/weather/dwWho.php

Logged

sacreyweather
John Sacrey - VP2 Pro
Forecaster
*****
Offline Offline

Posts: 398


Saline Weather


WWW
« Reply #8 on: November 18, 2012, 04:14:56 PM »

Hi Folks,

Been attempting to install this script again, but keep running into an error with the MySQL import.  I receive the following error:

MySQL said:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM DEFAULT CHARSET=utf8' at line 23

My host has this version of MySQL: 5.5.27.  I have no clue as to what to change or how to make this work.

Any assistance is appreciated,

John
Logged

CWOP: D2073, GR2AE, GR3, WD, PWS/weatherforyou.com, WxWeb,
CoCoRaHS: AR-SL-16, Weatherbug Station No. 25826
Saline Weather
Saline Weather on Twitter
sacreyweather
John Sacrey - VP2 Pro
Forecaster
*****
Offline Offline

Posts: 398


Saline Weather


WWW
« Reply #9 on: November 19, 2012, 07:11:01 PM »

I got it figured out.  There have been some major changes in the way the DB engine is called.  Changed a couple of lines and off it goes.

John

For those who may run into this.  Look for:

TYPE=MyISAM

change to:

ENGINE=MyISAM
Logged

CWOP: D2073, GR2AE, GR3, WD, PWS/weatherforyou.com, WxWeb,
CoCoRaHS: AR-SL-16, Weatherbug Station No. 25826
Saline Weather
Saline Weather on Twitter
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.109 seconds with 19 queries.
anything