>This is my problem:
>I want include the file html.html inside of my file index.php, but before 
>include it I want to remove <html>..</head> tags from my html.html file.

  $html = file('html.html');
  $found = 0;
  while (list(,$line) = each($html)){
    if ($found){
      echo $line;
      if ($rest = stristr($line, '</head>')){
        $rest = substr($rest, 7);
        echo $rest;
        $found = 1;

Although, honestly, this is just WRONG design.

Put your <HTML>...</HEAD> into *another* file, and either include it or
don't, depending on which way you want it.

Like Music?  http://l-i-e.com/artists.htm

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to