You don't need to know Javascript before learning PHP. The only reason they say that on their site is because their PHP tutorial includes a small section on AJAX, which is a Javascript technique for connecting to the web server and running PHP scripts. All you need to learn before PHP is HTML. Of course, a bit of CSS never hurt so that you can format your pages correctly, too.Prodigy wrote:well, i went to the site w3schools.com and it turns out i need to learn html/xhtml and javascript b4 i can learn php. I am starting at the root of everything i know, but i'm very eager to learn and i'm hoping to reach a high enough level to create a pro level site / game... more or less... btw how do you know which <!doctype> to use?
Doctypes represent the kind of HTML/XHTML you want to use. There are strict types, which nearly follow the rules of XML, a basic mark-up language for tranfering data, to the letter. Then there are transitional types, which allow for some old HTML tag attributes which are deprecated in favor of CSS, like color. Since the next standard is actually going to be HTML 5, and not XHTML 2, you can probably not worry about using XHTML doctypes.
Just a bit of reading up on the different doctypes will likely help you find one that you want to use. Just follow the rules associated with your doctype and your page will render in the best quality, and it will validate correctly if you ever want to use a validator to test your page code. Here is a page from Stackoverflow with info about different Doctypes, but don't get too hung up on them, because knowing every last detail is not crucial.