RE: [PHP] Problem with includes

From: Date: Fri, 13 Oct 2000 01:53:44 +0000
Subject: RE: [PHP] Problem with includes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-19932@lists.php.net to get a copy of this message
If it's *only* HTML in that file, with no PHP in it(I think...i haven't tried any perl scripts or ssi files; anyone know for sure? <g>) : virtual("file.html"); This assumes that the file is in the same directory as the script that's calling it. Otherwise: virtual("/path/to/html-only/file.html"); virtual() works like ssi includes marco -----Original Message----- From: IroNuckles@aol.com [mailto:IroNuckles@aol.com] Sent: Thursday, October 12, 2000 6:51 PM To: php-general@lists.php.net Subject: [PHP] Problem with includes I'm trying to create a site menu which include()s html files to create a dynamic menu for each page. I have tried using a simple include("file.html"); statement, but when I run the script, the following is printed into the HTML doc: Warning: Unable to access ../file.html in /directory/index.php on line 47 Followed by another error: Warning: Failed opening '../file.html' for inclusion (include_path='') in /directory/index.php on line 47 Any help or insight would be appreciated. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#19932) next »