Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 01-12-2005, 03:06 PM   #1 (permalink)
 
Newb Techie

Join Date: Sep 2004

Posts: 49

s0M30n3

Default javascript or php

i have a website but at the moment it is all html code i want to use either php or javascript to make it better could someone tell me the advantages and disadvantages of using each one because i dnt know which to use. my site is for pictures videos and general things like that...thanx
s0M30n3 is offline  
Old 01-12-2005, 06:36 PM   #2 (permalink)
 
Ultra Techie

Join Date: Sep 2003

Location: Bamberg, Germany

Posts: 549

Iron_Cross

Send a message via ICQ to Iron_Cross Send a message via MSN to Iron_Cross Send a message via Yahoo to Iron_Cross
Default

PHP is a server side scripting language.
JavaScript is a clientside scritping language.
If you're wanting to write stuff for the server to compute (i.e. calculations, database stuff, user info, etc) then use PHP. If you're wanting to enhance the User Interface, or do simple calculations you'd use JavaScript.
__________________

See today\'s Penny-Arcade!(May contain foul lanuage)
Pain is weakness leaving the body.

PM Me for my MSN
Iron_Cross is offline  
Old 01-14-2005, 07:54 AM   #3 (permalink)
 
Junior Techie

Join Date: Dec 2004

Posts: 88

developer

Default

Javascript being a Client side scripting technology is browser dependent, Though these days all browsers support Javascript. You can use PHP if you want to access a database or do such things.
__________________
Somewhere I Belong...
developer is offline  
 
Closed Thread

Thread Tools
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