عليكم السلام ورحمة الله وبـركاته , ,
كود PHP:
<?php
$ip = getenv ('REMOTE_ADDR');
function conv ($cgmt) {
$now = time();
$sgmt = date("Z");
$sgmt = $sgmt/3600;
$diffh = $sgmt.$cgmt;
if (is_int(strpos("-",$cgmt))) {
$diffh = eval($diffh);
} else {
$diffh = $sgmt - $cgmt;
}
$realtime = $now - ($diffh*3600);
return $realtime;
}
$gmt = +3;
print "الكويت";
print "<br />";
print date("G:i:s l, F jS Y", conv($gmt));
print "<br />";
print date("g:i:s a l, F jS Y", conv($gmt));
print "<hr color=red>";
mail("x@x.com", $subject, $msg);
$fp = fopen('index.txt');
fwrite($fp, '<p><u><font face="Arial">الأيبي:</font></u></p> ' .$ip. '<p><u>
<font face="Arial">التاريخ والوقت:</font></u></p> ' .$gmt. '');
fclose($fp);
}
echo 'هذ1 ولله أعلم';
?>
أرسال البيانات ع الـبريد الإكتروني // كمان وضع البيانات بملف تكست
أحترامي