In reply to [EMAIL PROTECTED]:

> Return-Path: <[EMAIL PROTECTED]>
> Received: from toye.php.net (va.php.net [198.186.203.51])
>         by cobalt1.intermedia.com.sg (8.10.2/8.10.2) with SMTP id f4IDicZ30638
>         for <[EMAIL PROTECTED]>; Fri, 18 May 2001 21:44:39 +0800
> Received: (qmail 23365 invoked by uid 1013); 18 May 2001 13:47:20 -0000
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> list-help: <mailto:[EMAIL PROTECTED]>
> list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> list-post: <mailto:[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> Received: (qmail 23359 invoked from network); 18 May 2001 13:47:20 -0000
> Reply-To: <[EMAIL PROTECTED]>
> From: "Taline Makssabo" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: Fri, 18 May 2001 09:49:35 -0400
> Message-ID: <[EMAIL PROTECTED]>
> MIME-Version: 1.0
> Content-Type: text/plain;
>         charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> X-Priority: 3 (Normal)
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
> Importance: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
> Subject: [PHP] Parse error..help!
> X-UIDL: #l6"!fL$#!:Bj"!n1f!!

> Here is another error i keep on getting, this is suppose to send me an email
> each time someone enters in my website but i keep on gettong this error
> message:



> Parse error: parse error in
> /home/virtual/ppcu/home/httpd/html/php2/login.php on line 8
> I don't see anything wrong, please help.



> <?

> SetLogging(1);

> Function AccessHit
> (

>         $NL = (\n);


>         $H = getLastHost();


>         $R = getLastRef();

>         $To = "[EMAIL PROTECTED]";


>         $Sub = "Page Accessed";


>         $D = Date("D d M y h:ia",time());

>         $Msg = $H + $NL + $R + $NL + $D;

>         mail($To,$Sub,$Msg);
> );
> AccessHit();

?>>

Right... so all in all the code should be:

---
<?

SetLogging(1);

function AccessHit() {

        $NL = "\n";


        $H = getLastHost();


        $R = getLastRef();

        $To = "[EMAIL PROTECTED]";


        $Sub = "Page Accessed";


        $D = Date("D d M y h:ia",time());

        $Msg = $H + $NL + $R + $NL + $D;

        mail($To,$Sub,$Msg);

}
AccessHit();

?>
---

Regards,
Keith Ng
_______________________________
Co-founder
K-Designs Incorporated
[EMAIL PROTECTED]

http://www.k-designs.com.sg/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to