You are here: Re: FastCGI and DB connections / global variables? « PHP Programming Language « IT news, forums, messages
Re: FastCGI and DB connections / global variables?

Posted by Joshua Ruppert on 07/26/06 17:24

Chung Leong wrote:
> Joshua Ruppert wrote:
> > There are four Microsoft SQL Server 2000 servers running behind a
> > single IIS page server.
> >
> > As for an open transaction, that was my first thought too. I've
> > systematically check for and clean up open transactions before each use
> > and then at the end of each script. I did that because it was easy to
> > do a global search and replace on the open transaction statements.
>
> Are you using mssql_pconnect()? Try switching to mssql_connect(). That
> would remove the one difference between FastCGI and CGI.
>
> If you're using ADODB through COM, that could be the source of the
> problem. PHP (version 4 at least) has a nasty habit of not releasing
> COM objects correctly. After a while the leak builds up and the server
> sort of dies.

We're using ODBC instead of the direct MSSQL drivers for one, and we
are using the standard odbc_connect() function. Are there any known
problems using ODBC with MS SQL Server?


> > Thanks for the tip, though do you think FastCGI would respond properly
> > to a process being killed through the back door like that, and replace
> > it properly?
>
> I think it will. Windows does a decent job cleaning up dead processes.
> And to the controlling process, there isn't a huge difference between a
> child exiting normally or abnormally.
>
> What you should do though is to not run PHP as a system process. Go
> into services and run change the login to IWebUser or something.

Wouldn't the service login be the Web Server service login? So to
control the PHP login I would need to change the Web service login?

 

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

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