Jump to content

Complete newbie WAMP server question


rajeevthomas

Recommended Posts

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

$_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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.