本帖最后由 wenwu93 于 2012-06-12 19:49:20 编辑

解决方案 »

  1.   

    部分代码,是dreamwear自动添加的。<?php virtual('/Mysite/Connections/c1.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
    {
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      }  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      

  2.   

    virtual() 是什么啊。你就用require或者include就行。路径写对即可。
      

  3.   

    require 和include都没有用啊,你可以看下后面的错误信息
      

  4.   

    总结,在写下完整的绝对路径后好用了,感谢jordan102~~。
    但有个问题:我查过virtual(),好像是在apache里的,是不是哪里配置不准确啊。还是dreamweaver6就有这个问题
      

  5.   

    cgi.force_redirect = 0
    将这个参数改掉也有点用,可以使用相对路径了但上面的问题怎么回事呢??菜鸟一步步来吧。。暑假补点书。。cgi.force_redirect = 0
    cgi.force_redirect = 0
      

  6.   

    virtual
    仅在将 PHP 安装为 Apache 模块时,支持此函数。你使用的是 php5.4.3,win7 IIS ,显然是无法使用该函数的iis 必须勾选‘启用父路径’
      

  7.   

    包含的时候最好加上dirname(__FILE__),因为PHP在查找时是以当前执行脚本为源的。
    include(dirname(__FILE__)."/Mysite/Connections/c1.php");
      

  8.   

    怎样使之安装为IIS模块呢?
    启用父路径在php下会不会有安全风险?
      

  9.   


    IDE Eclipse/ZendStudio...当然我还给某个软件封了个名字叫IDE终结者 phpstrom赶紧吧...虽然编辑工具无关轻重,但是利刃还是比钝刀好的.