Warning: include(/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/mtcounter/mtcounter.php): failed to open stream: No such file or directory in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 1 Warning: include(/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/mtcounter/mtcounter.php): failed to open stream: No such file or directory in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 1 Warning: include(): Failed opening '/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/mtcounter/mtcounter.php' for inclusion (include_path='.:/usr/local/php53/lib/php:/storage/content/41/1005641/pear/php') in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 1 Warning: include(/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/links/db.php): failed to open stream: No such file or directory in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 2 Warning: include(/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/links/db.php): failed to open stream: No such file or directory in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 2 Warning: include(): Failed opening '/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/links/db.php' for inclusion (include_path='.:/usr/local/php53/lib/php:/storage/content/41/1005641/pear/php') in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 2 Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 6 Warning: mysql_query(): A link to the server could not be established in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 6 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 7 نحوه ايجاد يك شمارشگر بازديدكننده توسط تصاوير گرافيكي :: یک کلیک برای همیشه
بازگشت به صفحه اصلی
بازگشت به صفحه اصلی
نرم افزارهای رایگان
Warning: include(/mounted-storage/home86a/sub001/sc47358-NYVZ/onlyfreewares.com/Persian.php): failed to open stream: No such file or directory in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 80 Warning: include(/mounted-storage/home86a/sub001/sc47358-NYVZ/onlyfreewares.com/Persian.php): failed to open stream: No such file or directory in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 80 Warning: include(): Failed opening '/mounted-storage/home86a/sub001/sc47358-NYVZ/onlyfreewares.com/Persian.php' for inclusion (include_path='.:/usr/local/php53/lib/php:/storage/content/41/1005641/pear/php') in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 80
لینک دونی
Warning: include(/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/linkdooni/IncLastPosts.php): failed to open stream: No such file or directory in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 94 Warning: include(/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/linkdooni/IncLastPosts.php): failed to open stream: No such file or directory in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 94 Warning: include(): Failed opening '/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/linkdooni/IncLastPosts.php' for inclusion (include_path='.:/usr/local/php53/lib/php:/storage/content/41/1005641/pear/php') in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 94
لینک های مفید
Warning: include(/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/468X60Ads.php): failed to open stream: No such file or directory in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 114 Warning: include(/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/468X60Ads.php): failed to open stream: No such file or directory in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 114 Warning: include(): Failed opening '/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/468X60Ads.php' for inclusion (include_path='.:/usr/local/php53/lib/php:/storage/content/41/1005641/pear/php') in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 114
Warning: include(/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/daily/IncLastPosts.php): failed to open stream: No such file or directory in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 118 Warning: include(/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/daily/IncLastPosts.php): failed to open stream: No such file or directory in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 118 Warning: include(): Failed opening '/mounted-storage/home86a/sub001/sc47358-NYVZ/azemat.com/weblog/daily/IncLastPosts.php' for inclusion (include_path='.:/usr/local/php53/lib/php:/storage/content/41/1005641/pear/php') in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 118

براي ايجاد چنين برنامه‌اي معمولا از بانك‌هاي اطلاعاتي استفاده ميكنند، نام بانك اطلاعاتي براي بعضي‌ها مثل يك كابوس است! پس ما هم از اين كلمه دوري ميكنيم و برنامه خود را در يك فايل معمولي ذخيره ميكنيم. براي شروع لازم است بدانيد كه ساخت اين برنامه طي 4 مرحله صورت ميگيرد كه باهم يكي يكي انجام مي‌دهيم.

- مرحله اول
ايجاد فايل پردازشگر برنامه (فايل اصلي). تمامي كدهاي زير را كپي و در فايلي به نام count.php ذخيره كنيد.


<?

###############################
# created by mohammad.m                            #
# email : irphp@yahoo.co.uk                          #
###############################

$dj = "hits.dat";
$fp = fopen($dj,"r");
$kj = trim(fread($fp,filesize($dj)));
if ($kj != "") $kj++;
else $kj = 1;
@fclose($fp);
$fp = fopen($dj,"w");
@fputs($fp,$kj);
for($x=0;$x<strlen($kj);$x++) {
$img2 = substr($kj,$x,1);
$count .= "<img src='images/$img2.gif'>";
}
@fclose($fp);
echo '
<table cellpadding="0" cellspacing="0">
<tr><td><font face="verdana" size="2"><b>كل بازديدها:</b> </font></td><td>';
print $count;
echo '</td></tr>
</table>';
?>


- مرحله دوم
ايجاد فايل ذخيره كننده. اين فايل نقش بانك اطلاعاتي ما را خواهد داشت و تعداد بازديدهاي ما در اين فايل ذخيره ميشود. براي ايجاد اين فايل كافيست نت پد ( Notepad ) خود را باز كنيد و از طريق گزينه ... Save As فايل با نام hits را با پسوند dat. ذخيره كنيد.


- مرحله سوم
دريافت تصاوير ( نمايش دهنده‌هاي بازديد‌ها ). تصاوير نمونه را مي‌توانيد از اين لينك دانلود كنيد يا اينكه خودتان با سليقه خودتان تصاويري طراحي و طبق شماره تصوير ( 0 ، 1 ، 2 ، 3 و ... ) نامگذاري و با پسوند gif. ذخيره كنيد و به جاي تصاوير برنامه قرار دهيد. ( توجه كنيد كه تمامي تصاوير بايد در دايركتوري با نام images قرار گيرند. )


- مرحله چهارم
تعريف CHMOD و فراخواني برنامه در صفحات شما. CHMOD فايل hits.dat بايد 666 قرار گيرد يعني قابل خواندن و نوشتن. براي فراخواني برنامه در صفحات خود نيز از كد زير استفاده كنيد.


<?
include('count.php');
?>


كار تمام شد! در صورت داشتن هر گونه مشكل در نصب يا اجراي برنامه، ميتوانيد با ايميل من تماس بگيريد.


نويسنده: محمد . م
ايميل: irphp@yahoo.co.uk

تعداد بازدید ( Fatal error: Call to undefined function entry_counter() in /storage/content/41/1005641/weblog.azemat.com/public_html/archives/004931.php on line 196