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

Posted by lazypig06@gmail.com on 08/28/06 23:48

Hi !

I'd like to ask everyone this question. I am currently maintain a
website which have hundreds of pages and lot of subdirectories. Most of
these pages contains a common function (let's call it "foo()" on top of
each of these pages. I've tried to use auto prepend and .htaccess to
prepend a file which contains an exact function foo() that is being
used on other pages.

I kept getting error "Cannot redeclare foo() in..." when I try to use
..htaccess and auto prepend feature. I've tried to remove foo() from
each page and use the foo() in the include file instead, but this
process take too much time. Is there anyway that I can tell PHP to
ignore the foo() function that is being redeclare in each page ? (I
know that I eventually have to remove foo() in every page).

Sorry for a lengthy question.

Thank you in advance,
Lazy Pig

 

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

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