Hi,

We've had a problem with PHP4 and Apache2 regarding what "safe_mode_include_dir" actually did. I assumed any directories listed under it would be excluded from all safe mode checks, but apparently its just require and include functions? (See http://bugs.php.net/bug.php?id=20054 for further info)

This was causing some problems for us, especially when a user would want to access a common datafile in a different directory. If they were not in the same group or the original user, then it didn't work. Unfortunately due to the "open" nature of the university, having everyone in a same group isn't a solution.

So, while I was hoping for a solution from the php gods, I started looking at source and think I have added in a work-around. It works on a similar thing to the safe_mode_include_dir tag, configured in php.ini.

However, being completely new to hacking something like this does anyone have good pointers for how to test it? Secondly do people think this is something they would be interested in?

Cheers,
Ryan.
--
Ryan McConigley - Systems Administrator _.-,
Computer Science University of Western Australia .--' '-._
Tel: (+61 8) 9380 7082 - Fax: (+61 8) 9380 1089 _/`- _ '.
Email: [EMAIL PROTECTED] - http://www.cs.uwa.edu.au/~ryan '----'._`.----. \
` \;
"You're just jealous because the voices are talking to me" ;_\




--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to