Quick question - Script Install

Discussion in 'Programming' started by Jayyyyyyyy, Sep 6, 2007.

  1. #1
    I am installing a script and I need to configure the following:

    define('HTTP_SERVER', 'http://xxxx/ilance/');
    define('HTTPS_SERVER', 'http://xxxx/ilance/');
    define('DIR_SERVER_ROOT', '/path/to/ilance/')

    I installed all the files on my dedicated server in the httpdocs directory. The name of the script is ilance. Any ideas?
     
    Jayyyyyyyy, Sep 6, 2007 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    xxxx should be yourdomain.xxx

    The path statement is going to vary depending on the control panel. Under cPanel it will be home/username/public_html/ilance.

    Since you mentioned httpdocs the cpanel is not going to work and there are way too many possibilites.

    Which control panel?
     
    Colbyt, Sep 6, 2007 IP
  3. Jayyyyyyyy

    Jayyyyyyyy Peon

    Messages:
    136
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm using plesk
     
    Jayyyyyyyy, Sep 6, 2007 IP
  4. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #4
    Copy the script below and name it what you like filename.php. Put in in the same directory as the script and then run it in your browser. This should give you the path to the directory.

    
    <?php  {
    echo "Good morning Master<br>";  
    
    echo "<br><br>First,let's test the 'DOCUMENT_ROOT' function<br>";  
      
    echo  $_SERVER['DOCUMENT_ROOT'];  
    
    
    echo "<br>'DOCUMENT_ROOT' Script completed <br>";  
    
    echo "<br><br>Next, let's test the 'PHP_SELF' function<br>"; 
    echo  $_SERVER['PHP_SELF']; 
    echo "<br>'PHP_SELF' completed<br>";  
    echo "<br><br>Now, let's test the 'SCRIPT_FILENAME' function<br>";  
    echo  $_SERVER['SCRIPT_FILENAME']; 
    
    
    
    echo "<br>Goodbye, Have a nice day. <br>";  
    
    
    }
    
    ?>
    
    
    PHP:
     
    Colbyt, Sep 7, 2007 IP