PDA

View Full Version : Lỗi PHP , không send mail được



hnguyen111
09-12-2006, 13:23
em có 1 file test.php up lên host cho nó chạy:
<?php
$to = "nhieumail@yahoo.com";
$msg = " test REPORT";
$subj = " test1 REPORT;
mail($to, $subj, $msg);
?>

nó báo lỗi:
Parse error: parse error, unexpected $ in /home2/***/public_html/quantrong/test.php on line 6

khổ tâm quá
xin anh em chỉ giúp

cuongdm
09-12-2006, 13:45
chào em,
anh ko biết em dùng editor gì để code, nếu em dùng DW thì em sẽ thấy ngay lỗi chỗ nào


$subj = " test1 REPORT;

em chỉ thiếu dấu " thôi... :)