Learn PHP: Basic CMS - Admin Panel (Part 5/8)

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

Alex, you can click ctrl+backspace to delete the whole word!

ArnoldsKtm
Автор

i have a problem when i try to access the admin page, i get a 403 forbidden error

Forbidden

You don't have permission to access /sprint3/cms/admin/ on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

I'm on a paid domain but the link to the file should be right. Can somebody help me?

DJDavidWidlak
Автор

Can anyone tell me why I get a 500 error after entering my username and password in the admin section?

This is my htaccess file:

AuthType Basic
AuthName "Password Required"
AuthUserFile /cms/admin/.htpasswd
require valid-user

gamerguy
Автор

I am wondering something, people have tried to explain it to me, but I still don't get it.

I never code in OOP, I don't see the use for it, I use functions most of the time, now I know function go in classes, but I don't see why you would need classes if you can basically do the same in a function.

Can you explain that to me?

MrGoatsy