摘要:
适用于 php-5.2 的 php.ini 中文版作者:金步国;;;;;;;;;;;;;;;;;;; 关于php.ini ;;;;;;;;;;;;;;;;;;;; 这个文件必须命名为'php.ini'并放置在httpd.conf中PHPINIDir指令指定的目录中。; 最新版本的php.ini可以在下面两个位置查看:; http://cvs.php.net/viewvc.cgi/php-src/php.ini-recommended?view=co; http://cvs.php.net/viewvc.cgi/php-src/php.ini-dist?view=co;;;;;; 阅读全文
摘要:
<?phpfinal class MySQL { private $connection; public function __construct($hostname, $username, $password, $database) { if (!$this->connection = mysql_connect($hostname, $username, $password)) { exit('Error: Could not make a database connection using ' . $username . '@' . $host 阅读全文
摘要:
<?php// fix 404 pages:header('HTTP/1.1 200 OK'); // set 404 header:header('HTTP/1.1 404 Not Found'); // set Moved Permanently header (good for redrictions)// use with location headerheader('HTTP/1.1 301 Moved Permanently'); // redirect to a new location:header('Locatio 阅读全文