For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > May 2004 > Re: [PHP-DB] undefined function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] undefined function
Bruno Ferreira

2004-05-21, 4:31 pm

Miguel Guirao wrote:

>I'm receiving this error:
>
>Fatal error: Call to undefined function: mssql_connect() in
>e:\inetpub\wwwroot\sitio\TMP5w3gxy2pnf.php on line 9
>
>This is line 9: if (!( $con = mssql_connect($maquina, $usuario,
>$password)))
>
>$maquina = "SERVIDOR";
> $usuario = "sa";
> $password = "";
> $BDnombre = "ProyectoRMA";
>
>So, basically, any ideas of the source of this error?
>


Probably the mssql extension isn't loaded. Open the php.ini file and
see that the line reading "extension=php_mssql.dll" isn't commented out.
Things should go back to normal.

Bruno Ferreira

---
[This E-mail scanned for viruses by Declude Virus]
Miguel Guirao

2004-05-21, 6:30 pm

First, I do not have that line in my php.ini file. In what section
should I add it?

I forgot, I'm using Windows 2000 Server, SQL Server, PHP4 and coding in
DreamweaverMX

Miguel Guirao
Servicios Datacard
www.SIASA.com.mx

-----Mensaje original-----
De: Bruno Ferreira [mailto:blueroom@digitalmente.net]
Enviado el: Viernes, 21 de Mayo de 2004 02:39 p.m.
Para: php-db@lists.php.net
Asunto: Re: [PHP-DB] undefined function

Miguel Guirao wrote:

>I'm receiving this error:
>
>Fatal error: Call to undefined function: mssql_connect() in
>e:\inetpub\wwwroot\sitio\TMP5w3gxy2pnf.php on line 9
>
>This is line 9: if (!( $con = mssql_connect($maquina, $usuario,
>$password)))
>
>$maquina = "SERVIDOR";
> $usuario = "sa";
> $password = "";
> $BDnombre = "ProyectoRMA";
>
>So, basically, any ideas of the source of this error?
>


Probably the mssql extension isn't loaded. Open the php.ini file and

see that the line reading "extension=php_mssql.dll" isn't commented out.

Things should go back to normal.

Bruno Ferreira

---
[This E-mail scanned for viruses by Declude Virus]

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bruno Ferreira

2004-05-21, 7:30 pm

Miguel Guirao wrote:

>First, I do not have that line in my php.ini file. In what section
>should I add it?
>
>


Anywhere, but best place as long as organization is concerned would
be under the "Dynamic extensions" label.

Bruno Ferreira

PS - You should check the default php.ini that comes with your PHP
distribution and customize from there.
---
[This E-mail scanned for viruses by Declude Virus]
Miguel Guirao

2004-05-24, 2:30 pm

OK, I added it!! But it still does work.

BTW, I have four different PHP.ini files in my system, where I can see
which one is using it? I added it to all of them!!

IIS
PHP 4.x
SQL Server

Miguel Guirao
Servicios Datacard
www.SIASA.com.mx

-----Mensaje original-----
De: Bruno Ferreira [mailto:blueroom@digitalmente.net]
Enviado el: Viernes, 21 de Mayo de 2004 05:01 p.m.
Para: php-db@lists.php.net
Asunto: Re: [PHP-DB] undefined function

Miguel Guirao wrote:

>First, I do not have that line in my php.ini file. In what section
>should I add it?
>
>


Anywhere, but best place as long as organization is concerned would
be under the "Dynamic extensions" label.

Bruno Ferreira

PS - You should check the default php.ini that comes with your PHP
distribution and customize from there.
---
[This E-mail scanned for viruses by Declude Virus]

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John W. Holmes

2004-05-24, 3:30 pm

From: "Miguel Guirao" <mguirao@acrosoft.net>

> BTW, I have four different PHP.ini files in my system, where I can see
> which one is using it? I added it to all of them!!


phpinfo() will product a page that shows you what php.ini file PHP is using.
It's in the first block.

---John Holmes...
Miguel Guirao

2004-05-24, 6:32 pm

Thank you everybody!!

I was missing that bloody dll.

Is working now!!!

Best Regards, and thanks again!!!!

Miguel Guirao
Servicios Datacard
www.SIASA.com.mx

-----Mensaje original-----
De: John W. Holmes [mailto:holmes072000@charter.net]
Enviado el: Lunes, 24 de Mayo de 2004 01:06 p.m.
Para: Miguel Guirao; 'Bruno Ferreira'; php-db@lists.php.net
Asunto: Re: [PHP-DB] undefined function

From: "Miguel Guirao" <mguirao@acrosoft.net>

> BTW, I have four different PHP.ini files in my system, where I can see
> which one is using it? I added it to all of them!!


phpinfo() will product a page that shows you what php.ini file PHP is
using.
It's in the first block.

---John Holmes...

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com