PHP Classes

have an error in the config.

Recommend this page to a friend!

      EZMVC  >  All threads  >  have an error in the config.  >  (Un) Subscribe thread alerts  
Subject:have an error in the config.
Summary:Package rating comment
Messages:2
Author:jack ac
Date:2009-08-21 17:39:48
Update:2009-08-22 04:59:27
 

jack ac rated this package as follows:

Utility: Good
Consistency: Good
Documentation: Good
Examples: Good

  1. have an error in the config.   Reply   Report abuse  
Picture of jack ac jack ac - 2009-08-21 17:39:48
have an error in the config.php, detailed above:

====================================================
<?php

# error reporting level
error_reporting(E_ALL);

// $__site_path = realpath(dirname(__FILE__));
$__directory = substr(dirname($_SERVER['PHP_SELF']), 1);
$__site_path = $_SERVER['DOCUMENT_ROOT'] . '/' . $__directory;
====================================================

in the last line when asign the var $__site_path it must add the code '/' . to work without errors.

  2. Re: have an error in the config.   Reply   Report abuse  
Picture of Sarfraz Ahmed Sarfraz Ahmed - 2009-08-22 04:59:27 - In reply to message 1 from jack ac
thanks Jack


actually there is no need to put the slash in the end, as through rest of the code i have added it explicitly, and the code works just fine, Thanks