| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Excelling Contributor
Joined in Mar 2007
Lives in Wales
Hosted on dime999
620 posts
Gave thanks: 47
Thanked 46 times
|
php includes on different account
On my previous hosting I was able to include files (PHP) from a special account which meant that for all my customers I could centrally update my scripts.
Security seems to not allow that here - is there a workaround?
__________________
Markus |
|
|
|
|
|
#2 (permalink) | |
|
Surpass Fan
Excelling Contributor
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
936 posts
Gave thanks: 2
Thanked 95 times
|
Quote:
You will need to copy and place them within your user space.
__________________
Where would you be if you were at the highest court in the land (US)? |
|
|
|
|
|
|
#3 (permalink) |
|
Surpass Fan
Excelling Contributor
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
936 posts
Gave thanks: 2
Thanked 95 times
|
I think there is a way. You will have to try.
1. Make a script for a cron to run that will write the includes to a database. 2. Give each domain access to that database.
__________________
Where would you be if you were at the highest court in the land (US)? |
|
|
|
|
|
#4 (permalink) |
|
Registered User
Comfy Contributor
Joined in Sep 2007
Lives in ~root
111 posts
Gave thanks: 1
Thanked 12 times
|
you are pretty much stuck on this one.
It is just the nature of phpsuexec to prevent this. In actuality it is a great thing to have on shared servers because you don't want someone else executing/modifying your files or even worse is having them upload a c99 shell.
__________________
I'm proud to say I never have and never will use vista |
|
|
|
|
|
#5 (permalink) |
|
Senior Member
Super #1
Joined in Nov 2003
Lives in New Hampshire
1,260 posts
Gave thanks: 3
Thanked 27 times
|
Depends on how much information you'll need passed from the script. You can do an include to an external URL, but it won't pass variables and such.
Code:
include("http://www.yahoo.com");
__________________
![]() ![]() ![]() ![]() ![]() ![]()
|
|
|
|
|
|
#6 (permalink) |
|
Surpass Developer
Excelling Contributor
Joined in Jan 2004
Lives in Florida
Hosted on decc.surpasshosting.com
511 posts
Gave thanks: 20
Thanked 78 times
|
This won't work on most of our shared servers as allow_url_fopen is most likely turned off. You could turn it on via php.ini if you are on a suexec server, however that is not a smart idea unless you don't have any variables in include/require statements in any of your code.
__________________
Mark Surpass Hosting Developer sɹnoʎ uɐɥʇ ɹǝʇʇǝq sı bıs ʎɯ |
|
|
|