Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Web Php, html

Experienced Elementalist
Joined
Sep 8, 2012
Messages
260
Reaction score
6
I'm pretty new to the websites coding world and I've gotten curious about something.
People always say that CSS, HTML, JavaScript and PHP should always be separated for the 'clean code' purpose.
I understand how CSS, HTML and JavaScript can combine nicely but what about PHP?
I've learn most of my knowledge from MapleBit (gotta tag you greenelf) and from what I see PHP always overlaps with the HTML, and some HTML is being sent to the clients from PHP. Is that proper?

I also played around with vBulletin a bit. I've seen some weird code that I'm not sure what it does or how it works but it definitely interacts with the server. I'm talking about the {blabla}. what is this and where can I get a summary about it?

Thank you for reading this far!
 
Last edited:
Initiate Mage
Joined
Jan 28, 2016
Messages
36
Reaction score
7
I'm having trouble understanding what you're asking.

Can you provide an example of the code you're having trouble understanding?

Also - if you want to learn how PHP works I would try to stray away from using MapleBit as your first example as it can be a bit daunting to a newbie who doesn't know what different things do.

Take a look at to learn a bit more in depth. And if you want some help feel free to ask me.

 
Upvote 0
Joined
Jul 12, 2011
Messages
1,229
Reaction score
475
MapleBit is a terrible example of good PHP. The way it was written is very outdated, and you absolutely should not use it to learn PHP. Definitely look into the link posted in the above comment, and also look into Symfony Components, and the Laravel framework. Also, reading up on PHP PSRs, MVC paradigm, and other general programming concepts (OOP) will be helpful.

VBulletin (and most frameworks) use something called MVC, which essentially splits the logic (backend PHP code) from the presentation (HTML/CSS/etc). Thr brackets you see {likeThis} are part of the VBulletin template system. For something similar, look into Mustache.

Finally, MVC is just one of many paradigms out there. Something that is becoming increasingly popular is the idea of building an API and client to consume the API instead of building an "all in one" web app. This separates the logic and presentation further, making cross platform development faster.
 
Last edited:
Upvote 0
Experienced Elementalist
Joined
Sep 8, 2012
Messages
260
Reaction score
6
I see, thanks!
I'll learn that PHP scroll, didn't even know that PHP supports so many things.
What do you suggest I learn after PHP? (Symfony/MVC/Laravel framework/Etc)
 
Upvote 0
Initiate Mage
Joined
Jan 28, 2016
Messages
36
Reaction score
7
I would learn a framework like greenelf suggested. After that, make sure you have the front end stuff down pretty good, maybe some JavaScript here and there.
 
Upvote 0
Back
Top