右键在eclipse上运行index.php的时候提示如下报错Error running PHP executable:Cannot run program "C:\php\php.exe"(in directory C:\wamp\www\book"); CreateProcess error=2, The system cannot find the file specified.之前因为apache+mysql+php安装太费劲了,所以就删除之后,下载了wamp的
Error running PHP executable:Cannot run program "C:\php\php.exe"(in directory C:\wamp\www\book"); CreateProcess error=2, The system cannot find the file specified.运行PHP可执行文件的错误:无法运行程序 "C:\php\php.exe"(in directory C:\wamp\www\book"); CreateProcess error=2, 该系统无法找到指定的文件.环境都没有配置好!!!
Error_reporting(E_ALL);
INI_Set('display_errors','on');
看是否报错
Error_reporting(E_ALL);
INI_Set('display_errors','on');也还是显示空白,下面是部分代码,index.php是我下载的源码里的index.php,我是直接在浏览器里输入localhost/book/index.php的<?php
Error_reporting(E_ALL);
INI_Set('display_errors','on');
require("include/global.php");
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php echo $db->ly_system("system",2)?></title>
<META name=keywords content="<?php echo $db->ly_system("system",3)?>">
<?php
Error_reporting(E_ALL);
INI_Set('display_errors','on');
echo 2;
如果能出结果,那说明文件什么都是没错的 然后再把那一句require("include/global.php");写上,下边再echo 2;试试 <?php
Error_reporting(E_ALL);
INI_Set('display_errors','on');
require("include/global.php");
echo 2; 直到哪里不出结果了 就找到问题所在了...
Error_reporting(E_ALL);
INI_Set('display_errors','on');
echo 2;
这样能出结果,但是
加上require("include/global.php"); 这段之后,就什么都不出了