Jakob Buchgraber wrote:
I wrote a function that searches for a file within the include_path.
Here it is:
// check for absolute path
if ($path[0] == "/" || $path[1] == ":") {
if (file_exists ($path)) {
return $path;
}
return false;
}
What about
if (str_replace('\\', '/', $path) == str_replace('\\','/', realpath($path)))
Mark
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php