I have a config.php where i put the mysql database variables, along with the $admin variable, which tells the script what username in the users table has admin rights.
What I'm wanting to add to this config.php is a 'base url' variable of sorts, that will hold where the script is running from.
So if the user installs it to /digg or /was instead of / the rest of the url/links will be pointing in the right spot.
A - how do i setup this variable
B - how do i use it in the script
for example, if one of my lines look like this
<?php echo "/digg/comment.php?appid=$id"; ?>
where in the config, /digg would be the 'base url'. how would i change the link to work(syntax wise)
thanks in advanced for anyone who can help me with this