PHP7 windows增加自定义扩展和编译PHP源代码需要用到的材料推荐教程:php7教程①确定需要编译的版本,查看PHPINFO,确定PHP版本,VC版本和PHP位数。根据PHP VC版本下载对应的Visual Studio或者编译器,图下博主的版本是VC15 需要下载Visual Studio 2017版本②准备PHP源代码 根据自己需要扩展的版本下载对应的WINDOWS源码下载地址(https://windows.php.net/download/)③下载PHP-sdk包(点击下载)(https://github.com/microsoft/php-sdk-...
在http.conf中加入php的设置#php5_startphpIniDir "d:/Program Files/php"LoadModule php5_module "d:/Program Files/php/php5apache2_2.dll"#php5_end再添加AddType application/x-httpd-php .phpAddType application/x-httpd-php-source .phps问题解决原文:http://www.cnblogs.com/XACOOL/p/5641309.html
<?php // 源文件所在目录 $dir = "./tp/Home/Lib/Action/" ; if ( $handle = opendir ( $dir )) { while ( false !== ( $file = readdir ( $handle ))) { if ( $file != "." && $file != ".." ) { echo $file . ‘<br />‘ ; // 去掉文件中的所有注释和空格 $newFile = php_strip_whitespace($dir . $file); // 把去掉注释和空格的文件重新写入到NewA...
为什么thinkphp每个页面都要在“查看源代码”模式下刷新才能正常看到代码更新。已经清空了缓存了啊 以前没这个问题啊为什么thinkphp每个页面都要在“查看源代码”模式下刷新才能正常看到代码更新。已经清空了缓存了啊以前没这个问题啊------解决思路----------------------这应该是浏览器设置的问题吧
为什么thinkphp每个页面都要在“查看源代码”模式下刷新才能正常看到代码更新。已经清空了缓存了啊 以前没这个问题啊 回复讨论(解决方案) 这应该是浏览器设置的问题吧 为什么thinkphp每个页面都要在“查看源代码”模式下刷新才能正常看到代码更新。已经清空了缓存了啊 以前没这个问题啊 这个应该是浏览器跟电脑设置的有关的,我也遇到过,具体是什么设置不详 浏览器不是可以直接右键:重新加载框架吗 ...
文件夹数据库处理逻辑
public class DbFolder
{
JSONObject root;
public DbFolder()
{
this.root = new JSONObject();
this.root.put("f_id", "");
this.root.put("f_nameLoc", "根目录");
this.root.put("f_pid", "");
this.root.put("f_pidRoot", "");
}
/**
* 将JSONArray转换成map
* @param folders
* @return
*/
public Map<S...
高亮度显示php源代码<?phpfunction HeighPHPcode($Heightstring){ do{ $z=0; if(preg_match('/<phpcode>(.*?)</phpcode>/s',$Heightstring,$reg)) { $z=1; $code=''; ob_start(); highlight_string($reg[1]); $code = ob_get_contents(); ob_end_clean(); $reg[1] = addslashes($reg[1]); $Heightstring=preg_replace("/<phpcode>(.*?)</phpcode>/s","$code",$Heightstring,1); ...
显示主题内容页面。 <HTML> <HEAD> <TITLE>狐网论坛</TITLE> <STYLE type=text/css> P {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt} DIV {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt} </STYLE> <LINK href="js/cpcw.css" rel=stylesheet /LINK> <?php include "linkfox.inc.php"; include "info.inc.php"; ?> </HEAD> <body bgcolor="#FFFFFF" text="#000000" id=all> <? $query="select * from foxbb...
POST.PHP发布主题的页面,发布的信息提交到OKEY.PHP中去处理。 <html> <head> <title>论坛发帖</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <STYLE type=text/css> P {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt} DIV {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt} </STYLE> <? include "linkfox.inc.php"; include "info.inc.php"; ?> <LINK href="js/cpcw.css" re...
主界面,也就是显示主题列表的这页。 //foxbbs.php 功能:显示论坛的主题 <HTML> <HEAD> <TITLE>狐网论坛</TITLE> <STYLE type=text/css> P {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt} DIV {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt} </STYLE> <LINK href="js/lfox.css" rel=stylesheet /LINK> <?php include "linkfox.inc.php"; include "info.inc.php"; ?> </HEAD> <body bgcolor="#FFFFFF"> <?...
其实写这几篇代码的时间不过近三天而已,事前即没有经过详细思考和计划(可以说一点计划都没有)那天想起做个论坛试试,于是就做起来了,而我也是才接触了将近一个月时间的PHP,以前也没真正写过程序之类的东东,在写这段代码的两天半时间里,有好几次遇到困难,都想放弃,但是我还是写出来了,而且没想到居然能用,所以中间可能有很多隐患也说不清,虽然说是可以用了。 再过两天,我就要去上班,也没时间再仔细地从头到尾检查这些...
repal.php回复用的页面,因为回复可以不必要是用户,所以没加用户身份校验 <html> <head> <title>回复论题:<? echo $zt;?></title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <STYLE type=text/css> P {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt} DIV {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt} </STYLE> <LINK href="js/cpcw.css" rel=stylesheet /LINK> <?php incl...
okey.php主要处理用户登录和发布的信息处理 <? if ($username) //是否有用户信息 $useinfo=$username."|".$userpass; setcookie("FlyFoxNet",$useinfo,time()+3600); if ($d==q) setcookie("FlyFoxNet"); //如果是退出的话,把COOKIE置为空 ?> <HTML><HEAD><TITLE>发表文章</TITLE> <LINK href="js/cpcw.css" rel=stylesheet /LINK> <? include "linkfox.inc.php"; include "info.inc.php"; function...
reguse.php用户注册与登录页面 <? if ($action==dl&&$uname) { $uinfo=$uname."|".$upass; setcookie("FlyFoxNet",$uinfo,time()+3600); } ?> <html> <head> <title>用户注册</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <STYLE type=text/css> P {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt} DIV {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt} </STYLE> <LINK hre...
info.inc.php主要做些判断和信息处理 <?php function update($reginfo) { switch ($reginfo[4]) { case ($reginfo[4]==1): $reginfo[4]="男"; break; default: $reginfo[4]="女"; break; } switch ($reginfo[11]) { case ($reginfo[11]==1): $reginfo[11]="会员"; break; case ($reginfo[11]==2): $reginfo[11]="版主"; ...