Re: [PHP] Re: Problem sending mail

2004-08-31 Thread Zoran Lorkovic
> 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

[PHP] Re: Problem sending mail

2004-08-30 Thread Peter Brodersen
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

[PHP] Re: Problem sending mail

2004-08-30 Thread M. Sokolewicz
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