Jump to content

Recommended Posts

Hi to all,

 

I have a Script that i would like to eventually upload to my hosts Server. Before i do that, i would like to try out the Script on Wamp Server on my PC. I know the paths the host server  (/home/mysite/www/

 

The config.php needs to be set up. As i want to try it out on Wamp on my PC. I am confused to what path i should put in these setting, so i can try the Script on Wamo Server?

 

I have included the script. I would be please if someone could explain what i need to do, and the paths that need to be set for Wamp Server.

 

Thank you

Eng65

 

<?

/***********************************

WEBSITE SETTINGS

************************************/

 

///////////////////////////////////////////////////////////////////////////////////////////////////////////////

// SETTING 1  (IMPORTANT)

///////////////////////////////////////////////////////////////////////////////////////////////////////////////

// this is the full path for the root directory of your website

define("FULL_PATH", "/home/freedir/www/");

 

///////////////////////////////////////////////////////////////////////////////////////////////////////////////

// SETTING 2  (IMPORTANT)

///////////////////////////////////////////////////////////////////////////////////////////////////////////////

// homepage of your main website ( base domain usually ex. http://www.mydomain.com/ )

define("DIRECTORY_HOMEPAGE_URL", "http://www.freedirectoryscript.com/");

 

 

///////////////////////////////////////////////////////////////////////////////////////////////////////////////

// SETTING 3  (IMPORTANT)

///////////////////////////////////////////////////////////////////////////////////////////////////////////////

// must include a forward slash at beginning and end !!!

// default setup would be "/directory/"

// for instance, if your links directory is http://www.domain.com/directory/

// then set this value to "/directory/"  [a slash before and after is required]

define("WWW_DIR", "/directory/");

 

 

/***********************************

MOD_REWRITING SETTINGS

************************************/

// If you want search-engine-friendly url's set MODREWRITE to true

// Fancy rewriting is off by default, your server must allow rewriting

// You must include the .htaccess file if you wish to rewrite URL's

    define ("MOD_REWRITE", true); // if true, don't forget to set your .htaccess file

define ("MOD_REWRITE_EXT", "html"); // the file extension used for subcategory.xxx pages

define ("MOD_REWRITE_DIV", "-"); // the spacer-divider for sub-category-names-with-a-space.xxx (value '-' used in example)

 

 

$systemvals = array();

//////////////////////////////////////////////////////////

 

// DO NOT EDIT BELLOW THIS LINE

// DO NOT EDIT BELLOW THIS LINE

// DO NOT EDIT BELLOW THIS LINE

// DO NOT EDIT BELLOW THIS LINE

 

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

require_once(FULL_PATH . WWW_DIR . "_libs/runtime.inc.php");

?>

 

 

Link to comment
https://forums.phpfreaks.com/topic/88551-solved-how-to-find-the-paths/
Share on other sites

This is the path to Wampserver on my PC  C:\wamp\www . I want to know what i put on line one on the script:

///////////////////////////////////////////////////////////////////////////////////////////////////////////////

  // SETTING 1  (IMPORTANT)

  ///////////////////////////////////////////////////////////////////////////////////////////////////////////////

  // this is the full path for the root directory of your website

  define("FULL_PATH", "/home/freedir/www/");

                                  C:\wamp\www?

 

What would be the path?

 

Thanks

Eng65

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.