|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-15 19:06 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
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!