What is the difference between PHP and JavaScript? - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 09-09-2008, 12:17 PM   #1 (permalink)
Member
 
Join Date: May 2008
Posts: 195
Default What is the difference between PHP and JavaScript?

Hello guys could you please explain an newbie how these technologies are different from each other?
3Dprof4Online is offline   Reply With Quote
Sponsored Links
Old 09-09-2008, 12:25 PM   #2 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 3
Default Re: What is the difference between PHP and JavaScript?

Well completely different. If what you see in terms of code looks the same, the place where both languages express their ability is not the same. Yet they are complementary.

While Php runs on your server and has the main function to produce html code for your browser to read, Javascript runs on your browser and execute specific local tasks.
webrickco is offline   Reply With Quote
Old 09-10-2008, 01:30 AM   #3 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 9
Default Re: What is the difference between PHP and JavaScript?

Good explanation, though I might add that javascript can do things locally in real time, like clock countdowns, that PHP simply can not do for the reason you stated. For example, php needs to do a page refresh to increment a counter, javascript does not. Php is a lot more friendly in terms of doing database manipulation and server side scripting/processing that javascript would be impractical to use, generally.

HTH, vbplusme
vbplusme is offline   Reply With Quote
Old 09-15-2008, 05:25 AM   #4 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 4
Default Re: What is the difference between PHP and JavaScript?

PHP is open source best web programming language.PHP used mostly website developing. But java script is a validation of form and form details programming language.
Johnny_walts is offline   Reply With Quote
Old 09-17-2008, 04:50 AM   #5 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 1
Default Re: What is the difference between PHP and JavaScript?

PHP is a server side programming language, which is ran into the web server when a page is generated, before being sent to the browser.

Javascript is a client side scripting language, that run into the browser, and is allowed to interact with the element that are present into the page.

PHP run only during the page load. Once the page is loaded, no more PHP can be run.
Javascript starts only when the page is received. For more information check out web application development
madona123 is offline   Reply With Quote
Old 11-04-2008, 02:02 AM   #6 (permalink)
Junior Member
 
Join Date: Nov 2008
Posts: 49
Default Re: What is the difference between PHP and JavaScript?

JavaScript is a browser based function script, and PHP is a server side function script.
goodbye is offline   Reply With Quote
Old 12-18-2008, 08:03 PM   #7 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 1
Default Re: What is the difference between PHP and JavaScript?

I'm still learning PHP, but I'm very well versed in javascript. Arguments concerning accessibility and support aside, the primary differences between the two are -

a.) Syntaxing and some of the object and array handling
b.)PHP -cannot- be run client side

Javscript is almost exclusively used on the client side because of the lack of support for JS services from hosting companies. JS -can- be run on either side of the line, which makes it significantly more flexible than PHP, not to mention the growing popularity and support of JSON (JavaScript Object Notation) syntaxing.
zaphod42 is offline   Reply With Quote
Old 12-29-2008, 05:24 AM   #8 (permalink)
Junior Member
 
Join Date: Dec 2008
Location: UK
Posts: 21
Default Re: What is the difference between PHP and JavaScript?

Here is the difference between both:

What is PHP?

* PHP stands for PHP: Hypertext Preprocessor
* PHP is a server-side scripting language, like ASP
* PHP scripts are executed on the server
* PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
* PHP is an open source software
* PHP is free to download and use

What is JavaScript?

* JavaScript was designed to add interactivity to HTML pages
* JavaScript is a scripting language
* A scripting language is a lightweight programming language
* JavaScript is usually embedded directly into HTML pages
* JavaScript is an interpreted language (means that scripts execute without preliminary compilation)
* Everyone can use JavaScript without purchasing a license
Jenniferlinn is offline   Reply With Quote
Old 01-19-2009, 05:42 AM   #9 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 2
Default Re: What is the difference between PHP and JavaScript?

yes both are different in their behavior as php is complete language with pretty dynamic behavior with too much functionality based on server but java script mostly used for only local functions and it is used for validation only.
best_links is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:26 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting