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

Posted by Rik on 08/10/06 21:14

lazypig06@gmail.com wrote:
> binderup@gmail.com wrote:
>>> Just configure it in php.ini. Set auto_append_file to wherever your
>>> function is.
>>
>> Well that might not be a good idea if you don't want the functions to
>> be available for all virtual hosts (or if you don't have access to
>> the php.ini file).
>>
>> I prefer to use the .htaccess method:
>> php_value auto_prepend_file /full/path/to/script.php
> Thank you for your response. If you gonna use .htaccess to this this,
> how would you go about to do that ?
> I've searched many sites, but none of the sites I found has specific
> information about this stuff.

Exactly how he said, create an .htaccess file containing:
php_value auto_prepend_file /full/path/to/script.php

More files/scripts are perfectly possible.

Grtz,
--
Rik Wasmus

 

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

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