Hi there guys,
Over the course of time, I've come to realize that I overestimated the general users' ability to figure out their server path. The config file holds the script path and URL. The most common problem with the installation process for the user is their inability to figure it out their server environment.
So I created a little helper script to help them figure out the variables. The problem with that is that they don't always work and the latter attempt includes the file name, which they neglect to remove when pasting it into their config file.
$_SERVER['PATH_TRANSLATED'];
__FILE__
With the above examples, the prior doesn't work most often and the bottom one includes the filename.
If the script resides in /home/user/public_html/ , then I would like to create a function that has the best chance of coming up with this to help the user along.
I would appreciate any help figuring this out, as it would save me a lot of time 😃
thanks,
json