[PHP] Re: Auto_prepend_file

2002-02-28 Thread Pete Lacey

It's not 'php' but 'php_value'.

php_value auto_prepend_file "pathtoscript/uniemail.php"

Richard Baskett wrote:
> What I want to do is have a function available to all my php files without
> having to use an include in every page.  So what I did was put this line in
> my .htaccess file:
> 
> php auto_prepend_file "pathtoscript/uniemail.php"
> 
> It didn¹t work, I also tried php_auto with the underscore in the above.. And
> that didn¹t work either.  I have modified my httpd.conf file so that it will
> process .htaccess files..
> 
> Any ideas?
> 
> Rick
> 
> "I haven't failed, I've found 10,000 ways that don't work." - Ben Franklin
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Auto_prepend_file

2002-02-28 Thread Richard Baskett

Actually I did give the absolute path.. Any more ideas?

Rick

"If you're going to be able to look back on something and laugh about it,
you might as well laugh about it now." - Marie Osmond

> From: "Timothy J. Luoma" <[EMAIL PROTECTED]>
> Date: Thu, 28 Feb 2002 20:06:39 -0500 (Eastern Standard Time)
> To: Richard Baskett <[EMAIL PROTECTED]>
> Cc: PHP General <[EMAIL PROTECTED]>
> Subject: Re: Auto_prepend_file
> 
> On Thu, 28 Feb 2002, Richard Baskett wrote:
> 
>> What I want to do is have a function available to all my php files without
>> having to use an include in every page.  So what I did was put this line in
>> my .htaccess file:
>> 
>> php auto_prepend_file "pathtoscript/uniemail.php"
> 
> On my system I had to give the absolute full path (not just document root
> but /usr/local/lib/apache/htdocs/pathtoscript/uniemail.php)
> 
> You might try that.
> 
> TjL
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Auto_prepend_file

2002-02-28 Thread Timothy J. Luoma

On Thu, 28 Feb 2002, Richard Baskett wrote:

> What I want to do is have a function available to all my php files without
> having to use an include in every page.  So what I did was put this line in
> my .htaccess file:
>
> php auto_prepend_file "pathtoscript/uniemail.php"

On my system I had to give the absolute full path (not just document root
but /usr/local/lib/apache/htdocs/pathtoscript/uniemail.php)

You might try that.

TjL




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php