Jump to content

Archived

This topic is now archived and is closed to further replies.

u0206787@nus.edu.sg

php & MySQL limitation

Recommended Posts

Hi,

about JavaScript and PHP, the main difference is where this two are executed. JS is executed locally, I mean in the browser, this one have events like onClick for a button or onChange for text boxes. But PHP is executed on the server (Apache for example), the PHP scripts are executed and than the results are sent in the browser in HTML format.
I tried to explain, I hope it's clear :).

Regards,
    Dymon

Share this post


Link to post
Share on other sites
It's not a stupid question.. people spend hours debating it :)

My experience is that perl and php are very similar in power.  Perl is better suited for text processing, and php is better suited for web applications.

Javascript is executed on the user's computer (in the browser), and it is usually used for simple tasks.  Most of the brains will be in the perl and php running on the server.

Pretty much anything you think of can be done by perl & mysql, php & mysql, perl & postgres, php & postgres, or other combinations.  Some things are easier with a particular combination.

PHP and perl are scripting languages, whereas mysql and postgres are databases.  They store data and let you fetch data.

Share this post


Link to post
Share on other sites
thanks dymon & btherl, I agree with you that people had been debating it but to me I keep wondering why and what the different. Yet from the web I can't find any that clearly state as what both of you had explain in just some simple words. That's a great help, thanks for your time.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.