- 浏览: 703762 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (389)
- flex (150)
- java (55)
- flex_sharedObject (4)
- iphone/android (7)
- red5 (4)
- blazeds (19)
- ajax (3)
- flex&java (9)
- 聊天室 (2)
- flex的问题 (1)
- game (8)
- flex_xml (1)
- flex组件学习 (2)
- JGroups (1)
- 中转站 (2)
- ruby (7)
- flex_js (5)
- C/C++ (14)
- perl (2)
- db (13)
- air (10)
- hibernate (8)
- flash_flex_as_3d (2)
- struts (4)
- dwr (8)
- freemarker (2)
- AS (22)
- 工具 (6)
- js_jquery_ext_yui (4)
- .net (1)
- C# (1)
- 前端 (1)
最新评论
-
136900923:
您好,您的代码我不是很懂,我想跟您交流一下,我的qq邮箱:13 ...
hibernate做无限极菜单树如此简单 -
fykyx521:
两个同一个功能
flex_flush_Socket 安全沙箱解决 -
ustb:
你上下两个代码类之间没关系
flex_flush_Socket 安全沙箱解决 -
u010656335:
...
flex发送QQ表情 -
u010656335:
flex发送QQ表情
tomcat安装目录下conf/web.xml把下边这段代码注释去掉 <servlet> <servlet-name>cgi</servlet-name> <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>cgiPathPrefix</param-name> <param-value>WEB-INF/cgi</param-value> </init-param> <init-param> <param-name>passShellEnvironment</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>executable</param-name> <param-value>E:\Program Files\PHP\php-cgi.exe</param-value> <!--php目录--> </init-param> <load-on-startup>5</load-on-startup> </servlet> <servlet-mapping> <servlet-name>cgi</servlet-name> <url-pattern>/cgi-bin/*</url-pattern> </servlet-mapping>
服务器启动 会提示安全java.lang.安全Exception 说不能加载 org.apache.catalina.servlets.CGIServlet 到conf 下Context.xml改为下边 <Context privileged="true"> <!-- Default set of monitored resources --> <WatchedResource>WEB-INF/web.xml</WatchedResource> <!-- Uncomment this to disable session persistence across Tomcat restarts --> <!-- <Manager pathname="" /> --> <!-- Uncomment this to enable Comet connection tacking (provides events on session expiration as well as webapp lifecycle) --> <!-- <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" /> --> </Context>
新建一个根据上边web.xml配置的在你的工程/web-inf/ 新建一个cgi目录,写个 helloworld.php <?php echo("helloworld"); ?> 运行浏览 http://localhost:8080/工程名/cgi-bin/hello.php 的时候 php-cgi自己的安全异常又报错 <p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.</p> <p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin ">manual page for CGI security</a>.</p> <p>For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit <a href="http://php.net/install.windows ">the manual page</a>.</p> 那个version.php里这样写的: <p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.</p> <p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin ">manual page for CGI security</a>.</p> <p>For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit <a href="http://php.net/install.windows ">the manual page</a>.</p> 解决办法 php.ini中 cgi.force_redirect = 1 改为 cgi.force_redirect=0 然后重启服务器运行就可以了。我测试了phpcms在tomcat运行情况,还行,有点慢 short_open_tag = On 还改了这,忘了因为什么改成On了 short_open_tag规定了是否可以使用PHP代码开始标志的缩写形式 就是<? ?>这种方式 我的目的是为了整合discuz 这是个discuz java 接口 http://code.google.com/p/discuz-ucenter-api-for-java/ php cms乱码问题 http://bbs.phpcms.cn/viewthread.php?tid=110921 修改include/common.inc.php 文件,找到如下代码: if(GZIP && extension_loaded('zlib')) ini_set('zlib.output_compression', 'On'); 把 'On' 改成 'Off'
发表评论
-
android Activity注解方式获取UI实例 绑定事件
2013-04-27 14:30 2083使用注释方式代替findVIewById 并绑定事件 示 ... -
SQL server ResultSet is Read only
2010-07-08 14:48 986//stmt = cn.createStat ... -
java问题
2010-04-27 12:49 5701.一个空的index.jsp,结果还是出现了NullPoin ... -
JVM监控工具介绍jstack, jconsole, jinfo, jmap, jdb, jsta
2010-04-07 11:21 1711http://www.2mysite.net/Article/ ... -
jconsole的使用手册
2010-04-07 11:19 763http://hi.baidu.com/xuwanbest/b ... -
程序员对于市场的反应能力
2010-03-19 17:18 668去年iphone ,i ... -
string stringbuffer区别
2010-03-16 18:09 891转:http://blog.csdn.net/yirentia ... -
ArrayList Vector LinkedList 区别与用法
2010-03-10 22:15 637http://www.cnblogs.com/mgod/arc ... -
AOP里面3个概念Advice,PointCut,Advisor(转载)
2010-03-10 22:04 2455文章分类:Java编程 http:// ... -
Apache Tomcat on mac.
2010-03-07 18:19 1152转:http://llleooo.spaces.live ... -
手工编译jsp
2010-03-01 15:46 1660A java-classpath jasper.jar;ser ... -
Java安装后JDK/bin目录下的众多exe文件的用途
2010-01-26 13:22 849http://nanhaochen.blog.51ct ... -
jsp tag标签 SKIP_BODY,EVAL_PAGE,EVAL_BODY_INCLUDE,EVAL_BODY_AGAIN返回值的各个含义及区别
2010-01-15 12:58 2986http://blog.csdn.net/achun2050/ ... -
远程控制TOMCAT启动
2010-01-12 16:59 1494http://www.java-cn.com/club/? ... -
java js获取来源页面
2009-12-15 11:14 1834java 获取来源页面:System.out.println( ... -
开源协议简介BSD、Apache Licence、GPL、LGPL、MIT
2009-12-14 09:47 1133http://gchuyun.iteye.com/blog/2 ... -
ant build.xml详解
2009-12-08 11:12 1267http://xiaobian.iteye.com/blog/ ... -
java -jar -classpath
2009-12-03 16:03 1927突然发现自己不会命令行运行程序 http://www.zea ... -
apache commons-dbutils
2009-11-26 17:21 956一、关于DbUtils commons-dbutil ... -
javaFile路径空格问题
2009-11-26 16:20 1068File file =new FIle(URI);用这个 M ...
相关推荐
tomcat运行php项目必须的jar包:JavaBridge.jar、php-servlet.jar和php-script.jar 将下载好的JavaBridge.jar、php-servlet.jar和php-script.jar复制到tomcat的lib目录下; 并且完成配置, 教程链接:...
tomcat运行php所需jar
Tomcat运行php需要的jar包,放入Tomcat的lib目录下即可!
tomcat运行php项目必须的jar包。!!!!!!!!!!!!!!!!
tomcat php jar包tomcat php jar包tomcat php jar包tomcat php jar包
包含script-api.jar,php-servlet.jar,php-script.jar,JavaBridge.jar。
JavaBridge.jar,php-servlet.jar和php-script.jar,urlrewrite-3.1.0.jar
tomcat支持php运行,包含方法、web.xml文件与jar包
linux下的tomcat运行php库,这个是php/java的转化桥。
该压缩包是把windows64环境下的tomcat8+jdk8+notepad++三合一打包,方便快捷无需破解
如何在linux服务器上同时搭建php运行环境(apache)和java运行环境(tomcat) 一台linux上同时运行php和java网站项目 一台linux上同时运行apache httpd和java tomcat
tomcat运行PHP项目所需jar包,包括:script-api.jar, php-servlet.jar,php-script.jar,JavaBridge.jar
JavaBridge.jar,php-script.jar,php-servlet.jar,script-api.jar
开发环境 eclipse java EE 4.5.0...集成了Quercus,让php也能在Tomcat服务器中运行,可以在php中调用java类。php调用java时遇到中文乱码问题,在DEMO中也有提出我的解决方案,如果有更好的解决方案也请大家不吝惜指教。
代码可以放在 tomcat 环境下运行(放到 tomcat 安装目录下启动 tomcat 即可),也可以用eclipse 打开,项目用 easyui 做前段框架,使用 php 做后台开发,请求用 的ajax,数据库使用 MySQL 5.6 。项目压缩包里包含 sql...
实际上Tomcat是Apache 服务器的扩展,但运行时它是独立运行的,所以当你运行tomcat 时,它实际上作为一个与Apache 独立的进程单独运行的。 phpStudy是一个PHP调试环境的程序集成包。该程序包集成最新的Apache+...
(运行tomcat\bin\shutdown.bat关闭tomcat,之后再运行tomcat\bin\startup.bat启动tomat) jspxcms v9.5.1 更新日志:1、文件管理save权限将save@web_file_xweb_file_x:save。2、修复文档管理中正文编辑器保存视频...
一般使用apache+tomcat的话,apache只是作为一个转发,对jsp的...apache是web服务器,Tomcat是应用(java)服务器,它只是一个servlet(jsp也翻译成servlet)容器,可以认为是apache的扩展,但是可以独立于apache运行。
服务器下运行的几个APACHE+TOMCAT的网站最近因为更换服务器,需要为80端口进行虚拟子站的转换,决定选用JK的方式。对多个TOMCAT子站和PHP网站进行整合
apache是web服务器,Tomcat是应用(java)服务器,它只是一个servlet(jsp也翻译成servlet)容器,可以认为是apache的扩展,但是可以独立于apache运行。 这两个有以下几点可以比较的: 1、两者都是apache组织开发的 2...