rajeevthomas Posted March 22, 2010 Share Posted March 22, 2010 I am trying to get a gallery working...the problem is I am very new at this PHP thing. I have all my files directly under 'www' which is the root folder I think for WAMP. The instructions I was given for the gallery are this.. * The two following settings point the script to the folder that * contains your galleries. * * DOC_ROOT is the full physical path to your website's * document root. For most users, $_SERVER['DOCUMENT_ROOT'] * will work here. define('DOC_ROOT', $_SERVER['DOCUMENT_ROOT']); * GALLERY_ROOT is the path, relative to your document root, * under which all your galleries reside define('GALLERY_ROOT', '/images/pic'); My question is in brackets [......] for document root , should I write 'www'? or C:/www ? And for gallery_root should I write the same since it is all directly under 'www' folder?? Thank you for your help.... Link to comment https://forums.phpfreaks.com/topic/196093-complete-newbie-wamp-server-question/ Share on other sites More sharing options...
trq Posted March 22, 2010 Share Posted March 22, 2010 $_SERVER['DOCUMENT_ROOT'] will automatically be assigned your document root (eg; C:\www or whatever). I would assume the GALLERY_ROOT should then be defined as.... define('GALLERY_ROOT', DOC_ROOT . '/images); This would correlate to you having your images within C:\www\images Link to comment https://forums.phpfreaks.com/topic/196093-complete-newbie-wamp-server-question/#findComment-1029875 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.