I have two domains: example.com and testdomain.com.
I was successfully able to include : /home/example_com_user_name/directory/config.php’ on testdomain.com from example.com.
This was done by putting this into testdomain.com/example_com’s .htaccess file.:
Inside :/home/example_com_user_name/directory/php.ini’ isCode:SetEnv PHPRC /home/example_com_user_name/directory/php.iniI thought files above the public_html were not accessible. This seems like a huge security risk IMHO.Code:auto_prepend_file = /home/example_com_user_name/directory/config.php
Other info. Both domains are on the same reseller hosting account. Testdomain.com also has wildcard sub-domains turned on bye the web hosting provider.
Thus anything.testdomain.com automatically goes to testdomain.com/index.php unless it is specified differently in the .htaccess.



Reply With Quote




Bookmarks