MyBB Community Forums

Full Version: PHP question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all,

I am about to start learning php. But I have a little question.

People say that one should know html before learning php.

So I want to know that is it really necessary or I learn html as I learn php (examples given in the book contains html.) or I learn html after finishing php.

Please guide me. Would appreciate your help.

Thank you

Regards
Praveer
You would find it easier if you learn HTML first and them move to PHP. HTML is quite easy to learn and will help you a lot when you learn PHP.
Learn the basics first, html and css. Understand how websites work in terms of html and css styling. When you master that, then move on to more advanced stuff such as php etc....
I'd recommend to learn HTML and CSS (optional) first, it'd help you a lot with PHP. For example, when creating an MyBB plugin that adds a template to global templates, you'd need to recognize how'd HTML work, if you already know that, things would be much easier for you.

And it doesn't take more time, at the most 10 days to learn every basic thing in detail with max of 3-5 hours of daily time.
If you want to learn php your best off looking into HTML frist

my friend is going though this tutorial set and from what he told me they are good i have not looked at them my self so i can not say how good they are

HTML:
http://thenewboston.org/list.php?cat=40

PHP:
http://thenewboston.org/list.php?cat=11
(2011-11-27, 10:22 AM)ChrisR Wrote: [ -> ]If you want to learn php your best off looking into HTML frist

my friend is going though this tutorial set and from what he told me they are good i have not looked at them my self so i can not say how good they are

HTML:
http://thenewboston.org/list.php?cat=40

PHP:
http://thenewboston.org/list.php?cat=11

New boston is a great site. I learn basics of Java from it.
Any programing language will be best before PHP. Like C++ or you should know at-lest javascript.
But there is no hard and fast rules, You can understand PHP without all these. If you are dedicated to learning
(2011-11-27, 12:10 PM)sunjava1 Wrote: [ -> ]or you should know at-lest javascript.
Nope, one shouldn't go for java first, its very sophisticated stage and without having adequate knowledge of C, C++ and PHP, it'd be very tough. Edit: just saw, its javascript, it can be done but I wouldn't recommend it, not hard as Java though.

(2011-11-27, 12:10 PM)sunjava1 Wrote: [ -> ]Any programing language will be best before PHP. Like C++
This is correct, I learned C and C++ and that helped me a lot over in PHP.

You must have a solid understanding of HTML before getting into PHP. Why would you want to learn PHP if you don't even know how to create a simple static web page? PHP was made for creating dynamic websites, in which you most certainly will use HTML. If you don't know how to display the content in static HTML, how are you going to create a dynamic PHP website? It just doesn't make sense. It's like wanting to get into Calculus when you don't even know basic arithmetic.

Having that said, grab the basics first. 30 Days to Learn HTML & CSS is a great (free) course for learning HTML and CSS. Also, try avoiding W3Schools at all costs. Instead, as recommended by the folks at W3Fools, refer yourself to these sources:
Thanks for the suggestion all Smile

My doubts cleared now Smile

Regards
If any one still wanna give suggestion, you are most welcome Smile