Hi!,
I am trying to create a script which will the contents of a file and trim
away the 'top' and 'bottom' of it.
So far I have the following:--
<?php
$file = fopen("/var/www/html/file.txt", "r");
$content = file_get_conten ts($page);
fclose($file);
?>
I would like to add two variables to this (like $start and $end) where
anything before $start would be trimmed and anything after $end will be
trimmed.
Any idea how i can do this ?
Sorry if this is a stupid question :)
Thanks Don
I am trying to create a script which will the contents of a file and trim
away the 'top' and 'bottom' of it.
So far I have the following:--
<?php
$file = fopen("/var/www/html/file.txt", "r");
$content = file_get_conten ts($page);
fclose($file);
?>
I would like to add two variables to this (like $start and $end) where
anything before $start would be trimmed and anything after $end will be
trimmed.
Any idea how i can do this ?
Sorry if this is a stupid question :)
Thanks Don
Comment