r/PHPhelp • u/Clear_Anteater2075 • Feb 15 '26
PHP course
I know JavaScript,css and html I want to learn PHP ,of course I know I must try and write code to learn, but I want to understand complex concepts like cookies and.... ; if you can provide helpful tutorials
9
Upvotes
View all comments
Show parent comment
1
u/equilni Feb 16 '26 edited Feb 16 '26
Which is why much of PHP's beginner tutorials are horrible and people rehash similar practices.
If you are experienced, then you should be able to go back to the basics and correct bad habits, if you are responding to inquiries like these.
OP (u/Clear_Anteater2075) is in a similar place when I started (if we are going there), and my take would be:
(The best thing here, all you need is the PHP dev server)
/public/index.phpis the front page of the site. All other PHP code is outside of this.Next would be learn routing. At basics, this is query strings, as I wrote elsewhere
<a href="/">Home</a> <a href="/?page=about">About</a> <a href="/?page=register">Register</a>
My other comment on HTTP? 2 different calls. Now we are getting into the beginnings of "MVC" and "RESTful" architecture (in quotes because its buzzwords that gets commonly misinterpreted).
With HTTP response codes, you should know 200 & 404, then 405 if it's not part of the request
See here or here for a recent comment on this.