From: mazsolt at yahoo dot com
Operating system: win 2000 Server, IIS
PHP version: 4.3.3
PHP Bug Type: MySQL related
Bug description: to run a mysql script from php
Description:
------------
hello
I launched this problem on several forums ( like phpbuilder), but I
haven't got an answer for it.
I have a mysql script, which I can run from the mysql command prompt with:
mysql> \. out.txt // out.txt is the name of the script file located in
c:\mysql\bin
The script run without problems, in fact it contains only 2 lines :
use test
select * from table1
Now, I would wish to run the script from a php program too, with the
command:
mysql_query("\\. out.txt");
I received an error message, which indicated me a SYNTAX error in the
appropiate line...
I tried to use the fullpath of the script:
mysql_query("\\. C:\\mysql\\bin\\out.txt"), but I got the same error
message.
I think there is a BUG, because I couldn't discover any syntax error (I
escaped all the backslashes).
I discovered, that you couldn't run any of the "short-hand" mysql-commands
from php, like \h.
Could you send me answer, please? at the forums, even senior members
weren't able to solve my problem.
Thanks in advance!
--
Edit bug report at http://bugs.php.net/?id=25884&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25884&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25884&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25884&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25884&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25884&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25884&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25884&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25884&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25884&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25884&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25884&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25884&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25884&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25884&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25884&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25884&r=float