Re: [PHP] Using function in PHP script n DOCROOT in PHP script in subfolder

2002-05-11 Thread Phil Powell
Found a MUCH MUCH simpler solution that works across the board.. change $HTTP_HOST to $DOCUMENT_ROOT and it works! Phil "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Phil: > > On Fri, May 10, 2002 at 08:01:46PM -0400, Phil Powell wrote

Re: [PHP] Using function in PHP script n DOCROOT in PHP script in subfolder

2002-05-10 Thread Analysis & Solutions
Phil: On Fri, May 10, 2002 at 08:01:46PM -0400, Phil Powell wrote: > > How do I fix this problem? I do not want to duplicate the PHP script per > folder as there will be an enormous amount of dynamically-created subfolders > and I will have to copy a version per folder. I want to be able to use

[PHP] Using function in PHP script n DOCROOT in PHP script in subfolder

2002-05-10 Thread Phil Powell
http://$HTTP_HOST/$path/menubar.cgi";, "r"); $menubar = fread($fileID, 100); fclose($fileID); return $menubar; } ?> This function exists in the file "menubar_functions.php" which is in the docroot. I have a PHP script in a subfolder /chat that produces a Fatal Error (call to undefine