Libbna / BLOG_SITE

Simple blog site with CRUD operations using PHP and MYSQL
2 stars 4 forks source link

__autoload() function deprecated error is occurring #11

Closed vbadkar closed 3 years ago

vbadkar commented 3 years ago

After loading the site a deprecated error is observed for __autoload() function, although the content gets loaded without the css Attaching screenshots of the same. image image

vbadkar commented 3 years ago

After changing the code to this:- image The error is not occurring anymore but the CSS unable to load issue is still occurring, will create a new issue for it closing this issue as it doesn't seems to be related to the CSS.

Libbna commented 3 years ago

spl_autoload_register() method is supported by the php versions (PHP 5 >= 5.1.0, PHP 7, PHP 8). I'm using PHP 7 and changed the _autoload() method to spl_autoload_register() method, it is working fine.

image