Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
I have been asked to make a website... 
Author Message
Doesn't have much of a life
User avatar

Joined: Sat Apr 25, 2009 9:17 pm
Posts: 741
Reply with quote
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 Image


Wed Jul 01, 2009 10:10 pm
Profile
Spends far too much time on here
User avatar

Joined: Thu Apr 23, 2009 11:36 pm
Posts: 3527
Location: Portsmouth
Reply with quote
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.

_________________
Image


Wed Jul 01, 2009 11:09 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:58 pm
Posts: 8767
Location: behind the sofa
Reply with quote
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 ... orthampton

Post 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
Profile WWW
Spends far too much time on here
User avatar

Joined: Thu Apr 23, 2009 11:36 pm
Posts: 3527
Location: Portsmouth
Reply with quote
JJW009 wrote:
I'm totally bemused why anyone would want such a site


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. :)

_________________
Image


Wed Jul 01, 2009 11:38 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Tue May 05, 2009 3:29 pm
Posts: 7173
Reply with quote
Joomla! FTW.

_________________
timark_uk wrote:
That's your problem. You need Linux. That'll fix all your problems.
Mark


Wed Jul 01, 2009 11:48 pm
Profile
Doesn't have much of a life
User avatar

Joined: Sat Apr 25, 2009 9:17 pm
Posts: 741
Reply with quote
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 Image


Thu Jul 02, 2009 7:28 am
Profile
Doesn't have much of a life
User avatar

Joined: Sat Apr 25, 2009 9:17 pm
Posts: 741
Reply with quote
I had a quick go and have got it up and running :)

Clicky

It'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 Image


Thu Jul 02, 2009 9:46 am
Profile
Site Admin
User avatar

Joined: Thu Apr 23, 2009 5:53 pm
Posts: 8603
Location: location, location
Reply with quote
Link's broken

_________________
Support X404, use our Amazon link
Get your X404 tat here
jonlumb wrote:
I've only ever done it with a chicken so far, but if required I wouldn't have any problems doing it with other animals at all.


Thu Jul 02, 2009 10:52 am
Profile WWW
Doesn't have much of a life
User avatar

Joined: Sat Apr 25, 2009 9:17 pm
Posts: 741
Reply with quote
saspro wrote:
Link's broken

I have updated the nameservers, so it will take a few hours for it to work.

Peter.

_________________
A Mac user Image


Thu Jul 02, 2009 10:54 am
Profile
Doesn't have much of a life
User avatar

Joined: Sat Apr 25, 2009 9:17 pm
Posts: 741
Reply with quote
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 Image


Thu Jul 02, 2009 12:28 pm
Profile
Moderator

Joined: Thu Apr 23, 2009 6:13 pm
Posts: 7262
Location: Here, but not all there.
Reply with quote
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 Bloggage
Heather 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
Profile
Doesn't have much of a life
User avatar

Joined: Sat Apr 25, 2009 9:17 pm
Posts: 741
Reply with quote
HeatherKay wrote:
Well, it says it's very hot and humid in Preston, via michaelfish.com.

Is that right?

That's what the site is meant to display, yes :D

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 Image


Thu Jul 02, 2009 12:39 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Fri Apr 24, 2009 7:55 am
Posts: 7935
Location: Manchester.
Reply with quote
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.

_________________
okenobi wrote:
John's hot. No denying it. But he's hardly Karen now, is he ;)

John Vella BSc (Hons), PGCE - Still the official forum prankster and crude remarker :P
Sorry :roll:
I'll behave now.
Promise ;)


Thu Jul 02, 2009 2:39 pm
Profile WWW
Doesn't have much of a life
User avatar

Joined: Sat Apr 25, 2009 9:17 pm
Posts: 741
Reply with quote
John_Vella wrote:
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.

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 Image


Thu Jul 02, 2009 9:47 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:58 pm
Posts: 8767
Location: behind the sofa
Reply with quote
pg2114 wrote:
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.


I disagree.

I think it is quite pretty :D

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
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 29 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.