[PHP-DB] mysqldump and OS X

2005-05-10 Thread Richard Dyce
Wonder if anyone out there can help? I'm trying to execute a mysql dump on my local Mac (running 10.4), and I'm running into an odd problem, possibly something to do with permissions or $PATH setup. Here's the code... ?php $dbhost = 'localhost'; $dbuser = 'user'; $dbpass = 'blah';

Re: [PHP-DB] mysqldump and OS X

2005-05-10 Thread Richard Dyce
On 10 May 2005, at 07:24, Constantin Brinzoi wrote: maybe you have to specify the full path to mysqldump like: passthru(/path/to/mysqldump --opt -h$dbhost -u$dbuser -p$dbpass $dbname It was worth a try - but no, changing the exec line to:

[PHP-DB] getting a variable from a function

2005-05-10 Thread 'Yemi Obembe
As against 'global', is there anyway to get a variable from wthin a function (besides 'returning it using 'return'). for example, how do i get the value of the variable $c in the function below: function Dis() { $a = arry('foo', 'bar'); foreach ($a as $v) { echo $v; } $c = count($a); }

Re: [PHP-DB] R6025 Error

2005-05-10 Thread Ng Hwee Hwee
hi all, this R6025 error is driving me nuts!!! anyone who can help me? thanx a million!! warmest wishes, hwee - Original Message - From: Ng Hwee Hwee [EMAIL PROTECTED] To: PHP DB List php-db@lists.php.net Sent: Tuesday, May 10, 2005 11:15 AM Subject: Re: [PHP-DB] R6025 Error hi,