Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001072

Re: [PHP-DB] Re: the body of the response From: CC Zona (cczona <email protected>)
Date: 07/16/01

In article <00c801c10e3f$758ba8a0$b943500c <email protected>>,
 mrsql.php <email protected> (Ken Sommers) wrote:

> are you saying that i can grab the output of your echo() statements in YOUR
> PHP script by Fopen()ing your URL

Yes, you can use it that way.

> IF so,, is this done much?

It's done. I can't quantify how often. But it's not considered usual or
unorthodox, if that's what you're asking.

> or are there easier more stable less error-prone
> ways to access remote databases?

A) If you're trying to access a remote DBMS with fopen(), then the
probability is very high that's your whole strategy is bass-ackwards. So
if that's what's behind these questions, your confusion is
understandable--time to do a major re-think (and/or, as Ken has already
suggested, spend more time with a PHP manual).

B) What makes you think fopen is unstable or error-prone? I'd expect any
connection to a remote server to have a higher risk of errors than a local
connection, but you seem to believe that fopen() itself introduces new
opportunities for errors above-and-beyond the remote connection itself.
That I would not expect to be the case.

-- 
CC

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>