| 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 |
|
|
 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.
 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
|