Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
What is the difference between PHP and JavaScript?
Old 08-21-2008, 08:54 AM What is the difference between PHP and JavaScript?
Skilled Talker

Posts: 96
Trades: 0
Hello guys could you please explain an newbie how these technologies are different from each other?
__________________

Please login or register to view this content. Registration is FREE
- internet marketing program!

Please login or register to view this content. Registration is FREE
- get your website updated by professionals!

Please login or register to view this content. Registration is FREE
- domain and hosting coupons!

Last edited by 3DProf4online; 08-21-2008 at 08:56 AM..
3DProf4online is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-21-2008, 09:14 AM Re: What is the difference between PHP and JavaScript?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
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.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 08-21-2008, 12:59 PM Re: What is the difference between PHP and JavaScript?
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
Unfortunately it's a little more complicated than that...

Javascript can be run on servers that support it. ASP pages can use javascript instead of vbscript.
The Apache Sling server supports ESP (Ecma Script Pages) which are basically JSP's that use Javascript instead of Java. Any J2EE container can use server side javascript by including the Rhino library. Actually, by using that library, any java program can include Javascript support (client, server, whatever).
On linux you can build desktop applications using DCOP and Javascript. On Windows, you can do something similar in HTAs. In both of these cases, javascript gets access to the filesystem, network, and various system internals.

PHP doesn't only have to be used on the server. Many people are now building PHP desktop applications. I think it's crazy but, that's another matter.
A quick search will give you lots of info on that.

Basically these are just different dynamic loosely-typed scripting languages. Tripy pointed out the primary ways you will see them in the web world. If you are learning, get started with Javascript first. It's a natural next step from HTML. The best thing with learning it, you don't need any tools or setup. Your web browser is your runtime engine, and text editor, your development tool.

Writing server code can be your next step after javascript.
__________________

Please login or register to view this content. Registration is FREE


Last edited by willcode4beer; 08-21-2008 at 01:02 PM..
willcode4beer is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to What is the difference between PHP and JavaScript?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.11206 seconds with 12 queries