MyBB Community Forums

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

This question may be weird for you guys, but for me it's not Big Grin

I just wanted to start my own website from scratch, am not new to PHP and HTML, i used to edit things with PHP and HTML, so i have an idea about them.

But, my question is, if i want to start from scratch, creating the webpage, (main homepage) and more, should i use PHP or HTML to code a website from scratch, am confused.

What's the difference between PHP and HTML, and which one should i use to start from scratch.

Thanks for reading, hope to hear from you soon Wink
HTML is the "design" or structure of a website, and PHP is the brains or processes of the site.

Let's say you're making a contact forum. You would use HTML to build the text fields and submit button, but PHP would actually preform the job, or send the email.

https://www.youtube.com/watch?v=tQvsNEZ0s6o

When I was a kid, this guy is who taught me most of the basics: https://www.youtube.com/user/tutvid
(2015-10-07, 12:58 PM)sparkks Wrote: [ -> ]HTML is the "design" or structure of a website, and PHP is the brains or processes of the site.

Let's say you're making a contact forum. You would use HTML to build the text fields and submit button, but PHP would actually preform the job, or send the email.

https://www.youtube.com/watch?v=tQvsNEZ0s6o

When I was a kid, this guy is who taught me most of the basics: https://www.youtube.com/user/tutvid

Thank you a lot, this video https://www.youtube.com/watch?v=tQvsNEZ0s6o was helpful too.
I would actually suggest going with an easy to learn PHP framework like Laravel which has a simple templating engine. Please note that you would have to dedicate weeks to learning, but websites like laracasts provide a lot of helpful information.

Make sure to study security early on, most security holes are easy to avoid if you know how they are executed.

You want to look into the following things, probably in this order:
HTML layout
CSS
CSS Specifity
jQuery
bootstrap
object oriented programming
pdo
sessions

To expand on the answer, you will need the following for an interactive website:
Database: mysql syntax (easy), pdo (easy)
Styling: css (easy), LESS (medium complexity, extremely easy when you get used to it)
Layout: HTML layouts (hard at the beginning - I suggest using bootstrap)

You will be using PHP to combine all these into a dynamic application. Websites like stackoverflow will help you on the way.

Remember: The time spent learning will make up for the time you'd spending recovering after a security breach, failed marketing campaign, etc.
(2015-10-07, 01:53 PM)SentoWeb Wrote: [ -> ]I would actually suggest going with an easy to learn PHP framework like Laravel which has a simple templating engine. Please note that you would have to dedicate weeks to learning, but websites like laracasts provide a lot of helpful information.

Make sure to study security early on, most security holes are easy to avoid if you know how they are executed.

You want to look into the following things, probably in this order:
HTML layout
CSS
CSS Specifity
jQuery
bootstrap
object oriented programming
pdo
sessions

To expand on the answer, you will need the following for an interactive website:
Database: mysql syntax (easy), pdo (easy)
Styling: css (easy), LESS (medium complexity, extremely easy when you get used to it)
Layout: HTML layouts (hard at the beginning - I suggest using bootstrap)

You will be using PHP to combine all these into a dynamic application. Websites like stackoverflow will help you on the way.

Remember: The time spent learning will make up for the time you'd spending recovering after a security breach, failed marketing campaign, etc.

Thanks a lot, appreciated.