Re: open_basedir question (solved)
| From: | Dash McElroy | Date: | Sun, 22 Sep 2002 20:04:43 +0000 |
| Subject: | Re: open_basedir question (solved) | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15942@lists.php.net to get a copy of this message | ||
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, let me know.
-Dash
"They told me I was gullible ... and I believed them!"
On Sun, 22 Sep 2002, Dash McElroy wrote:
> 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 must be missing something...
>
> Thanks in advance,
>
> -Dash
>
> As long as the answer is right, who cares if the question is wrong?
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>