華府江山 http://203.72.56.8/phpBB3/ |
|
SESSION 的應用 http://203.72.56.8/phpBB3/viewtopic.php?f=42&t=879 |
第 1 頁 (共 1 頁) |
發表人: | alex [ 2012年 5月 26日, 13:16 ] |
文章主題 : | SESSION 的應用 |
How to start a session and track it by Pageviews, in this example, if there arent any pageviews, we will get 1. <?php session_start(); if(isset($_SESSION['views'])) { $_SESSION['views']=$_SESSION['views']+1; } else { $_SESSION['views']=1; echo "Views=". $_SESSION['views']; } ?> --------------------------------------------------- |
第 1 頁 (共 1 頁) | 所有顯示的時間為 UTC + 8 小時 |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |