Not Found
The requested URL /itbt/$url was not found on this server.
解决方法:
LoadModule rewrite_module modules/mod_rewrite.so去掉前面#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None改为AllowOverride ALL
php.ini中 short_open_tag=on
Maximum execution time of 300 seconds exceeded in
解决方法
php.ini中max_execution_time = 30的数值加大
将用户加密密码改为111111(md5)
解决方法
UPDATE dw_user set `password`='96e79218965eb72c92a549dd5a330112',
paypassword='96e79218965eb72c92a549dd5a330112'
mysql最大导入限制
打开php.ini。找到upload_max_filesize 、 memory_limit(服务器的内存) 、 post_max_size这三个参数!
加大,sql文件多大,加多大。
mysqlTable '.\itbttest\dw_credit' is marked as crashed and last (automatic?) repair failed
修复单表:首先停止mysql服务:net stop mysql,然后进入到mysql的bin目录,输入:myisamchk -r d:\mysql\data\discuz\*.MYI(你妈万网既然也挂了,害得......)
修复所以表:mysqlcheck -r sports_results -uuser -ppass
http://www.cnblogs.com/end/archive/2011/07/20/2111875.html
今天0点表示,方法一:
1 |
$today = mktime (0, 0, 0, date ( 'm' , time()), date ( 'd' , time()), date ( 'Y' , time())); |
方法二:
1 |
strtotime ( date ( 'Y-m-d' , time()); |
方法三:
1 |
strtotime ( "today" ); |
PHP5.3安装PEAR, 运行go-pear有的会出现下面错误:
引用
phar does not have a signaturePHP Warning: require_once(phar://go-pear.phar/index.php): failed to open stream: phar error: invalid url or non-existent phar “phar://go-pear.phar/index.php” in …
不使用go-pear.bat,转而使用
解决方法一:
运行:
- php -d phar.require_hash=0 PEAR/go-pear.phar
解决方法二:
从http://pear.php.net/go-pear下载个没有打包的PEAR安装包存储到本地命名为go-pear.php
运行:
- php go-pear.php