/    Sign up×
Community /Pin to ProfileBookmark

Can anyone explain what these do?

If someone could explain to me what these do and what i am supposed to put into them…These came like this as a part of a program i am using and i am using xampp to upload them..thank you very much

[code=php]// Set this variable to your main URL to phprealty NO TRAILING “/”
$HOME_URL=”http://shraven.homelinux.net”;

// Main Template directory, where template folders are, with TRAILING “/”
$template_dir=$HOME_DIR.”/templates/”;

// Template directory that is in use, with TRAILING “/”
$curr_temp=$template_dir.”phprealty/”;

// Template URL directory that is in use, with Trailing “/”
$curr_temp_url=$HOME_URL.”/templates/phprealty/”;[/code]

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@KRJ4authorApr 09.2006 — Actually i may just need to know what my $HOME_URL would be
Copy linkTweet thisAlerts:
@SheldonApr 09.2006 — Theres are paths you have set i assume in a config file.

These must point to dir's in you root of your hosting space.

They are more than likely used through out the program itself.

If it is a pre made program then i assume the developers website has documentation or FAQ's to help you.
Copy linkTweet thisAlerts:
@KRJ4authorApr 09.2006 — but since im running apache off of xampp shouldnt my home url be something like 127.0.0.1
Copy linkTweet thisAlerts:
@novaphoenixApr 09.2006 — if your running a local webserver then you can simply use "http://localhost" for the $HOME_URL.

However, if the website you are running has its own virtual domain (if you dont know what this is, then just ignore it as it wont apply), then it will be the virtual domain name.

eg. if you go to the site by typing "http://myserver/" then the $HOME_URL will be "http://myserver" not "http://localhost".

Also, the other settings will be based on your localtion of those directories from the root folder.

eg. if you localhost points to c:/web and the templates directory is in c:/web/templates, then keep it as is. If however its in c:/web/myinstall/templates, then the $template_dir variable will need to be set to: $HOME_DIR."/myinstall/templates/"
Copy linkTweet thisAlerts:
@KRJ4authorApr 09.2006 — i inputted the local host but im still gettin

Parse error: syntax error, unexpected T_STRING in C:Program Filesxampphtdocsphprealtyincludescommon.php on line 10

[code=php]
<?
/* ############### COMMON VARIABLES / FUNCTIONS ############### */

// Set this variable to your main home directory for phprealty
// you can also use /var/html or whatever your document root is, but for an apache server this is the esiest way
// and if you made the phprealty directory then make it /var/html/phprealty or $_SERVER['DOCUMENT_ROOT']."/phprealty
$HOME_DIR=$_SERVER['DOCUMENT_ROOT']."/phprealty;

// Set this variable to your main URL to phprealty NO TRAILING "/"
$HOME_URL="http://localhost";

// Main Template directory, where template folders are, with TRAILING "/"
$template_dir=$HOME_DIR."/templates/";

// Template directory that is in use, with TRAILING "/"
$curr_temp=$template_dir."phprealty/";

// Template URL directory that is in use, with Trailing "/"
$curr_temp_url=$HOME_URL."/templates/phprealty/";

// Title name for the website ( SHOWS IN THE TITLE BAR )
$TITLE="phpRealty";

// E-Mail to send contact form information to..
$to="[email protected]";[/code]
Copy linkTweet thisAlerts:
@SheldonApr 09.2006 — missing the closing quote on the $HOME_DIR line at the end before the ;
×

Success!

Help @KRJ4 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...