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?
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?
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: