You are here: PHP global functions ? « PHP Programming Language « IT news, forums, messages
PHP global functions ?

Posted by lazypig06@gmail.com on 08/08/06 21:07

Hi everyone !

I got a question about how to create a universal functions (visible to
all pages in current directory and sub directories).

I am trying to create a function that can be called on each page in
current directory and sub directories without include the file that
contains this file. Does anybody know how to do this ?

To make it more specific, Let's say I created a file "temp.php" which
contains a function "foo( )".
Now, I'd like to call foo( ) in every new web pages I create in any
subdirectory without including the file "temp.php".

I was told that .htaccess can get this job done. However, I don't know
exactly how this is done using .htaccess ?

Any help would be appreciated ?

Thanks,
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

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