|
Posted by Joachim Smit on 11/24/06 23:07
>
> Which is just what should happen.
>
> When you run it from the command line on your machine, $db2 will be a
> connection to your machine, because that's where the PHP is running.
>
> When you execute it from a browser, the script is being executed by the
> server, and $db2 would point to a database one the server - which would
> be something entirely different.
>
There is no difference between my machine and the server. I run the
script from the command prompt on the server. In both cases the same
script runs on the same server. The only difference is the way I call
the script.
Joachim
Navigation:
[Reply to this message]
|