You are here: Re: No connection with database « PHP Programming Language « IT news, forums, messages
Re: No connection with database

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация