note 46476 deleted from ref.exec by didou
| From: | didou@php.net | Date: | Wed, 13 Oct 2004 00:50:02 +0000 |
| Subject: | note 46476 deleted from ref.exec by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78458@lists.php.net to get a copy of this message | ||
Note Submitter: Javier Scappini jscappini at hotmail dot com
----
At the moment I'm using two different databases to connect with my phonebook page, but when I
want to use MySQL or Interbase I had to started it manually, and it was wasted time!!
So I decided to use a page to select what database to use, but I had problems to turn on MySQL
'cause it made a big loop and never show me the database on...
I used this:
exec("start c:\\php\\mysql\\mysql.exe /B");
And this didn't work!!!
But I have had a revelation and just put a shortcut in the folder of MySQL and then point the
exec() function to it...
Like this:
exec("start c:\\php\\mysql /B"); //mysql is the name of the shortcut
And this work!!!
And forget of the neverending loop!!! I hope it works to you!!!!
----
Reason: bad code