首页 > 资讯列表 >  本页面生成CTRL专题报道,CTRL滚动新闻,CTRL业界评论等相关报道!
  • php的file_get_contents与curl函数详解

    php的file_get_contents与curl函数详解

    本文为大家讲解的是php的file_get_contents与curl函数详解,感兴趣的同学参考下。 有些主机服务商把php的allow_url_fopen选项是关闭了,就是没法直接使用file_get_contents来获取远程web页面的内容...

    PHP 2014-12-21 03:12:07
  • PHP substr,mb_substr以及mb_strcut的区别和用法示例

    PHP substr,mb_substr以及mb_strcut的区别和用法示例

    本文为大家整理的是PHP substr,mb_substr以及mb_strcut的区别和用法示例,感兴趣的同学参考下。 PHP substr()函数可以 分割文字,但要分割的文字如果包括中文字符往往会遇到问题,这时可以用mb_substr()/mb_strcut这个函数,mb_substr() /mb_strcut的用法与substr()相似,只是在mb_substr()/mb_strcut最后要加入多一个参数,以设定字符串的编码,但是 一般的服务器都没打开php_mbstring.dll,需要在php.ini在把php_mbstring.dll打开...

    PHP 2014-12-21 03:09:03
  • php curl模拟post提交数据示例代码

    php curl模拟post提交数据示例代码

    本文是一个php curl模拟post提交数据示例代码,感兴趣的同学参考下. <? header("Content-type: text/html; charset=utf8"); /*  * 提交请求 * @param $header array 需要配置的域名等header设置 array("Host: devzc...

    PHP 2014-12-21 02:36:03
  • LotusPhp笔记之:基于ObjectUtil组件的使用分析

    LotusPhp笔记之:基于ObjectUtil组件的使用分析

    本文为大家讲解的是LotusPhp笔记之:基于ObjectUtil组件的使用分析,感兴趣的同学参考下。 学习要先易后难,好吧,我刚开始学习LotusPhp的时候,就是从最容易的Logger和ObjectUtil开始的,这2个组件基本没有什么难度...

    PHP 2014-12-20 15:09:04
  • PHP register_shutdown_function函数使用说明

    PHP register_shutdown_function函数使用说明

    本文为大家讲解的是PHP register_shutdown_function函数使用说明,感兴趣的同学参考下。 脚本时常死掉,而且并不总是那么好看. 我们可不想给用户显示一个致命错误,又或者一个空白页(在display_errors设为off的情况下) . PHP中有一个叫做  register_shutdown_function 的函数,可以让我们设置一个当执行关闭时可以被调用的另一个函数.也就是说当我们的脚本执行完成或意外死掉导致PHP执行即将关闭时,我们的这个函数将会 被调用.所以,我们可以使用在脚本开始处设置一个变量为false,然后在脚本末尾将之设置为true的方法,让PHP关闭回调函数检查脚本完成与否. 如果我们的变量仍旧是false,我们就知道脚本的最后一行没有执行,因此它肯定在程序执行到某处死掉了.我准备了一个非常基本的例子,可以演示在一个致 命错误需要显示时,你应该怎么给用户一些合适的反馈.你可以通过关闭致命错误的显示(译注:可以设置display_errors和 error_reporting),让例子看起来好看些. <?php...

    PHP 2014-12-20 14:42:04
  • PHP Warning:  Cannot load module ‘exif’ because required module ‘mbstring’ is not loaded in Unknown on line 0解决方法

    PHP Warning: Cannot load module ‘exif’ because required module ‘mbstring’ is not loaded in Unknown on line 0解决方法

    本文为大家讲解的是php错误PHP Warning:  Cannot load module ‘exif’ because required module ‘mbstring’ is not loaded in Unknown on line 0解决方法,感兴趣的同学参考下。 错误描述 PHP Warning:  Cannot load module ‘exif’ because required module ‘mbstring’ is not loaded in Unknown on line 0 原因分析 这种情况的意思是说exif必须要在 mbstring之后才可以,因为有依赖关系,exif是和读取图片类型信息相关的一个php的库函数,应该是再php5之后才开始依赖mbstring的...

    PHP 2014-12-20 14:21:08
  • mac下phpize报错grep: /usr/include/php/main/php.h: No such file or directory解决方法

    mac下phpize报错grep: /usr/include/php/main/php.h: No such file or directory解决方法

    本文为大家讲解的是mac下phpize报错grep: /usr/include/php/main/php.h: No such file or directory解决方法,感兴趣的同学参考下。 问题描述 Mac系统升级到10.9(mavericks)时安装php扩展,执行 phpize 报错: grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zend_modules.h: No such file or directory grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory Configuring for: PHP&n...

    PHP 2014-12-20 13:18:05
  • linux下为php添加curl扩展的方法

    linux下为php添加curl扩展的方法

    本文为大家讲解的是如何在linux下为php添加curl扩展的方法,感兴趣的同学参考下。 一般php源码的扩展库里已经带了curl的扩展,所以没有必要下载,直接将编译扩展即可 步骤如下: 1. 进到对应扩展目录 # cd /usr/local/src/php-5.2.12/ext/curl 2. 调用phpize程序生成编译配置文件 # /usr/local/php5/bin/phpize 3. 调用configure生成Makefile文件,然后调用make编译,make install安装 # ./configure -with-curl=/usr/local/curl -with-php-config=/usr/local/php5/bin/php-config# make# make install 4. 修改php配置文件 ;修改扩展库目录extension_dir = "/usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/";添加...

    PHP 2014-12-20 13:00:18
  • php错误:Warning: session_destroy() : Trying to destroy uninitialized sessionq错误解决方法

    php错误:Warning: session_destroy() : Trying to destroy uninitialized sessionq错误解决方法

    本文为大家讲解的是php错误:Warning: session_destroy() : Trying to destroy uninitialized sessionq错误解决方法,感兴趣的同学参考下。 问题说明: 在使用session_destroy(),进行Session变量的注销时,出现了Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in的错误! 经查证,在进行使用session_destroy()函数必须先调用session_start()函数...

    PHP 2014-12-20 12:12:03
  • PHP函数addslashes和mysql_real_escape_string的区别

    PHP函数addslashes和mysql_real_escape_string的区别

    本文为大家讲解的是PHP函数addslashes和mysql_real_escape_string的区别分析,感兴趣的同学参考下. 首先:不要使用mysql_escape_string,它已被弃用,请使用mysql_real_escape_string代替它。 mysql_real_escape_string和addslashes的区别在于: 区别一: addslashes不知道任何有关MySQL连接的字符集...

    PHP 2014-12-20 11:51:04
  • php错误:strtotime(): It is not safe to rely on the system's timezone settings...问题解决方法

    php错误:strtotime(): It is not safe to rely on the system's timezone settings...问题解决方法

    本文为大家讲解的是php错误:strtotime(): It is not safe to rely on the system's timezone settings...问题解决方法,感兴趣的同学参考下。 在某些参考资料中是说这两个方法任选其一就可,但经我测试,必须两个方法同时使用,才不会再出现错误提示 PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'As...

    PHP 2014-12-20 11:48:07
  • Win8系统如何在桌面开启Metro APPs

    Win8系统如何在桌面开启Metro APPs

           尝试过Win8系统的用户都知道Metro界面,里面的应用需要前往应用商店下载,并且只显示到Metro界面。肯定有用户想要在传统桌面启动Metro APPs,而不需要特地点到Metro界面...

    系统程序 2014-12-20 07:42:07

站长搜索

http://www.adminso.com

Copyright @ 2007~2024 All Rights Reserved.

Powered By 站长搜索

打开手机扫描上面的二维码打开手机版


使用手机软件扫描微信二维码

关注我们可获取更多热点资讯

站长搜索目录系统技术支持