Hi all
I have a little problem that requires an answer really.
I am trying to install a script locally using XAMPP using the following url http://localhost/ads/Scripts/install.php , and the location of this files are C:\Downloads\xampp\htdocs\ads\Scripts however the script ask a few questions that I cannot figure out.
It states there are only 2 lines I need to worry about. Find both lines that look like this in the config:
PHP Code:
$siteurl = "http://www.site.com"; define('FULL_PATH', $_SERVER['DOCUMENT_ROOT']); //no ending slash.
Depending on which script you have, the first line could vary somewhat. Some scripts use
PHP Code:
$siteurl = "http://".$_SERVER['SERVER_NAME']; Or define('SITE_URL', "http://".$_SERVER['SERVER_NAME']);
Here is my config file that I need help editing correctly?
PHP Code:
@header("Cache-control: private"); /* Set your language... Code: eng for english, nor for norwegian or other... */ $language = "eng"; $version = "1.23"; // version of classified script /* allows you to check over links subitted before they go live 1 = live on submit 2 = pending */ $SetPending = '2'; $siteurl = "http://www.site.com/classifieds"; // no ending slash /* for IIS users you will need to add this manually. eg: c:/Inet/www/path/script_name or whatever your www folder is */ $full_path_to_public_program = $_SERVER['DOCUMENT_ROOT']."/classifieds"; $upload_dir = "$full_path_to_public_program/pictures"; // no ending slash
It also give the following example on a “live” server, however mine is on a local server.
So lets say you want to upload it to a folder under root (public_html). We then edit those variables to be this:
PHP Code:
$siteurl = "http://www.site.com/somefoldername"; define('FULL_PATH', $_SERVER['DOCUMENT_ROOT']."/somefoldername"); //no ending slash.
If you have the other site url variable it is like this:
PHP Code:
$siteurl = "http://".$_SERVER['SERVER_NAME']."/somefoldername";
It is very important to NOT change the _SERVER variable. Please keep it exactly like what is shown.
Can someone advise me on what I should put in the above?
Thanks
Last edited by Demon Templates; 12-01-2008 at 08:01 AM..
|