I want to determine if the PHP file I am on install.php is in a subdomain/subdirectory (basically not at domain.com/install.php).
Found solution to my problems
see below
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your syntax error is because you are missing the
;at the end of$scriptname="install.php".Your method looks like it should work okay.
Another way you could determine if the file is installed at the domain root instead of a folder or subdomain would be something like this: