新手求助下载php源码到wamp里的Documentroot里,浏览器里输入localhost的话会出来wamp的内容,估计是安装成功了
但是http://localhost/book/index.php执行这个源码的时候页面是一片空白,这是什么原因?

解决方案 »

  1.   

    以我的经验来看  很有可能是代码有错  又关闭了报错 所以什么都不显示把你index.php帖出来看看
      

  2.   

    book下的index.php里就是一堆html代码加一点php代码,因为太多,不方便都贴出来
      

  3.   

    在PHP文件头部写上
    Error_reporting(E_ALL);
    INI_Set('display_errors','on');
    看是否报错
      

  4.   

    将你的php错误提示打开再运行看有不有报错
      

  5.   

    在PHP文件头部写上
    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)?>">
      

  6.   

    右键在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的
      

  7.   

    我无法直接看出你的问题所在.... 不过分享一个测试的方法给你 你可以试试先删掉后边的内容 然后写个 echo 2;试试能否出结果
    <?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; 直到哪里不出结果了  就找到问题所在了...
      

  8.   

    <?php
    Error_reporting(E_ALL);
    INI_Set('display_errors','on');
    echo 2;
    这样能出结果,但是
    加上require("include/global.php"); 这段之后,就什么都不出了
      

  9.   

    那就说明是require("include/global.php"); 出了问题先检查是否有这个文件  如果有  进入这个文件逐步中断检查问题出在哪一行...
      

  10.   

    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, 该系统无法找到指定的文件.环境都没有配置好!!!