|
Posted by Jerry Stuckle on 11/25/06 01:56
Joachim Smit wrote:
>>
>> 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
Ok, then how about the user privileges? When you call it from the
browser you're running under a different ID than when you're calling
from the command line.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|