Sandaysoft

Support forum for Cumulus weather station software
It is currently Sun May 19, 2013 8:43 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

Next website development article?
Poll ended at Sat Jun 25, 2011 10:57 am
PHP 52%  52%  [ 11 ]
Javascript 48%  48%  [ 10 ]
Total votes : 21
Author Message
 Post subject: Re: Vote for the next article - PHP or Javascript
PostPosted: Mon Dec 19, 2011 4:22 pm 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
gemini06720 wrote:
Another good Internet location would be W3Schools' PHP Tutorial...

I love that site. Use it a lot!
I've just used Javascript to call on a PHP script to automatically grab photo's that are automatically aploaded via webcam and make a timelapse vid automatically when you visit the webpage. It's a hidden page, so don't ask to see it :D Oh, I've just realised how that could have been taken :oops: It's of my front driveway where my kids sometimes play.

I voted for PHP.

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Top
 Profile  
 
 Post subject: Re: Vote for the next article - PHP or Javascript
PostPosted: Tue Dec 20, 2011 4:06 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1797
Location: World...
Weather Station: No weather station
Operating System: No operating system
I do not think this forum might be the right place to place a reply, but since it has been inactive for such a long time, maybe our exchanges will clear up some of the dust... :mrgreen:
MickinMoulden wrote:
I've just used Javascript to call on a PHP script to automatically grab photo's that are automatically aploaded via webcam and make a timelapse vid automatically when you visit the webpage.
Michael, why did/do you need a JavaScript to activate/call/run a PHP script - you do realise that the JavaScript must first be downloaded into the user's browser cache before that JavaScript can be activated - lots of files movement/transfer to do a server-side job!

The simple solution would be a button on the server-side PHP script (the web page) to activate the (server-side) PHP script that will eventually create the time-lapse video.

I have a similar procedure on my web site: When a user activate my main web page (or for that matter, any pages on the site), a secondary PHP script is activated to process the (already uploaded on the server) radar images, reduce the size of those images and finally produce an animated GIF image

My point is/was: Why force an operation on the user's computer (ie: JavaScript) when that operation can all be accomplished/controlled/processed on the server (ie: PHP)! :roll:

MickinMoulden wrote:
Oh, I've just realised how that could have been taken...
No need to feel bad about your statement - I know that you run a server on your personal computer (as I do) and do not make all/every pages available to the 'outside world' (as I do)... ;)


Top
 Profile  
 
 Post subject: Re: Vote for the next article - PHP or Javascript
PostPosted: Tue Dec 20, 2011 10:59 am 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
gemini06720 wrote:
My point is/was: Why force an operation on the user's computer (ie: JavaScript) when that operation can all be accomplished/controlled/processed on the server (ie: PHP)! :roll:

I would love to know your code. Sounds good. I'll have a look at yours.

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Top
 Profile  
 
 Post subject: Re: Vote for the next article - PHP or Javascript
PostPosted: Tue Dec 20, 2011 11:10 am 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Ray, your page wouldn't open for me, something with floatbox.js?

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Top
 Profile  
 
 Post subject: Re: Vote for the next article - PHP or Javascript
PostPosted: Tue Dec 20, 2011 7:08 pm 
Offline
User avatar

Joined: Sun Jul 03, 2011 6:23 pm
Posts: 324
Location: Eastleigh, Hampshire, UK
Weather Station: Davis VP2 - 24hr FARS
Operating System: Windows 7 - 64 bit
Thanks for your suggestions guys, looks like I got a bit of PHP reading for over Xmas ;)

Duke

_________________
Duke

Nightingale Weather PHP
Eastleigh, Hampshire, UK


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: jacot04 and 2 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
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group