Page 2 of 2

Re: Vote for the next article - PHP or Javascript

Posted: Mon 19 Dec 2011 4:22 pm
by MickinMoulden
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.

Re: Vote for the next article - PHP or Javascript

Posted: Tue 20 Dec 2011 4:06 am
by gemini06720
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)... ;)

Re: Vote for the next article - PHP or Javascript

Posted: Tue 20 Dec 2011 10:59 am
by MickinMoulden
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.

Re: Vote for the next article - PHP or Javascript

Posted: Tue 20 Dec 2011 11:10 am
by MickinMoulden
Ray, your page wouldn't open for me, something with floatbox.js?

Re: Vote for the next article - PHP or Javascript

Posted: Tue 20 Dec 2011 7:08 pm
by duke
Thanks for your suggestions guys, looks like I got a bit of PHP reading for over Xmas ;)

Duke