shell exec and mysql
<p>I've written a script that will take a file of INSERT INTO statements and load into a database using the shell_exec function. It is working however, I am a little concerned that there is no return value that I can test. The manual says that shell_exec returns what the command it runs returns which, in the case of <code>mysql</code>, is null.</p>

<p>Is there any other way to load a batch file of INSERT INTO statements other than with shell_exec? I'm open to anything that will work for me.</p>
