> Zoran Lorkovic wrote:
>
> > $file = file_get_contents("text.inc");
> > $start = "[start]";
> > $end = "[/end]";
> > $pos_start = strpos ($file, $start);
> > $pos_end = strpos ($file, $end);
> > $data = substr ($file, $pos_start, $pos_end);
> > mail ("[EMAIL PROTECTED]", "M
On Tue, 31 Aug 2004 00:03:26 +0200, in php.general [EMAIL PROTECTED] (M.
Sokolewicz) wrote:
>that would depend from which place you run the script.
>file_get_contents("text.inc") will be looked for in:
>1. the current working directory
>2. the included dirs
Remember though that for 2), it looks i
Zoran Lorkovic wrote:
$file = file_get_contents("text.inc");
$start = "[start]";
$end = "[/end]";
$pos_start = strpos ($file, $start);
$pos_end = strpos ($file, $end);
$data = substr ($file, $pos_start, $pos_end);
mail ("[EMAIL PROTECTED]", "My Subject", $data);
This
3 matches
Mail list logo