Thread Deleted
Thread Deleted
Last edited by Surya; 02-19-2006 at 01:50 PM.
Because you have two HTML documents, one inside the other. You need to use an output buffer to extract the contents of the body from the page you include.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
How to do it output buffer, sorry can u explain in detail pls...
Make sure you don't have any important scripts in the head, because they'll get stripped.PHP Code:<?php
ob_start();
include("../music/andromeda.php");
$page = ob_get_contents();
ob_end_clean();
$page = explode($page, "body>")[1];
$page = substr($page, 0, strlen($page) - 2);
echo($page);
?>
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Thread Deleted
Last edited by Surya; 02-19-2006 at 01:51 PM.
Sorry, you're right.PHP Code:<?php
ob_start();
include("../music/andromeda.php");
$page = ob_get_contents();
ob_end_clean();
$page = explode("body>", $page);
$page = $page[1];
$page = substr($page, 0, strlen($page) - 2);
echo($page);
?>
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Thread Deleted
Last edited by Surya; 02-19-2006 at 01:51 PM.
See the post.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Is there any solution to include???
![]()
![]()
![]()
... what? I just gave you one...
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks