本站为"开源聚乐部 www.ossdig.com 旗下网站"
要复制或下载本站资源,请注意以下几点:

1、不要直接复制文章中的源码文件,这样会导致有乱码,点击“下载文章中PHP源代码”保存文件
2、本站内容可自由转载,请注明文章出处为:PHP开源代码网(www.osphp.com.cn)
分页: 1/40 第一页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]

[置顶] 收藏PHP常用函数 不指定

shuguang , 10:13 , 代码片段 , 评论(3) , 引用(0) , 阅读(5498) , Via 本站原创


<?
function GetIP() { //获取IP
    
if ($_SERVER["HTTP_X_FORWARDED_FOR"])
        
$ip $_SERVER["HTTP_X_FORWARDED_FOR"];
    else if (
$_SERVER["HTTP_CLIENT_IP"])

//oSPHP.COM.CN


        
$ip $_SERVER["HTTP_CLIENT_IP"];
    else if (
$_SERVER["REMOTE_ADDR"])
        
$ip $_SERVER["REMOTE_ADDR"];
    else if (
getenv("HTTP_X_FORWARDED_FOR"))

//开源代码OSPHP.COM.Cn


        
$ip getenv("HTTP_X_FORWARDED_FOR");
    else if (
getenv("HTTP_CLIENT_IP"))
        
$ip getenv("HTTP_CLIENT_IP");
    else if (
getenv("REMOTE_ADDR"))
//PHP开源代码

        
$ip getenv("REMOTE_ADDR");
    else
        
$ip "Unknown";
    return 
$ip;
}
?>

Tags: , , ,

PHP,一个嵌套的缩写名称,是英文超级文本预处理语言(PHP:Hypertext Preprocessor)的缩写。PHP 是一种 HTML 内嵌式的语言,PHP与微软的ASP颇有几分相似,都是一种在服务器端执行的嵌入HTML文档的脚本语言,语言的风格有类似于C语言,现在被很多的网站编程人员广泛的运用。PHP 独特的语法混合了 C、Java、Perl 以及 PHP 自创新的语法。它可以比 CGI 或者 Perl 更快速的执行动态网页。用PHP做出的动态页面与其他的编程语言相比,PHP是将程序嵌入到HTML文档中去执行,执行效率比完全生成HTML标记的CGI要高许多;与同样是嵌入HTML文档的脚本语言JavaScript相比,PHP在服务器端执行,充分利用了服务器的性能;PHP执行引擎还会将用户经常访问的PHP程序驻留在内存中,其他用户再一次访问这个程序时就不需要重新编译程序了,只要直接执行内存中的代码就可以了,这也是PHP高效率的体现之一。PHP具有非常强大的功能,所有的CGI或者JavaScript的功能PHP都能实现,而且支持几乎所有流行的数据库以及操作系统。
//OSPHP.COM.Cn开源


开发者: 澳柯网信
运行环境: php+mysql
官方网站: http://www.read8.net/
演示地址: http://demo.read8.net/
下载地址: http://read8.net/download
文章来源:http://www.OSphp.com.cn
程序介绍:
点击在新窗口中浏览此图片

◆全面开源
·为了更好的群策群力,结合爱好者的二次开发实力,让读吧书网的功能发展更切合站长的需要,澳柯网信在本次发布中,做出了这一重大举措,新版全面开源。我们的目标,就是让站长用的更好。这是我们读吧开发团队的心里话。

◆功能全免费
·电子书、在线支付等功能,全免费使用。免费用户不再有任何程序和功能限制。与商业用户唯一的不同,只是享受的读吧官方团队提供的定向服务。

运行环境:php+mysql
官方网站:http://openpne.org.cn/
官方网站:http://www.tejimaya.com/
演示地址:http://sns.openpne.org.cn/
下载地址:http://openpne.org.cn/
文章来源:http://www.OSphp.com.cn
程序介绍:
点击在新窗口中浏览此图片
OpenPNE是株式会社手嶋屋主持开发的开源sns引擎,搭载了丰富的sns机能,在PC和手机上都可以免费使用。作为公司内部和各种社区的交流工具,『OpenPNE』的应用领域非常广泛, 涉及到手机服务、视频服务、企业内部人力资源管理、招聘、交友/婚介、商品搜索购物、行业SNS商务人脉扩展、健康/美容、教育等服务领域。

开发者: Paxer Conseil
运行环境: php+mysql
官方网站: http://www.yetanothercommunitysystem.com/
演示地址: http://www.yetanothercommunitysystem.com/
下载地址: http://www.yetanothercommunitysystem.com/section-340-downloads
文章来源:http://www.OSphp.com.cn
程序介绍:
Yet Another Community System (YACS) is an open source, open-standards content management system based on PHP and MySQL with a focus on code quality and best practices. The YACS product has a straightforward and modular component architecture that covers most common needs of demanding web masters. By design, YACS makes an efficient usage of computing and networking resources, and it allows for several kinds of extensions.
Tags: , , , ,

开发者: Tribal
运行环境: php+mysql
官方网站: http://www.tribiq.com/
演示地址:
下载地址: http://tribiq.com/downloads_distributions.html
文章来源:http://www.OSphp.com.cn
程序介绍:
TRIBiQ CMS is the feature rich multilingual Content Management System from TRIBiQ. Our Open Source PHP/MySQL based CMS, enables fast, structured site development. It has built in multilingual and secure Extranet features. Designers enjoy a fully documented template architecture. For developers, TRIBiQ CMS makes the perfect development platform, with many ways to tailor and extend its capabilities. Choose from GPL or Commercial License, with a range of support options.
Tags: , , , ,

程序介绍:
开发者: lightneasy
运行环境: php+mysql
官方网站: http://www.lightneasy.org
演示地址: http://www.lightneasy.org/galery.php
下载地址: http://www.lightneasy.org/downloads.php
文章来源:http://www.OSphp.com.cn
LightNEasy is a complete Content Management System for managing all your pages. Create, edit and delete your webpages without the need of any HTML knowledge!

开发者: elxis
运行环境: php+mysql
官方网站: http://www.elxis.org/
演示地址: http://www.elxis-demo.com/
下载地址: http://www.elxis.org/
文章来源:http://www.OSphp.com.cn
程序介绍:
点击在新窗口中浏览此图片
Management System (CMS). Elxis gives you the freedom and the power to do what ever you have in mind, without limitations or dependences. With Elxis CMS, enterprises, business owners and individuals, are able to build multilingual websites and easily administer them. Elxis, does not requires special technical knowledge, although, when they are present they are always welcomed! Elxis CMS, is distributed as a free open source application. //PHP开源代码

点击在新窗口中浏览此图片开发者: diferior
运行环境: php+mysql
官方网站: http://diferior.com/
演示地址:
下载地址: http://diferior.com/downloads.html
文章来源:http://www.OSphp.com.cn
程序介绍:
For those of you unfamiliar with the project, by definition Diferior (different + superior, get it?) is a multi-purpose content management system, meaning that it provides all the necessary tools to easily publish and organize your content. What is so special about it, you ask? Well, this is not your ordinary blog CMS. In fact, it is capable of distributing files via BitTorrent, HTTP and FTP protocols, has inbuilt forums, a sophisticated user system and many many more features that each can be tweaked, customized or disabled altogether. You can run torrent trackers, blogs, forums and other community-based sites with it. //开源代码OSPHP.COM.Cn

开发者: cmscout
运行环境: php+mysql
官方网站: http://www.cmscout.co.za
演示地址: http://opensourcecms.com/index.php?option=com_content&task=view&id=2278
下载地址: http://www.cmscout.co.za/index.php?page=downloads&menuid=23
文章来源:http:// www.OSphp.com.cn [/b]
程序介绍:点击在新窗口中浏览此图片
CMScout is a free and open-source CMS (Content management system) for Scouting related groups from around the world. A CMS is a piece of web software that makes it easy for you to install, and manage a website without needing to know any programming languages. CMScout includes most of the features that other major CMSs include, while adding a few of its own unique features. //OsPHP.COM.CN
分页: 1/40 第一页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]