Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: PHP Including Problems

  1. #11
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    OK... let's try this.
    Code:
    <?php
    ob_start();
      include("../music/andromeda.php");
      $page = ob_get_contents();
    ob_end_clean();
    $page = explode("<body", $page);
    $page = $page[1];
    $page = explode(">", $page);
    $page = $page[1];
    $page = explode("</body>", $page);
    $page = $page[0];
    echo($page);
    ?>
    Regex would be much more elegant here, but PHP seems to have a problem with character classes I can't quite understand.
    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!

  2. #12
    Join Date
    Feb 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    the last code you gave me, shows only a blanc page....


    What is Regex??

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •