exploding help

A

Anonymous

Guest
i need to include a file and then explode it in a certain place but it jsut displays the whole thing, im really bad at php so i would rally appreciate it iif someone would help me with this. :help: :eek:

Ive tried this:
Code:
<?php

$thjsrth = explode("x", include("---"));
$abcdefghijklmnop = "$thjsrth[1]";

echo "$abcdefghijklmnop";

?>

and this:
Code:
<?php
$yimh = include("---");
$thjsrth = explode("x", $yimh);
$abcdefghijklmnop = "$thjsrth[1]";

echo "$abcdefghijklmnop";

?>

and neither have worked.
 
include() evaluates the included page.. so it would display it all.
Try opening the file as a text file instead.
Code:
<?php
$handle = fopen("---", "rb");
$contents = '';
while (!feof($handle)) {
  $contents .= fread($handle, 8192);
}
$thjsrth = explode("x", $contents);
$abcdefghijklmnop = $thjsrth[1];

echo $abcdefghijklmnop;

?>
 
Back
Top