Yolunu ve garip yapı içerir

0 Cevap php

Hai. I've got site which is really weird, and now is making me troubles. This is simplified structure

public_html
- adm
--- raport
------ raportpdf.php
--- class
------ Bonus
--------- Bonus_DAO.class.php 
------ config.php
--- raport.php
- index.php

Yani. Index.php dev yükleyici olduğunu. Bu satırları var: (ama onlar diffrence yapıyoruz olduğunu sanmıyorum)

set_include_path('lib/DB' . PATH_SEPARATOR . get_include_path());
set_include_path('lib/PHPLOT' . PATH_SEPARATOR . get_include_path());
set_include_path('config' . PATH_SEPARATOR . get_include_path());
set_include_path('view' . PATH_SEPARATOR . get_include_path());
set_include_path('controller' . PATH_SEPARATOR . get_include_path());
set_include_path('model' . PATH_SEPARATOR . get_include_path());

Bonus_DAO.class.php içeride gibi bir şeydir

require_once('./adm/class/config.php');

Raportpdf.php is called through index.php - it sends it's content without any error at mail. But when I want to access raport.php, I have error like:

Warning: require_once(./adm/class/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/panele/domains/blahblah/public_html/adm/class/Bonus/Bonus_DAO.class.php  on line 2

Fatal error: require_once() [function.require]: Failed opening required './adm/class/config.php' (include_path='.:/usr/local/lib/php') in /home/panele/domains/blahblah/public_html/adm/class/Bonus/Bonus_DAO.class.php on line 2

Bunu nasıl çözebilirim?

0 Cevap