Re: [PHP-DB] LIMIT

2006-07-01 Thread chris smith
On 7/1/06, Dwight Altman <[EMAIL PROTECTED]> wrote: Thanks, but that's an additional query. I was wondering if there may be a PHP function that can operate on the $result or perhaps $link of the single query that uses a LIMIT clause and have the information [count(*) had there not been a LIMIT c

Re: [PHP-DB] LIMIT

2006-07-01 Thread JupiterHost.Net
chris smith wrote: On 7/1/06, Dwight Altman <[EMAIL PROTECTED]> wrote: Thanks, but that's an additional query. I was wondering if there may be a PHP function that can operate on the $result or perhaps $link of the single query that uses a LIMIT clause and I'm not sure how this would be don

Re: [PHP-DB] LIMIT

2006-07-01 Thread Bastien Koert
I am not sure that any dbs will do thati usually run two queries (one for the limit data and one for the total rows) Bastien From: "chris smith" <[EMAIL PROTECTED]> To: "Dwight Altman" <[EMAIL PROTECTED]> CC: php-db@lists.php.net Subject: Re: [PHP-DB] LIMIT Date: Sat, 1 Jul 2006 18:51:11

Re: [PHP-DB] LIMIT

2006-07-01 Thread Bastien Koert
Your example predicates that the resultset it passed to an array which you then take the size of, which would only give you the LIMIT value if that clause is specified in the query... Bastien From: "JupiterHost.Net" <[EMAIL PROTECTED]> To: php-db@lists.php.net Subject: Re: [PHP-DB] LIMIT Da

[PHP-DB] ftp_connect($ftp_server);

2006-07-01 Thread Ron Piggott (PHP)
Every now and then the following command fails --- the FTP connection is refused by the server: $conn_id = ftp_connect($ftp_server); Is there a way to delete a file within PHP without having to FTP to the server? Ron -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP-DB] ftp_connect($ftp_server);

2006-07-01 Thread Dave W
Use the unlink function: $myFile = "testFile.txt"; unlink($myFile); On 7/1/06, Ron Piggott (PHP) <[EMAIL PROTECTED]> wrote: Every now and then the following command fails --- the FTP connection is refused by the server: $conn_id = ftp_connect($ftp_server); Is there a way to delete a file w