Re: [PHP] auto include?

2004-08-13 Thread Chris Shiflett
--- Jonathan Hadddad [EMAIL PROTECTED] wrote: is there a way to always have a certain script evaluate at the start of every page? Yes, the auto_prepend_file configuration directive. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall

Re: [PHP] auto include?

2004-08-13 Thread Justin Patrin
On Fri, 13 Aug 2004 16:23:26 -0400, Jonathan Hadddad [EMAIL PROTECTED] wrote: is there a way to always have a certain script evaluate at the start of every page? Look in the php.ini settings for auto prepend. -- DB_DataObject_FormBuilder - The database at your fingertips

Re: [PHP] auto include?

2004-08-13 Thread Jonathan Hadddad
Is there any reason why values I attempt to set in .htaccess wouldn't work? this is what I have: php_value auto_prepend /Users/jhaddad/Sites/oldirtyhaddad.com/public_html/connection.php php_value include_path .:/Users/jhaddad/Sites/oldirtyhaddad.com/libraries is there a server variable that

RE: [PHP] auto include?

2004-08-13 Thread Ed Lazor
Yea, it depends on whether your server allows you to put settings in .htaccess. Try putting an invalid command in there like NotAValidDirective and test to see if your pages stop working and whether you get a log error saying that the htaccess file includes an invalid command. -Ed

Re: [PHP] auto include?

2004-08-13 Thread Jonathan Hadddad
is there anything that would show up in phpinfo() that would tell me if that feature is disabled? Jon On Aug 13, 2004, at 7:10 PM, Ed Lazor wrote: Yea, it depends on whether your server allows you to put settings in .htaccess. Try putting an invalid command in there like NotAValidDirective and

RE: [PHP] auto include?

2004-08-13 Thread Ed Lazor
Nope, at least not that I know of. We're dealing more with Apache issues than PHP issues. That's why I'd use the approach outlined below. -Original Message- is there anything that would show up in phpinfo() that would tell me if that feature is disabled? Jon On Aug 13, 2004, at

Re: [PHP] Auto Include a Function

2003-01-10 Thread Justin French
Hi, I haven't seen anything like that implemented yet. I have my functions logically grouped/organised into files... I only include the file when needed. Some files (like my string functions and DB functions) are auto-prepend (a php.ini directive) auto-included into every script, which does