Sean C. Sheridan on 30 Mar 2007 16:53:16 -0000 |
Because you can include an "include" statement in many types of files. It does not need to be a .php file to be interpreted as such. You can set Apache to interpret anything you want as a php file. You *could* have the php parser parse all the .html files... but don't this is bad form and will make your server crawl. Sean C. Sheridan scs@CampusClients.com Campus Party, Inc. 444 North Third St. Philadelphia, PA 19123 (215) 320-1810, xtn 117 (215) 320-1814 fax http://www.CampusClients.com http://www.CampusParty.com > Just so I fully understand this... > > I was able to from (say) test.php execute a PHP script. What I want to do > is in html code (say) test.html execute a PHP script so that I can include > further HTML code at some point in an existing HTML document. Like > including content globaly across pages. Am I off-base here? > > Since PHP is preprocessed by Apache and the filename (apparently) has to > be .php then why do I explicity have to put the PHP command in a > container? > > Doug > > "Those that sacrifice essential liberty to obtain a little temporary > safety > deserve neither liberty nor safety." -- Ben Franklin (1759) > > **************************** > * Doug Crompton * > * Richboro, PA 18954 * > * 215-431-6307 * > * * > * doug@crompton.com * > * http://www.crompton.com * > **************************** > > > ___________________________________________________________________________ > Philadelphia Linux Users Group -- > http://www.phillylinux.org > Announcements - > http://lists.phillylinux.org/mailman/listinfo/plug-announce > General Discussion -- > http://lists.phillylinux.org/mailman/listinfo/plug > -- ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|