Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2011
    Thanked 0 Times in 0 Posts

    trying to bring a site onto a WAMP server

    I would appreciate any help. I am a novice still, trying to bring a friend's PHP site onto my WAMP server.

    I am getting error messages relating to what I think is defining my WEB ROOT and APP ROOT statements in my index file.
    I think my WAMP server on Windows is configured correctly. I have an alias in Apache for the site.

    My page code starts like this:
    PHP Code:
    $TITLE "";
    $FILE __FILE__;
    #content begins here
    <table border="0" cellpadding="0" cellspacing="0" width="557" bgcolor="#ffffff">
              <td><img src="<?=$WEB_ROOT;?>images/spacer.gif" alt="" 
    etc etc
    The browser shows :

    Notice: Undefined variable: WEB_ROOT in D:\wamp\www\russell\index.php on line 13
    Call Stack
    # Time Memory Function Location
    1 0.0002 141304 {main}( ) ..\index.php:0
    images/spacer.gif" alt="" width="39" height="15" border="0"> ( ! ) Notice: Undefined variable: WEB_ROOT in D:\wamp\www\russell\index.php on line 14 Call Stack #TimeMemoryFunctionLocation 10.0002141304{main}( )..\index.php:0 etc,etc.

    I do not know how or where to define my WEB_ROOT, which I guess is my first problem.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,662 Times in 2,631 Posts
    Unfortunately, like you, we haven't a clue what WEB_ROOT is. Creating it would be as simple as $WEB_ROOT = '';, but without knowing what it is, then it's tough to tell you what to declare it as. Getting rid of an error is one thing, but making it work is a completely different thing.
    If you know what the system is, you can post that and someone that has used it may be able to give you an idea. I would presume you are either missing an inclusion here, or that the original site used something like auto_prepend_file to get additional includes into the script.

  • #3
    New Coder
    Join Date
    Mar 2012
    Thanked 0 Times in 0 Posts
    i think u havet to write some php code on your friends server for defining that


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts