01-12-2004, 19:29
|
|
|
חבר מתאריך: 01.11.04
הודעות: 109
|
|
include לקובץ HTML ו Str_Replace בתוך הקובץ
דוגמא:
יש לי קובץ index.php, ובתוכו שורת Include לקובץ skin/index.php שהוא בעצם קובץ HTML.
עכשיו אני רוצה שאם אני אכתוב בקובץ skin/index.php ( בקוד של HTML ):
{TRY}
שהוא יחליף לי את זה במשתנה
$i של PHP.
זא"ת:
קובץ אחד PHP: ( index.php)
include "skin/index.php";
קובץ HTML: ( עם סיומת של PHP או אפשר לשנות לכל סיומת אחרת! )
{TRY}
אני מקווה מאוד שהבנתם אותי ושאתם יכולים לעזור לי.
_____________________________________
Your signature did not follow Fresh's signatures policy, therefore it was automatically erased. Please see the E-Mail which has been sent to you, to learn how to fix this.
|