- Tel:0912084206
<?php
$host = 'localhost:D:\LAP TRINH QLBH\SHOP 7.1\Programs-71\Database\SHOP.FDB';
$username = 'SYSDBA';
$password = 'masterkey';
$dbh = ibase_pconnect("localhost:D:\LAP TRINH QLBH\SHOP 7.1\Programs-71\Database\SHOP.FDB", "SYSDBA", "masterkey") or die('die message');
$q = ibase_query($dbh, "select * from TDONHANG");
while ($r = ibase_fetch_object($q)) {
$some_value = $r->NAME;
echo $some_value;
}
//ibase_free_result($sth);
ibase_close($dbh);
?>
chi tiếtD:\PHP Driver \fbclient.dll to your C:\windows\system32 directory and rename the file to gds32.dll ( If GDS32.dll not found )
and also you can try copy fbclient.dll to C:\xampp\apache\binphp_interbase.dll, php_interbase_nts.dll from your D:\PHP Driver to php\ext directory and to the C:\windows\system32 directory.libeay32.dll and ssleay32.dll from your C:\xampp directory to the C:\windows\system32 directory.php.ini, un-comment the lineextension=php_interbase.dllextension=php_interbase_nts.dllSYSDBA:masterkey.



1-First, you should download the suitable version for your system from here:
https://pecl.php.net/package/mcrypt/1.0.3/windows
Download file php_mcrypt-1.0.3-7.4-ts-vc15-x64 for xampp 7.4
2-Later, you should copy php_mcrypt.dll under ../xampp/php/ext/
3-you should enable extension like extension=mcrypt from xampp/php/php.ini
personly I modified the php.ini file and i add this lines :
extension=imap
extension=mcrypt
of course, these two lines have the 3 dll file saved on ../xampp/php/ext/ as :
php_imap.dll
php_mcrypt.dll
Những tin mới hơn
Những tin cũ hơn