Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See the Wiki for download

Vote for the next article - PHP or Javascript

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Next website development article?

Poll ended at Sat 25 Jun 2011 10:57 am

PHP
11
52%
Javascript
10
48%
 
Total votes: 21

User avatar
MickinMoulden
Posts: 499
Joined: Mon 20 Dec 2010 12:12 pm
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Location: Palmerston, NT, Australia
Contact:

Re: Vote for the next article - PHP or Javascript

Post by MickinMoulden » Mon 19 Dec 2011 4:22 pm

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!
ImageImage

gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Vote for the next article - PHP or Javascript

Post by gemini06720 » Tue 20 Dec 2011 4:06 am

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

User avatar
MickinMoulden
Posts: 499
Joined: Mon 20 Dec 2010 12:12 pm
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Location: Palmerston, NT, Australia
Contact:

Re: Vote for the next article - PHP or Javascript

Post by MickinMoulden » Tue 20 Dec 2011 10:59 am

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!
ImageImage

User avatar
MickinMoulden
Posts: 499
Joined: Mon 20 Dec 2010 12:12 pm
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Location: Palmerston, NT, Australia
Contact:

Re: Vote for the next article - PHP or Javascript

Post by MickinMoulden » Tue 20 Dec 2011 11:10 am

Ray, your page wouldn't open for me, something with floatbox.js?
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImage

User avatar
duke
Posts: 840
Joined: Sun 03 Jul 2011 6:23 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 - 64 bit
Location: Eastleigh, Hampshire, UK
Contact:

Re: Vote for the next article - PHP or Javascript

Post by duke » Tue 20 Dec 2011 7:08 pm

Thanks for your suggestions guys, looks like I got a bit of PHP reading for over Xmas ;)

Duke
Duke

Nightingale Weather
Eastleigh, Hampshire, UK
------------------------------------------------------
Validate your pages - often!

Post Reply