• 004.JPG
  • 026.JPG
  • 065.JPG
  • 093.JPG
  • 098.JPG
  • 099.JPG
  • 115.JPG
  • 118.JPG

16) || ($colonStr === false) ) // somewhat arbitrary { // modify the string by adding the $baseUrl echo( $baseUrl ); } } else { $subStrLen = strlen( $code ) – $index; echo( substr( $pCode, $index, $subStrLen) ); $index = strlen( $code ); } } } function report( $message, $report ) { if( $report != FALSE ) echo( $message ); } function includeFrom( $fromUrl, $baseUrl, $startString, $endString, $report ) // $fromUrl – URL to read from, e.g. „http://foo.bar.com/index.html” // $baseUrl – Base to apply to local resources, e.g. „http://foo.bar.com/” // $startString – String before content you want to include // $endString – String after content you want to include // $report – „FALSE” if you don’t want includeFrom() to insert error // reporting into the output; errors will just cause no output { $fd = fopen( $fromUrl, „r” ); if( $fd != FALSE ) { $fr = fread( fopen( $fromUrl, „r” ), 100000 ); fclose( $fd ); if ($fr) { $start = strpos( $fr, $startString ) + strlen($startString); $finish = strpos( $fr, $endString ); // – strlen($endString); if( ($start != FALSE) && ($finish != FALSE) ) { $length = $finish – $start; $code = Substr( $fr, $start, $length ); // if you don’t want to get fancy, use echo( $code ) instead of addBase() addBase( $baseUrl, $code ); } else report( „

„, $report ); } else report( „

„, $report ); } else report( „

„, $report ); } // Below here is just test code… ?> „, „

„, TRUE ); ?>