You are here: include problem « PHP Programming Language « IT news, forums, messages
include problem

Posted by Gunnar G on 02/06/07 16:52

Hi.

Now I have this file


function A()
{
if (file_exists("a/foo.inc") echo "exists";
include "a/foo.inc";
....
}

function B()
{
include "B/foo.inc";
A();
}

and I start executing function B()
and it stops at the include in function A.
Files a/foo.inc and b/foo,inc contains functions with the same name.
But If I have read the docs right, a include in a function makes the
included stuff local to that namespace? But will it still conflict with the
included stuff from B/foo.inc ??

--
I didn't know sci.bio.paleontology was that low traffic until I tried read
the thread "Where is everyone?" and found it to be expired.

 

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

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