当前位置:首页 > 搜索和 i 相关的文章

php中require_once()函数相对目录要谨慎

添加日期:2013-12-02 20:25:32 发布:smiling 
谈到了使用require_once 仍然告诉说类被重定义的问题,于是想起了前几天自己遇到的现象,在这里和大家说一下,今天才想起调查具体原因,如果大家不说的话就快忘了,看来自己凡事果然不经大脑...

php中session超时严格控制实例

添加日期:2013-12-02 16:43:11 发布:smiling 
php中session默认是30分钟超时,但是有的时间压根就没到30分钟就自动超时了,这对很多操作带来不便,下面我们来看看解决30分钟超时的办法。...

php header中Content-disposition用法详细

添加日期:2013-12-02 16:25:39 发布:smiling 
Content-disposition 是 MIME 协议的扩展,MIME 协议指示 MIME 用户代理如何显示附加的文件。Content-disposition其实可以控制用户请 ...

PHP中session共享和登录验证的实现方法

添加日期:2013-12-02 16:15:23 发布:smiling 
我们先来讲述一下利用session来登录,登录页面05 php的代码如下:<?phpsession_start(); 初始化sessionif(isset($_SESSION[& 39;shili& 39; ...

Notice:undefined index ..错误提示解决方法

添加日期:2013-12-02 16:11:02 发布:smiling 
一,这个因为是变量未定义我们只要找到相关的位置加上如下代码:上面我们只举了get的用法还有post也一样,只要把上面的get改成post 还有一种程序的全局定义方法:...

Warning: mysql_fetch_assoc() expects parameter 1 to be resource

添加日期:2013-12-02 16:01:50 发布:smiling 
今天学习php的时候遇到了这个错误:Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:xampphtdocsmyblogindex php on line 15 ...

解决Magento报错:Fatal error: Call to undefined method

添加日期:2013-11-30 15:41:41 发布:smiling 
Magento在产品导入的时候出现错误: "Fatal error : Call to undefined method Mage_Adminhtml_Block_Abstract::getexceptions() in appcodecoreMageAdminhtmlBlockSystemConvertProfileRun php on line 167 "...

没有找到php_mbstring.dll,文件无法启动

添加日期:2013-11-30 15:32:02 发布:smiling 
解决方法:在php ini文件中将 extension=php_mbstring dll 移动到extension=php_exif dll之前即可,原因就是exif要调用mbstring, 所以mbstring必须在前面 ...

php Notice : Use of undefined constant解决办法

添加日期:2013-11-30 15:20:34 发布:smiling 
错误提示:php Notice : Use of undefined constant,分析:这些是 PHP 的提示而非报错,PHP 本身不需要事先声明变量即可直接使用,但是对未声明变量会有提示。一般作为正式的网站会把提示关掉的 ...

echo、print和print_r函数区别

添加日期:2013-11-30 15:14:25 发布:smiling 
PHP中echo和print的功能基本相同(输出),但是两者之间还是有细微差别的,echo输出后没有返回值,但print有返回值,当其执行失败时返回flase。...

php include与require用法介绍

添加日期:2013-11-30 15:08:37 发布:smiling 
include()与require()的功能也基本相同(包含),但在用法上也有一些不同,include()是有条件包含函数,而require()则是无条件包含函数。...

Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080 bytes) i

添加日期:2013-11-30 15:04:26 发布:smiling 
今天在用一个php产品时出现了Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080 bytes) in 提示信息,经过查核是因为此产品未考虑到用户内存引起的,下面是解决的方法:...