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

Parse Error: syntax error, unexpected $end 错误

添加日期:2013-12-02 16:21:04 发布:smiling 
也许是不熟悉的php的一些特性吧,不过写多了,也就慢慢适应将就了,这里就整理一个代码编写调试问题,错误如下:Parse error: syntax err ...

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 ...

php和mysql中uft-8中文编码乱码的几种解决办法

添加日期:2013-11-30 15:45:40 发布:smiling 
对于乱码这个问题php开发者几乎都会有碰到过,我们下面主要是介绍了php文件乱码和页面乱码以及php mysql数据库连接时乱码解决方法。...

解决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。...

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 提示信息,经过查核是因为此产品未考虑到用户内存引起的,下面是解决的方法:...

php substr()函数实现过滤尾数为4号码

添加日期:2013-11-30 14:53:54 发布:smiling 
今天一个客户要批量生成400电话,起始位置是10000号,开始我直接生成就出现了如10004的号码但是商人都不喜欢这个数字,所在说过滤尾数是4的数字,我想一下利用substr($str,-1)==4就可以实现了...

XSLTProcessor 中 registerPHPFunctions 后无法调用 php 函数

添加日期:2013-11-30 14:01:26 发布:smiling 
XSLT 是一个非常方便的转换 XML 的工具,PHP 里面是通过 XSLTProcessor 来实现;XSLT 中内置了许多有用的函数,同时,只需要调用 XSLTProcessor 实例的 registerPHPFunctions 方法 ...

CentOS系统下Apache环境安装GBK编码程序网页乱码问题

添加日期:2013-11-30 13:49:04 发布:smiling 
1,打开Apache配置文件httpd conf,如默认情况下为 etc httpd conf httpd conf vi etc httpd conf httpd conf...