timmy s asked:
I want to create a log in, forum, and blog for my website using php. Do I need to learn Javascript first, or can just learn php now?
I want to create a log in, forum, and blog for my website using php. Do I need to learn Javascript first, or can just learn php now?


8 Comments to 'Do I need to learn Javascript before php?'
December 14, 2008
all of that can be created using only php, so start there. learn javascript for enhanced features.
December 16, 2008
As the previous poster said learn PHP first but when when you come to the forum you might want to try and use AJAX. This utilises Javascript to allow content to be loaded within a page without the whole page having to refresh.
Remember that not all browsers support javascript or have it enabled, so it is usually a good idea to implement a non-javascript variation of the advanced functionality.
NB. Do not rely upon javascript to carry out authentication in your login, beacuse disabling it CAN leave your site open to attacks.
December 19, 2008
Yeah right, ignore that first answer, PHP is a server side language for writing ASP (Active Server Pages) it is script that runs on the server, it can describe the construction of an html page, it can put javascript code on a page, it can do a great many things ON THE SERVER! once the page is loaded in the client browser PHP no longer does anything, that is where javascript is executed by the client browser. Learn javascript first and do some simple pages, when you are ready to do ASP then learn PHP.
December 21, 2008
Before and after. PHP is run by the webserver *before* a page loads (to load it, really). And JavaScript is run after a page has loaded by a browser. This is what people mean when they say “server-side” or “client-side.”
That said, they are quite unrelated (JavaScript is also unrelated to Java, in case anyone tries to tell you differently). You could learn PHP then JavaScript or JavaScript then PHP or both at the same time or never learn either.
December 23, 2008
Please learn javascript first php is based off c++ and javascript. so learning javascript will help alot like really alot. Just learn basic javascript (w3schools.com)
then learn php (w3schools.com or php.net) it helps alot trust me i tried to learn php first after html it was hard after looking at php now (i know javscript) it looks easy
December 24, 2008
Ok, here is my two cents. I learned PHP before javascript. I found it easy to learn Javascript after PHP. The reason is that there are more easy to follow tutorials about PHP that javascript. Plus PHP has the ability to work with your database using MySQL. This is probably where you want to start. Javascript can make improvements to your website, but it is not always supported on computers that have higher security settings on their computers. PHP can handle most of what you really need in a website.
My answer: Start with PHP.
December 24, 2008
php is better than javascript
no need to learn JS before PHP
but
if you are planning on developping your PHP knowledge into AJAX which is a combination of PHP or ASP and JS it’s better to learn JS before PHP
that’s what i did
December 28, 2008
learn php to build the main functionality of your site. All functionality should be in place and work in php. Then you can use javascript to enhance later.
Leave a comment