|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
RE: [PLUG] Another PHP question.
|
Because it reads html as well. You have to tell the page where php code
begins and ends
Example,
Html
Head
Body
<?
Echo 'hello';
?>
Html
<?
Echo 'bye';
?>
More html
Chris S
chris@jynx.net
www.jynx.net
-----Original Message-----
From: plug-bounces@lists.phillylinux.org
[mailto:plug-bounces@lists.phillylinux.org] On Behalf Of Doug Crompton
Sent: Friday, March 30, 2007 12:44 PM
To: Phila Linux Users Group
Subject: [PLUG] Another PHP question.
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
|
|