You are here: Re: PHP Setup « PHP Programming Language « IT news, forums, messages
Re: PHP Setup

Posted by Lammi on 05/31/07 06:55

On 31 Mai, 05:32, jm <mister5...@gmail.com> wrote:

ok, first of all: why don't you use xampp (www.apachefriends.org)? as
long as you're not on a live-box, there no better way to install
apache and php on a windows-system.

> When I run a PHP file that uses pg_connect() for example, it fails and
> says that it is an unrecognized function. I know that the PostgreSQL
> extension is in the extension directory.

there must be a dll called php_pgsql.dll. look at your php.ini for
"extension=php_pgsql.dll". this line is disabled by default. remove
the ; at the beginning of the line, restart apache.

> To start the troubleshooting process, I create a file with phpinfo()
> to see what is going on. It says that the php.ini file can be found
> in C:\WINDOWS when there is no php.ini file in that directory. I can
> do a search on the hard drive for 'php.ini' and the only php.ini file
> that is listed is the one in C:\PHP.

have you compiled php by yourself?
in your httpd.conf should be an entry like this one:

PHPIniDir "C:/php"
LoadFile "C:/php/php5ts.dll"
LoadModule php5_module "C:/php/php5apache2.dll"
AddType application/x-httpd-php .php

> My Apache httpd.conf has: PHPIniDir "C:\PHP\"
> Also the phpinfo() says that the extension_dir is C:\php5 when it is
> not. In C:\PHP\php.ini the extension directory is listed as C:\PHP
> \ext.

again, have you compiled php by yourself?


regards

 

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

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