Skip to Content.
Sympa Menu

freetds - Re: [freetds] OSX PHP freetds MAMP install question...

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Cole McDonald <knightscape AT charter.net>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] OSX PHP freetds MAMP install question...
  • Date: Tue, 11 May 2010 08:00:06 -0500

This PHP is the code I'm currently using to test my install troubleshooting... I get functions not available, not loaded and not listed in the loaded extensions:

if (function_exists('mssql_fetch_row')) {
echo "MSSQL functions are available.<br />\n";
} else {
echo "MSSQL functions are not available.<br />\n";
}

if(extension_loaded("mssql")) {
echo "MSSQL is Loaded<br>";
}
else {
echo "MSSQL not loaded<br>";
}

$extensions = get_loaded_extensions();
$x = 0;
$extCount = count($extensions);
while ( $x <= ( $extCount - 1 ) ) {
echo( $extensions[$x] . '<br>
' );
$x = $x + 1;
}


On May 11, 2010, at 7:43 AM, Daniel Fazekas wrote:

On May 11, 2010, at 14:25, Cole McDonald wrote:

I do see the MSSQL parameters in the phpinfo() output, which I didn't before...

Then everything looks to be in order.

However, I don't see mssql listed in the configuration commands at the top of the phpinfo() output,

That's the expected behavior if you only built the mssql extension separately and did not rebuild all of PHP.

It seems to have built fine, but doesn't appear to be loading into php...

If you see the MSSQL section in the phpinfo output, then it has loaded just fine.

_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds





Archive powered by MHonArc 2.6.24.

Top of Page