You are here: include files with similar contents « PHP Programming Language « IT news, forums, messages
include files with similar contents

Posted by Gunnar G on 02/05/07 20:56

Hi.
Another question for you guys, you are very helpful.
If I have the files a.php, b.php, c.php and I must include them, but they
all contain the same function foo(), is there a way to tell PHP to call the
function foo from a.php, foo from b.php , and so on? Or will the last
included file replace the previous foo() functions?

Any suggestion on a workaround? Can I call afile.php which inclueds a.php
and runs foo() from a.php?
Or will I have to rewrite all the files a.php, b.php, etc. ?
--
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

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