وقت بخیر...
در مبحث autoload با ارور Class Load Error در سیستم عامل مک مواجه شدم که در یکی از پرسش پاسخهای گذشته توضیح دادین که :
برای بحث autoloading قبل از شرط از str_replace بدید :
$class_file = str_replace('\\\\', '/', $class_file);
اما با اعمال این تغییرات با ارور دیگه ای مواجه شدم لطفا راهنمایی بفرمایید.با تشکر
spl_autoload_register(function ($class){
$class_file = __DIR__ . str_replace('\\\\', '/',$class.php);
if(file_exists($class_file) and is_readable($class_file)){
include $class_file;
}else{
die("Class Load Error ...");
}
});
Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /Applications/XAMPP/xamppfiles/htdocs/pr/Exporter/autoload.php on line 4
Class Load Error ...