note 46476 added to ref.exec
| From: | JavierScappinijscappini at hotmail dot com | Date: | Tue, 12 Oct 2004 21:20:56 +0000 |
| Subject: | note 46476 added to ref.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78449@lists.php.net to get a copy of this message | ||
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!!!!
----
Manual Page -- http://www.php.net/manual/en/ref.exec.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46476
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46476&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46476&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46476&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46476&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46476&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46476&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46476&report=yes
Search -- http://master.php.net/manage/user-notes.php