﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-yxhxj2006-随笔分类-PHP</title><link>http://www.blogjava.net/yxhxj2006/category/52366.html</link><description /><language>zh-cn</language><lastBuildDate>Sat, 25 Apr 2015 04:22:35 GMT</lastBuildDate><pubDate>Sat, 25 Apr 2015 04:22:35 GMT</pubDate><ttl>60</ttl><item><title>如何判断PHP空间是否支持curl, gzip等功能</title><link>http://www.blogjava.net/yxhxj2006/archive/2015/04/22/424583.html</link><dc:creator>奋斗成就男人</dc:creator><author>奋斗成就男人</author><pubDate>Tue, 21 Apr 2015 16:04:00 GMT</pubDate><guid>http://www.blogjava.net/yxhxj2006/archive/2015/04/22/424583.html</guid><wfw:comment>http://www.blogjava.net/yxhxj2006/comments/424583.html</wfw:comment><comments>http://www.blogjava.net/yxhxj2006/archive/2015/04/22/424583.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yxhxj2006/comments/commentRss/424583.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yxhxj2006/services/trackbacks/424583.html</trackback:ping><description><![CDATA[<div style="color: #333333; font-size: 16px; line-height: 28px; margin-top: 40px; font-family: 'Microsoft Yahei', 微软雅黑, arial, 宋体, sans-serif; background-color: #ffffff;"><div exp-brief-step"="" style="text-align: justify; margin-top: 5px;"><div style="position: relative;"><div><p style="margin: 20px 0px; padding: 0px;">在使用PHP时，我们需要将自己写好的php文件上传到已申请的php空间。由于租用或申请的php空间是不允许用户进行配置的，那么对于php的一些功能是否开启，如curl, allow_url_fopen, gzip，就需要提前判断，而不是等写完代码后发现不能使用时，那样改动就大了。</p></div></div></div></div><div style="color: #333333; font-size: 16px; line-height: 28px; margin-top: 40px; font-family: 'Microsoft Yahei', 微软雅黑, arial, 宋体, sans-serif; background-color: #ffffff;"><h2><a name="section-2" style="color: rgb(45, 100, 179); width: 20px; height: 20px; text-indent: 20px; background-image: url(http://www.blogjava.net/CuteSoft_Client/CuteEditor/Load.ashx?type=image&amp;file=anchor.gif); background-repeat: no-repeat no-repeat;"></a>方法/步骤</h2><div style="text-align: justify; margin-top: 5px;"><ol style="margin: 0px; padding: 0px; list-style: none; clear: both;"><li list-item-1"="" style="margin: 20px 0px 0px 17px; padding: 0px 0px 0px 35px; display: block; position: relative; min-height: 31px; border-left-width: 2px; border-left-style: dotted; border-left-color: #e4e4e4;"><div style="width: 32px; height: 32px; position: absolute; left: -18px; top: 0px; color: #eeffee; text-align: center; line-height: 32px; background-image: url(http://img.baidu.com/img/iknow/exp/global/step_ol_bg.png); visibility: hidden; background-repeat: no-repeat no-repeat;"></div><div><p style="margin: 0px; padding: 0px;">其实判断功能是否开启，很简单，我们只需要写一个php文件上传之php空间服务器中。v.php的源代码如图。</p></div><div><div clearfix"="" style="zoom: 1; position: relative; padding-top: 10px; padding-bottom: 10px;"><a href="http://jingyan.baidu.com/album/574c5219cf92e86c8c9dc144.html?picindex=1" target="_self" style="text-decoration: none; color: #2d64b3; position: relative; display: block; float: left;"><img alt="如何判断PHP空间是否支持curl, gzip等功能" src="http://c.hiphotos.baidu.com/exp/w=500/sign=6db0ec9bdb33c895a67e987be1127397/4bed2e738bd4b31ce5950fb785d6277f9e2ff815.jpg" style="border: 0px; display: block;" /></a></div></div></li><li list-item-2"="" style="margin: 1px 0px 0px 17px; padding: 45px 0px 0px 35px; display: block; position: relative; min-height: 31px; border-left-width: 2px; border-left-style: dotted; border-left-color: #e4e4e4;"><div style="width: 32px; height: 32px; position: absolute; left: -18px; top: 43px; color: #eeffee; text-align: center; line-height: 32px; background-image: url(http://img.baidu.com/img/iknow/exp/global/step_ol_bg.png); visibility: hidden; background-repeat: no-repeat no-repeat;"></div><div><p style="margin: 0px; padding: 0px;">其含义很简单，就是传入一个函数的名字，服务器判断是否存在这个函数，如果存在则表示支持该函数对应的功能，输出&#8220;支持&#8221;，反之输出&#8220;不支持&#8221;。将文件上传至php空间中。</p></div><div><div clearfix"="" style="zoom: 1; position: relative; padding-top: 10px; padding-bottom: 10px;"><a href="http://jingyan.baidu.com/album/574c5219cf92e86c8c9dc144.html?picindex=2" target="_self" style="text-decoration: none; color: #2d64b3; position: relative; display: block; float: left;"><img alt="如何判断PHP空间是否支持curl, gzip等功能" src="http://e.hiphotos.baidu.com/exp/w=500/sign=cca6fd7ff9f2b211e42e854efa816511/e61190ef76c6a7ef1285332afffaaf51f3de661f.jpg" style="border: 0px; display: block;" /></a></div></div></li><li list-item-3"="" style="margin: 1px 0px 0px 17px; padding: 45px 0px 0px 35px; display: block; position: relative; min-height: 31px; border-left-width: 2px; border-left-style: dotted; border-left-color: #e4e4e4;"><div style="width: 32px; height: 32px; position: absolute; left: -18px; top: 43px; color: #eeffee; text-align: center; line-height: 32px; background-image: url(http://img.baidu.com/img/iknow/exp/global/step_ol_bg.png); visibility: hidden; background-repeat: no-repeat no-repeat;"></div><div><p style="margin: 0px; padding: 0px;">再通过访问空间，地址+v.php?f=+要测试的功能所包括的函数，比如curl功能可以是v.php?f=curl_init，allow_url_fopen功能可以用v.php?f=fopen来测试。</p></div><div><div clearfix"="" style="zoom: 1; position: relative; padding-top: 10px; padding-bottom: 10px;"><a href="http://jingyan.baidu.com/album/574c5219cf92e86c8c9dc144.html?picindex=3" target="_self" style="text-decoration: none; color: #2d64b3; position: relative; display: block; float: left;"><img alt="如何判断PHP空间是否支持curl, gzip等功能" src="http://e.hiphotos.baidu.com/exp/w=500/sign=0d78242f612762d0803ea4bf90ed0849/242dd42a2834349ba7aff589cbea15ce36d3be15.jpg" style="border: 0px; display: block;" /><span style="background-image: url(http://img.baidu.com/img/iknow/exp/article/show-step.png); width: 120px; height: 40px; position: absolute; top: 337px; left: 250px; margin-top: -20px; margin-left: -60px; line-height: 40px; font-family: 微软雅黑; color: #ffffff; text-indent: 22px; display: block; text-align: left; cursor: pointer; zoom: 1; background-repeat: no-repeat no-repeat;">步骤阅读</span></a></div><div clearfix"="" style="zoom: 1; position: relative; padding-top: 10px; padding-bottom: 10px;"><a href="http://jingyan.baidu.com/album/574c5219cf92e86c8c9dc144.html?picindex=4" target="_self" style="text-decoration: none; color: #2d64b3; position: relative; display: block; float: left;"><img alt="如何判断PHP空间是否支持curl, gzip等功能" src="http://b.hiphotos.baidu.com/exp/w=500/sign=b01c1c8bd2a20cf44690fedf46084b0c/3b292df5e0fe992555aff25c36a85edf8db1711f.jpg" style="border: 0px; display: block;" /></a></div></div></li><li list-item-3"="" style="margin: 1px 0px 0px 17px; padding: 45px 0px 0px 35px; display: block; position: relative; min-height: 31px; border-left-width: 2px; border-left-style: dotted; border-left-color: #e4e4e4;"><div></div></li></ol></div></div><img src ="http://www.blogjava.net/yxhxj2006/aggbug/424583.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yxhxj2006/" target="_blank">奋斗成就男人</a> 2015-04-22 00:04 <a href="http://www.blogjava.net/yxhxj2006/archive/2015/04/22/424583.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>zencart使用smtp发邮件设置</title><link>http://www.blogjava.net/yxhxj2006/archive/2015/04/01/424029.html</link><dc:creator>奋斗成就男人</dc:creator><author>奋斗成就男人</author><pubDate>Wed, 01 Apr 2015 06:47:00 GMT</pubDate><guid>http://www.blogjava.net/yxhxj2006/archive/2015/04/01/424029.html</guid><wfw:comment>http://www.blogjava.net/yxhxj2006/comments/424029.html</wfw:comment><comments>http://www.blogjava.net/yxhxj2006/archive/2015/04/01/424029.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yxhxj2006/comments/commentRss/424029.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yxhxj2006/services/trackbacks/424029.html</trackback:ping><description><![CDATA[<p align="left">zencart如何设置smtp发邮件，zencart不能发email，发email失败怎么办？zen  cart要使用gmail发送邮件，首先要把你的gmail账户开通pop/smtp，  然后再zencart后台设置邮件发送方式，邮箱帐号，密码。&nbsp;<br />具体操作方法如：&nbsp;<br />进入后台--商店设置--电子邮件，首先选择&#8221;电子邮件发送方式&#8220;为smtpauth。然后输入你的gamil邮箱地址。&nbsp;<br />最后设置</p> <p align="left"></p> <p align="left">1）首先后台电子邮件  发送方式是：smtpauth<br />2）smtp帐号邮箱：xxx@gmail.com<br />3）smtp帐号密码：xxxxxxxx<br />4）smtp主机：smtp.gmail.com<br />5）smtp服务器端口：465或者587<br /><br /><span style="color: red;"><strong>注意：国内的邮箱最好使用163邮箱：服务器：smtp.163.com &nbsp;端口：465/25，其他的邮箱不能发，具体原因暂时不清楚。</strong></span><br /><br /></p> <p align="left">如果这样设置是正确的。但是有些主机还是会出现Email Error: SMTP Error: Could not connect  to SMTP host.这样的情况 。</p> <p align="left">这个需要服务器支持。检查下后台－工具－服务器信息里是否有OpenSSL。因为google  传输是ssl://smtp.gmail.com协议。</p> <p align="left">所以需要服务器支持Openssl这个尤为重要。</p> <p align="left">补充重要情况：电子邮件必须从现有域名发送&nbsp; 设置成 no</p> <p align="left"><br />zencart-email-smtp.png<br /><img border="0" alt="zencart-email-smtp.png" src="http://www.lvtao.net/content/uploadfile/201305/0d1e0e4927adb63d45f89c4774840f6120130503094652.png" /></p> <p align="left">&nbsp;</p> <p align="left">如果还是发不了email，可参考下面的技术细节：</p> <p align="left">在服务器上 telnet smtp.gmail.com 465 确定能连接</p> <p align="left">yum -y install openssl 安装ssl，重启apache在试一试</p> <p align="left">&nbsp;</p> <p align="left">&nbsp;</p> <p align="left">&nbsp;开通gmail帐号的pop/smtp功能：<br /><img border="0" alt="gmail-pop-smtp.png" src="http://www.lvtao.net/content/uploadfile/201305/9d33a470d8402d780aac67d14abb53d320130503094652.png" />  </p> <p align="left">&nbsp;</p> <p align="left"></p> <p align="left">Zen Cart后台邮件发送不成功的解决办法,错误提示&#8220;电子邮件错误: The following From address  failed:  &#8221;<br />几个需要注意的设置项：<br />1、服务器应启用SMTPAUTH电子邮件发送方式；<br />2、检查SMTP帐号、邮箱、密码、邮件服务器域名和端口是否设置正确。<br />3、发件人邮件地址要用你的SMTP邮箱帐号，并且电子邮件必须从现有域名发送设为Yes.</p> <p align="left">* 如果上述都没错，请多换其他SMTP账户/邮箱测试。推荐gmail</p> <p align="left">收费调试服务</p> <p align="left">我们希望您能自己搞定这些问题，但是如果你多方测试都无法找到发邮件不成功的解决办法，我们也提供收费调试服务。诊断调试要花费技术很多时间，调试一次需要的时间可能很长，估计2-5小时。每次调试收费200元。保证帮你调试到前台  联系我们 contact us 页面能发送邮件</p><img src ="http://www.blogjava.net/yxhxj2006/aggbug/424029.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yxhxj2006/" target="_blank">奋斗成就男人</a> 2015-04-01 14:47 <a href="http://www.blogjava.net/yxhxj2006/archive/2015/04/01/424029.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>那些强悍的PHP一句话后门[转] </title><link>http://www.blogjava.net/yxhxj2006/archive/2015/02/25/423029.html</link><dc:creator>奋斗成就男人</dc:creator><author>奋斗成就男人</author><pubDate>Wed, 25 Feb 2015 06:18:00 GMT</pubDate><guid>http://www.blogjava.net/yxhxj2006/archive/2015/02/25/423029.html</guid><wfw:comment>http://www.blogjava.net/yxhxj2006/comments/423029.html</wfw:comment><comments>http://www.blogjava.net/yxhxj2006/archive/2015/02/25/423029.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yxhxj2006/comments/commentRss/423029.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yxhxj2006/services/trackbacks/423029.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 我们以一个学习的心态来对待这些PHP后门程序，很多PHP后门代码让我们看到程序员们是多么的用心良苦。强悍的PHP一句话后门这类后门让网站、服务器管理员很是头疼，经常要换着方法进行各种检测，而很多新出现的编写技术，用普通的检测方法是没法发现并处理的。今天我们细数一些有意思的PHP一句话木马。利用404页面隐藏PHP小马：01&lt;!DOCTYPE HTML PUBLIC&nbsp;&nbsp;"-...&nbsp;&nbsp;<a href='http://www.blogjava.net/yxhxj2006/archive/2015/02/25/423029.html'>阅读全文</a><img src ="http://www.blogjava.net/yxhxj2006/aggbug/423029.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yxhxj2006/" target="_blank">奋斗成就男人</a> 2015-02-25 14:18 <a href="http://www.blogjava.net/yxhxj2006/archive/2015/02/25/423029.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>国外优秀开源PHP建站程序一览</title><link>http://www.blogjava.net/yxhxj2006/archive/2015/01/16/422264.html</link><dc:creator>奋斗成就男人</dc:creator><author>奋斗成就男人</author><pubDate>Fri, 16 Jan 2015 15:07:00 GMT</pubDate><guid>http://www.blogjava.net/yxhxj2006/archive/2015/01/16/422264.html</guid><wfw:comment>http://www.blogjava.net/yxhxj2006/comments/422264.html</wfw:comment><comments>http://www.blogjava.net/yxhxj2006/archive/2015/01/16/422264.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yxhxj2006/comments/commentRss/422264.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yxhxj2006/services/trackbacks/422264.html</trackback:ping><description><![CDATA[<p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">大量的PHP开源（开放源代码/Open Source）应用改变了这个世界，改变了互联网，以下我们总结从数据库到购物、博客等众多类型的开源PHP软件，供网站开发者们参考。</p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　<strong>博客：</strong><a target="_blank" href="http://wordpress.org/" style="color: #670e1a;"><strong>WordPress</strong></a></p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　WordPress是使用PHP开发的著名博客平台，免费开源，功能强大，不仅仅用于博客搭建，还可以广泛应用于各类网络信息发布平台。</p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　<strong>论坛：</strong><a target="_blank" href="http://www.phpbb.com/" style="color: #670e1a;"><strong>phpBB</strong></a></p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　phpBB是一种广泛流行的开源论坛软件，具有易于使用的管理面板和友好的用户安装界面，可以轻松地在数分钟内建立起一个论坛，功能上具有很高的可配置性，能够完全定制出相当个性化的论坛。</p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　<strong>CMS：</strong><a target="_blank" href="http://drupal.org/" style="color: #670e1a;"><strong>Drupal</strong></a></p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　Drupal是一个开源的内容管理系统(CMS)平台，拥有强大并可自由配置的功能，能支持从个人博客到大型社区驱动的网站等各种不同应用的网站项目。</p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　<strong>Wiki：</strong><a target="_blank" href="http://www.mediawiki.org/" style="color: #670e1a;"><strong>MediaWiki</strong></a></p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　MediaWiki是PHP语言写成开源Wiki引擎，全世界最大的Wiki项目维基百科就是使用MediaWiki引擎。</p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　<strong>Digg：</strong><a target="_blank" href="http://www.pligg.com/" style="color: #670e1a;"><strong>Pligg</strong></a></p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　Pligg是一套灵活的类似Digg的Web2.0 CMS系统，系统使用PHP开发，模仿了国外流行的DIGG系统。</p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　<strong>图像：</strong><a target="_blank" href="http://gallery.menalto.com/" style="color: #670e1a;"><strong>Gallery</strong></a></p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　Gallery 是一个非常有名的免费开源图库相册软件，基于 PHP 和 MySQL， PostgreSQL 等数据库。功能非常强大，有丰富的扩展可以下载，安装很简单，有很多插件可用。</p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　<strong>RSS：</strong><a target="_blank" href="http://gregarius.net/" style="color: #670e1a;"><strong>Gregarius</strong></a></p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　Gregarius是一个RSS聚合程序，免费开源，具备不错的用户体验，易于操作和管理。可以把其当成RSS阅读器使用。</p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　<strong>电子商务：</strong><a target="_blank" href="http://www.oscommerce.com/" style="color: #670e1a;"><strong>osCommerce</strong></a></p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　osCommerce是一套由自由软件开发社团开发并维护的在线商店的解决方案，免费开源，并可以应用到任何的商业环境中，可以在短时间内生成一个功能强大的电子商务网站。</p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　<strong>广告：</strong><a target="_blank" href="http://www.openx.org/" style="color: #670e1a;"><strong>OpenX</strong></a></p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　OpenX（原名phpAdsNew）是一个用PHP开发的广告管理与跟踪系统，适合各类网站使用，能够管理每个广告主拥有的多种任何尺寸横幅广告，按天查看，详细和概要统计并通过电子邮件发送报表给广告主。</p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　<strong>微博客：</strong><a target="_blank" href="http://laconi.ca/trac/" style="color: #670e1a;"><strong>Laconica</strong></a></p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　Laconica是一个开源的微型博客系统，也是一个Twitter克隆，可以实现Microblog的常用功能，国外不少微博客系统都是通过这个开源系统架设的。</p><p style="margin: 10px 0px 15px; padding: 0px; word-break: break-all; font-family: Simsun; line-height: 23px; background-color: #f6f4e9;">　　英文原文：<a target="_blank" href="http://www.moon-blog.com/2009/07/top-ten-open-source-php-apps.html" style="color: #670e1a;">Top Ten Open Source PHP Apps</a></p><img src ="http://www.blogjava.net/yxhxj2006/aggbug/422264.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yxhxj2006/" target="_blank">奋斗成就男人</a> 2015-01-16 23:07 <a href="http://www.blogjava.net/yxhxj2006/archive/2015/01/16/422264.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>