Re: [PHP-WIN] open_basedir question (solved)

2002-09-22 Thread Dash McElroy
I feel like a dingbat. The "or die("error message") works fine on the call that flails on the open_basedir restriction. I also put an "@" in front of the failed open_basedir call so the page doesn't have an error message besides what's in my die("blah") call. If there's a better or cleaner way, l

[PHP-WIN] open_basedir question

2002-09-22 Thread Dash McElroy
Hello there, I have what should be a simple question: How can I get a script to fail (terminate or exit, whatever) on a failed open_basedir restriction? In other words, if I try to open a file outside of the open_basedir restriction, how do I get the script to stop? This should be simple and I m