[PHP] Re: error-catching

2002-05-09 Thread Andreas Indahl

use or die ("DB-server down"); at the end of you line.
"Gert Mellak" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi!
>
> When I open a database connection and i. e. the db-server is down,
> I get a very long, long error message telling me that the server is down.
>
> What I want to do is just echo a text, i. e. "DB-Server down" and leave
out
> the error message.
>
> Does anyone have an idea how to manage this?
>
> I'd be grateful for any information!
>
> TIA,
>
> Gert.
> [EMAIL PROTECTED]
> http://mellak.com
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] include text from a html-file online

2002-05-09 Thread Andreas Indahl

I want to include text from a html-file that is online at another website.
To be more precise: I want to include my seti-stats from
http://setiathome.ssl.berkeley.edu/ on my own homepage. Can I do this with
PHP?

Sincerely
Andreas Indahl



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] read all files in directory

2002-05-11 Thread Andreas Indahl

Hi!

How can I read all files in a directory, when I don't know which files are
there?

Sincerely
Andreas Indahl



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php