Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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