Page 1 of 1

how can l change it to php ?

Posted: Sat Jul 01, 2006 4:59 am
by RECEP
Hello friends, Does anyone can say me how can l convert it to php ?
thanks

Code: Select all

<frameset rows="2,*">
  <frame name="üstbilgi" scrolling="no" noresize target="ana" src="index.txt">
  <frame name="ana" src="http://www.site.com/index.php">
  <noframes>
  </noframes>
</frameset>

Posted: Sat Jul 01, 2006 5:06 am
by Komota
You mean generating a string output like:

echo
(
"<frameset rows=\"2,*\">
<frame name=\"üstbilgi\" scrolling="no" noresize target=\"ana\" src=\"index.txt\">
<frame name=\"ana\" src=\"http://www.site.com/index.php\">
<noframes>
</noframes>
</frameset>"
) ;

Posted: Sat Jul 01, 2006 5:03 pm
by tecktalkcm0391
What do you want to do? Like include the two files or what?

Posted: Sat Jul 15, 2006 11:08 am
by RECEP
have you ever made 2 or more frames with Mic Front Page ? l want to do it with php codes, l want a stable "toppage.php" and a changeable page of "mainpage.php" mail page will be a different page in any other site, but when we click a link in "mailpage.php" "toppage.php" must be stable and the link we are going to open must be open under the "toppage.php".
how can l do ?

Re: how can l change it to php ?

Posted: Sat Jul 15, 2006 11:19 am
by Christopher
Server side includes can achieve the same results as frames in assembling a page from multiple files. You will need deal with where the <html>, <head> and <body> tags come from though. The code would simply be:

Code: Select all

<?php
inlcude "index.txt";
inlcude "http://www.site.com/index.php";