PHP extension php_dbase.dll

2.2k Views Asked by At

I'm having problems using the php_dbase extension.

I am using php 5.3 under windows. I use webmatrix to edit my PHP.

I have downloaed the latest php_dbase.ll and copy it to:

C:\Program Files (x86)\PHP\v5.3\ext

Then I went to php.ini and add in end:

extentions=php_dbase.dll

this is my PHP SCRIP:

<?php

   $db_uname = 'root';
   $db_passwd = '';
   $db = 'db';
   $conn = mysql_connect('localhost',$db_uname, $db_passwd);

   $db_path = "20130100.DBF";

   $dbh = dbase_open($db_path, 0) or die("Error! Could not open dbase database file '$db_path'.");

   echo 'test';

?>

This should echo out 'test' but it's not doing it.

On google chrome I get the Inernal Server Error 500.

If anyone could help on this thanks!

EDIT:

Thanks to the answers bellow (@VolkerK) I did it! It was a stupid mistake.

When you install PHP extensions always check which php.ini is being used by your WebServer. I had two versions, and was updating one that is not used. You can see this using the PHP function:

PHP Info

<?php
   phpinfo();
?>
0

There are 0 best solutions below