Zum Inhalt springen

TEMPLATE with PHP code

Erstellt am 26. Februar 2004 · 1 Antwort · letzte Antwort am 26. Februar 2004

Tags: Frage, English

vanea ·

I have this template....in indx.html file
My site is based on this one....

MENU is for left menu, which is created from page structure
CONTENT is content of pages when a menu is clicked

instead of MYPHP I want the content returned by ECHO from my own php script which is in inc/myscript.php

HOW TO DO THAT ?

file /inc/myscript.php
----------------------
<?
echo "hello from myscript.php";
?>
---------------------

file index.html (template)
-------------------------

<HTML><HEAD><TITLE>Welcome</TITLE>
<BODY>
<!--###DOCUMENT_BODY### start-->

<TABLE>
<TR>
<TD>
<!--###MENU### start-->
<!--###MENU### stop-->
</TD>

<TD>
<!--###CONTENT### start-->
<!--###CONTENT### stop-->
</TD>
</TR>
</TABLE>

<!--###MYPHP### start-->
<!--###MYPHP### stop-->

<!--###DOCUMENT_BODY### stop-->

</BODY>
</HTML>

----------------------------

TW ·
vanea schrieb

I have this template....in indx.html file
My site is based on this one....

MENU is for left menu, which is created from page structure
CONTENT is content of pages when a menu is clicked

instead of MYPHP I want the content returned by ECHO from my own php script which is in inc/myscript.php

HOW TO DO THAT ?

file /inc/myscript.php
----------------------
<?
echo "hello from myscript.php";
?>
---------------------

file index.html (template)
-------------------------

<HTML><HEAD><TITLE>Welcome</TITLE>
<BODY>
<!--###DOCUMENT_BODY### start-->

<TABLE>
<TR>
<TD>
<!--###MENU### start-->
<!--###MENU### stop-->
</TD>

<TD>
<!--###CONTENT### start-->
<!--###CONTENT### stop-->
</TD>
</TR>
</TABLE>

<!--###MYPHP### start-->
<!--###MYPHP### stop-->

<!--###DOCUMENT_BODY### stop-->

</BODY>
</HTML>

----------------------------

hey

it's the wrong range for this question.
use the link...

#9409

and that's it!

cu
thorsten