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

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]


Удаленная работа для программистов  •  Как заработать на 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

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