Re: OSX PHP freetds MAMP install question...

Cole McDonald <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
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
> [email protected]
> http://lists.ibiblio.org/mailman/listinfo/freetds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.