![ישן](https://static.fresh.co.il/images/vBulletin/statusicon/post_old.gif)
19-03-2005, 11:57
|
![צלמית המשתמש של דור](image.php?u=3929&dateline=1201940655) |
|
|
חבר מתאריך: 09.04.02
הודעות: 8,000
|
|
קיבלתי מספר שניות מאוד גדול.
חילקתי אותו ב-43200 (זה מספר השניות ביום) וזה עדיין נותן לי מספר גדול.
הנה הקוד:
קוד PHP:
<?php $im = imagecreate(45, 15); $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 225); $end = mktime(0, 0, 0, 7, 0, 2005); $now = date("d.m.Y"); $timestamp = abs($end-$now); $num_of_days = $timestamp/43200; imagestring($im, 5, 0, 0, $num_of_days, $textcolor);
header("Content-type: image/jpeg"); imagejpeg($im); ?>
|