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 14:30

Joachim Smit wrote:
>> 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.
>>
>
> Does it make any difference?
>
> iptables and pg_hba.conf are allright on the external server. I don't
> need to make any changes there, I think.
>
> What could I change on the internal server?
>
> Joachim

It sure can. This has nothing to do with iptables, pg_hba.conf or
anything similar.

There are many things which could be different. The userid is the
first; it could also be you're using a different version of PHP when
running through a web server vs. the command line, could be loading a
different pg library - a lot of things.

You need to find out what's different between the two. Because if the
environment were the same, the script would work the same.

--
==================
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

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