Re: [PHP3] using virtual() in .HTML files ...please help!

From: Date: Fri, 09 Jun 2000 21:14:42 +0000
Subject: Re: [PHP3] using virtual() in .HTML files ...please help!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1447@lists.php.net to get a copy of this message
In article <39406A1796.B088PHP.NET@209.15.45.80>, php.net@tocrawl.com (Maxim Maletsky) wrote: > Hi. > > I've encountred a problem with iuncluding an HTML (B.html) file into > another HTML (A.html) file by using virtual() > > in A.html I inserted: > <? virtual ("B.html") ?> > > and it gives me the error: > Warning: Cannot include a PHP file (use <?include "B.html"> instead) in > /home/httpd/html/wherever/was/A.html on line 1 virtual() only works with the Module install, not CGI, so that might be the problem. > I then renamed A.html into A.shtml and it worked. > > > Now, the reason I'm trying to do this is that I need to include at least > 3 files: > > A.html on load inserts B.html which in the same way would insert C.html > > > > I perfectly understand that it works preatty well with just simple SSI > but my problem is that I CANNOT use any extension other that .html > And this is because off bookmark reasons, if I rename all 16.000 files > on my company website they will lose all the traffic. You can't have SSI and PHP stacked on top of each other with Apache. (You could switch to fhttpd and get that feature, I think) You can have any extensions you like parsed by PHP. Just edit httpd.conf and add html to the line about AddType and PHP. > God, I wish they used templates before I got here ... -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#1447) next »