Results 1 to 1 of 1
1. I run php5 on a linux server. phpSUExec is installed. It has taken a huge amount of coding revision to update my code to be compatible with phpSUExec, but ...
- 10-09-2010 #1Just Joined!
- Join Date
- Apr 2003
- Posts
- 52
requiring settings file from another site - phpSUExec
1. I run php5 on a linux server. phpSUExec is installed. It has taken a huge amount of coding revision to update my code to be compatible with phpSUExec, but I feel the security is worth it, so no complaints there.
HOWEVER, I ahve one site/account on the server - let's just call the domain name www.samsshoppingcart.com - that processes transactions from other sites/accounts.
I am able to transfer settings to the shopping cart site just fine, BUT I'd like to also do this:
alas, because of phpSUExec, I cannot require a file on another account.PHP Code:$parentSiteSettingsPage='/home/thataccount/public_html/cgi-bin/settings.php';
require($parentSiteSettingsPage);
I tried to set up a symbolic link in the shopping cart site, to that settings file - but that didn't work or overcome security either.
What I'm asking is, is there any elegant way to include the settings file that doesn't demand changing file permissions/owners? I'm thinking someone else has dealt with this situation before.


Reply With Quote