Ben Require_oncenin göre bir yol atama problemleri yaşıyorum. Bunu ben görüyorum değilim basit şey olduğundan emin değilim ...
folder directory structure level 1: site level 2: include level 2: class
so... site/include/global.php <-- this is where function autoload is being called from site/class/db.php
Ben kullanmaya çalıştığınızda
function__autoload($className)
{
require_once '../class/'.$className.'.php';
}
i olsun:
Uyarı: require_once (/ sınıf / db.php.). [Function.require-once]: Böyle bir dosya ya da dizin yok: failed to open stream
Ölümcül hata: require_once () [function.require]: Başarısız açılış gereklidir '.. / Class / db.php' ('...; / Içerir; / armut' include_pathdaki =)
Ben yanlış ne yapıyorum? Ben sınıf klasöründe global.php lop eğer bu yüzden soruna neden olduğu göreli yollar benim zavallı anlayış olduğunu kabul ediyorum iyi iş olacak ..
Teşekkürler