Author |
Message |
pg2114
Doesn't have much of a life
Joined: Sat Apr 25, 2009 9:17 pm Posts: 741
|
Luckily, this website should be a very simple one. Its purpose is to communicate the town's weather to certain people, without the need for BBC Weather or anything.
I just want to be able to update it manually when necessary to give the current conditions, temperature and comments. It doesn't need to be hugely secure, so I was thinking of simply having a "View" page for the public and an "Edit" page for myself to change.
I have scripted in ASP Classic before, but I'm a bit rusty now, and I'm not sure that's the best language to use.
Any pointers would be great, thanks.
Peter.
_________________A Mac user 
|
Wed Jul 01, 2009 10:10 pm |
|
 |
Nick
Spends far too much time on here
Joined: Thu Apr 23, 2009 11:36 pm Posts: 3527 Location: Portsmouth
|
You just want literally two pages?
What are you doing hosting wise? Linux I assume? In which case you can either leave the edit page completely unsecured, or use a .htaccess file to protect it with a username/password.
What sort of stuff are you going to include? Just the current weather, a log of previous whether, forecasts etc??
If you are just going to have one set of data (ie just the current weather) then I would use a text file. Then the admin page would have a form which is processed in PHP. The output of which would be a text file containing the data, which over-writes the existing file. PHP pulls the data out of that file and puts it into the html. This would be a ten minute job for the whole site lol.
If you are going to be keeping historical data etc I would use MySQL so you can query it.
_________________
|
Wed Jul 01, 2009 11:09 pm |
|
 |
JJW009
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 6:58 pm Posts: 8767 Location: behind the sofa
|
Is this supposed to be up to date news? If so, it's going to be a real pain to administer. Every time the weather changes, you'll need to type something up. That would be OK in some countries, but the one thing Britain is well known for is the changing weather. I'm totally bemused why anyone would want such a site. I would simply post a link to an existing site which is already updated. For example, my preferred weather page is: http://www.metcheck.com/V40/UK/FREE/7da ... orthamptonPost link. Job done. 
_________________jonbwfc's law: "In any forum thread someone will, no matter what the subject, mention Firefly." When you're feeling too silly for x404, youRwired.net
|
Wed Jul 01, 2009 11:23 pm |
|
 |
Nick
Spends far too much time on here
Joined: Thu Apr 23, 2009 11:36 pm Posts: 3527 Location: Portsmouth
|
Same here. As you say, there are countless sites that offer a far more accurate, regularly updated service. I'm sure there must be a reason. 
_________________
|
Wed Jul 01, 2009 11:38 pm |
|
 |
Linux_User
I haven't seen my friends in so long
Joined: Tue May 05, 2009 3:29 pm Posts: 7173
|
Joomla! FTW.
|
Wed Jul 01, 2009 11:48 pm |
|
 |
pg2114
Doesn't have much of a life
Joined: Sat Apr 25, 2009 9:17 pm Posts: 741
|
I know it seems a little strange, but they only need to know the weather at the same time each day, so I don't actually need to make constant updates.
I think it's probably easiest to use Nick's method of a text file, but I may even just edit and upload this file myself.
Thanks,
Peter.
_________________A Mac user 
|
Thu Jul 02, 2009 7:28 am |
|
 |
pg2114
Doesn't have much of a life
Joined: Sat Apr 25, 2009 9:17 pm Posts: 741
|
I had a quick go and have got it up and running ClickyIt's not pretty, but it works beautifully. I even made a very insecure login facility to change it using a form, which then updated the text file, as per Nick's solution. Thanks for the pointers, Peter.
_________________A Mac user 
|
Thu Jul 02, 2009 9:46 am |
|
 |
saspro
Site Admin
Joined: Thu Apr 23, 2009 5:53 pm Posts: 8603 Location: location, location
|
Link's broken
|
Thu Jul 02, 2009 10:52 am |
|
 |
pg2114
Doesn't have much of a life
Joined: Sat Apr 25, 2009 9:17 pm Posts: 741
|
I have updated the nameservers, so it will take a few hours for it to work. Peter.
_________________A Mac user 
|
Thu Jul 02, 2009 10:54 am |
|
 |
pg2114
Doesn't have much of a life
Joined: Sat Apr 25, 2009 9:17 pm Posts: 741
|
The site has been working at my end for five hours now, however no others users are able to access it.
Does it usually take this long?
Thanks,
Peter.
_________________A Mac user 
|
Thu Jul 02, 2009 12:28 pm |
|
 |
HeatherKay
Moderator
Joined: Thu Apr 23, 2009 6:13 pm Posts: 7262 Location: Here, but not all there.
|
Well, it says it's very hot and humid in Preston, via michaelfish.com.
Is that right?
You might suggest other visitors empty their browser caches. Equally, some ISPs cache stuff, and it can take a while for that to clear.
_________________My Flickr | Snaptophobic BloggageHeather Kay: modelling details that matter. "Let my windows be open to receive new ideas but let me also be strong enough not to be blown away by them." - Mahatma Gandhi.
|
Thu Jul 02, 2009 12:36 pm |
|
 |
pg2114
Doesn't have much of a life
Joined: Sat Apr 25, 2009 9:17 pm Posts: 741
|
That's what the site is meant to display, yes  I can't believe I managed to script that website in PHP within a couple of hours. I have my little admin panel where I can change the data, and it'll even change the top image! *Does a little dance* Peter.
_________________A Mac user 
|
Thu Jul 02, 2009 12:39 pm |
|
 |
John_Vella
I haven't seen my friends in so long
Joined: Fri Apr 24, 2009 7:55 am Posts: 7935 Location: Manchester.
|
The only suggestion I would make is that if it's only you who's going to edit the page I would lose the "update" link.
I clicked on it, thinking that the page would update, but obviously it didn't.
That might confuse some people.
_________________John Vella BSc (Hons), PGCE - Still the official forum prankster and crude remarker  Sorry  I'll behave now. Promise 
|
Thu Jul 02, 2009 2:39 pm |
|
 |
pg2114
Doesn't have much of a life
Joined: Sat Apr 25, 2009 9:17 pm Posts: 741
|
Good point, John. I may change the link to "Edit data", which should be a more obvious name. I'm pretty pleased with it considering it took two hours from start-to-finish, with no previous knowledge of PHP. It isn't pretty, but it does the job it's meant to do. Peter.
_________________A Mac user 
|
Thu Jul 02, 2009 9:47 pm |
|
 |
JJW009
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 6:58 pm Posts: 8767 Location: behind the sofa
|
I disagree. I think it is quite pretty  Of course, I can't see your PHP and I wouldn't be qualified to comment on it anyway - but the page looks really nice.
_________________jonbwfc's law: "In any forum thread someone will, no matter what the subject, mention Firefly." When you're feeling too silly for x404, youRwired.net
|
Thu Jul 02, 2009 11:41 pm |
|
|