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
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.
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.