tags:

views:

87

answers:

2
+1  A: 

This isn't directly related to your question, but

define('SITE_ROOT',DS.'C:',DS.'wamp',DS.'www',DS.'photo_gallery');

should probably be

define('SITE_ROOT',DS.'C:'.DS.'wamp'.DS.'www'.DS.'photo_gallery');
Frank Farmer
i really thankful to recorrect me thanks any waydefine('SITE_ROOT','C:'.DS.'wamp'.DS.'www'.DS.'photo_gallery');i eliminated one DS.'c:' and write down to ('site_root','C:')
+2  A: 

You need to do this:

defined('SITE_ROOT')? null : define('SITE_ROOT','C:'.DS.'wamp'.DS.'www',DS.'photo_gallery');

You don't need a DIRECTORY_SEPARATOR before the start of your site root.

You might be better off with this:

defined('SITE_ROOT')? null : define('SITE_ROOT', dirname(__FILE__));

As long as intializer.php is in the root directory

Gutzofter
This is also one way ..i really thnx......