You are here: including files recursive problems « PHP « IT news, forums, messages
including files recursive problems

Posted by Thorsten Ottosen on 11/18/05 14:50

Dear All,

I define my include path to foo.

Then I create the following directory structure for my project:

foo/
foo/util/
foo/admin/

Then I create the following files:

foo/util/util.php // includes everything in this dir
foo/common.php // includes util/util.php and some more
foo/admin/foo.php // includes common.php

The problem is now that the functions in the utility headers are not
available in foo.php. I get the following error:


Fatal error: Call to undefined function generateAllGroupModels() in
E:\dezide\dezide_admin\admin\model_view.php on line 42


The function exists all right.

Am I doing something illegal with includes?

Thanks

-Thorsten

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация