PHPͳ¼ÆÍøÕ¾·ÃÎÊ´ÎÊý·ÀË¢ÐÂ
<?
@session_start();
$counter = intval(file_get_contents("counter.dat"));
if(!$_SESSION['jingyun'])
{
$_SESSION['jingyun'] = true;
$counter++;
$fp = fopen("counter.dat","w");
fwrite($fp, $counter);
fclose($fp);
}
?>
×Ü·ÃÎÊ <span style="font-size:14px; color:#FF6600" mce_style="font-size:14px; color:#FF6600"><?php echo "$counter";?></span> ´Î
Ïà¹ØÎĵµ£º
1. Êý¾Ý¿âÖÐÒÑ´´½¨´æ´¢¹ý³Ìuser_logon_check, PHPµ÷ÓÃʾÀýÈçÏÂ,
<?php
$dsn = 'mssql:dbname=MyDbName;host=localhost';
$user = 'sa';
$password = '666666';
try {
$dbCon = new PDO($dsn, $user, $password);
} catch (PDOException $e) {
print 'Connection failed: '.$e->getMessage();
......
<?php
define('SMARTY_TMP_DIR','C:/php5/Smarty-2.6.13/');
define('SMARTY_DIR','C:/php5/Smarty-2.6.13/libs/'); //SMARTY_DIR ->smarty keyword,must be defined as libs dectory
require_once(SMARTY_DIR.'Smarty.class.php');
//½¨Á¢Ò»¸ösmarty¶ÔÏó
$smarty = new Smarty;
$smarty->template_dir = ......
¼ò½é
¡¡¡¡PHPÊÇÒ»ÖÖÒ×ÓÚѧϰºÍʹÓõķþÎñÆ÷¶Ë½Å±¾ÓïÑÔ¡£Ö»ÐèÒªºÜÉٵıà³Ì֪ʶÄã¾ÍÄÜʹÓÃPHP½¨Á¢Ò»¸öÕæÕý½»»¥µÄWEBÕ¾µã¡£±¾½Ì³Ì²¢²»ÏëÈÃÄãÍêÈ«Á˽âÕâÖÖÓïÑÔ£¬Ö»ÊÇÄÜʹÄ㾡¿ì¼ÓÈ뿪·¢¶¯Ì¬webÕ¾µãµÄÐÐÁС£ÎÒ¼Ù¶¨ÄãÓÐһЩHTML£¨»òÕßHTML±à¼Æ÷£©µÄ»ù±¾ÖªÊ¶ºÍһЩ±à³Ì˼Ïë¡£
1.¼ò½é
¡¡¡¡PHPÊÇÄÜÈÃÄãÉú³É¶¯Ì¬ÍøÒ³µÄ¹¤ ......
ÏÖÔÚÊг¡ÉϵÄoa»ù±¾ÉϿɹé½áΪÁ½´óÕóÓª£¬¼´phpÕóÓªºÍjavaÕóÓª¡£µ«¶Ô½Ó´¥oa²»¾ÃµÄÓû§À´Ëµ£¬¿´µ½µÄÍùÍùÖ»ÊÇËüÃǵıíÏֻ࣬ÊÇÃ÷ÏԵļ۸ñ²îÒ죬ȴºÜÄÑ¿´³öËüÃÇÖ®¼äµÄʵ¼Ê²îÒì¡£Æäʵ£¬ PHP + MYSQL ²»ÖµÇ®²»½ö½ö¾ÖÏÞÓÚoaÈí¼þ£¬¶øÊÇÕûÌåÉÏPHP + MYSQL¿ª·¢µÄÈí¼þ¶¼²»Èçjava¿ª·¢µÄÈí¼þֵǮ¡£ÎªÊ²Ã´PHP + MYSQL µÄOAΪʲô²»ÖµÇ®Ä ......