I'm trying to connect to an Oracle database (11g XE) on my x64 machine. I have XAMPP with PHP 7.2 x86, but when running my script it shows me this error:
Fatal error: Uncaught Error: Call to undefined function oci_connect() in C:\xampp\htdocs\pruebaCustom\index.php:19 Stack trace: #0 {main} thrown in C:\xampp\htdocs\pruebaCustom\index.php on line 19
In a 32-byte machine it works correctly but not in the 64-bit machine, so understanding the problem. Can someone tell me if I should do a different process?
Related
Fatal error: Uncaught Error: Call to undefined function odbc_connect() in C:\xampp\htdocs\simrs\tes.php:8 Stack trace: #0 {main} thrown in C:\xampp\htdocs\simrs\tes.php on line 8
I tried to write this
$server="myservername";
$username="myusername";
$password="mypassword";
$db="mydb";
$connection_string = "DRIVER={ODBC DRIVER 17 for SQL Server};SERVER=$server;PORT:myPort;DATABASE=$db";
$odbcConn = odbc_connect($connection_string,$username,$password); `
But that always fatal error.
I already installed ODBC driver. I don't actually know what caused this.
Trying to connect to oracle 19c from php the server is not on the same machine as the php, I have so far installed instant client 19_15, added it as a environment variable, and then in the php.ini file I have taken off the semi colon for both the files extension=oci8_19 and extension=pdo_oci not sure what else to do to make the php to connect to the oracle db.
some error messages I have been getting are: PDO: connection failed: could not find driver
and from oci_connect: Fatal error: Uncaught Error: Call to undefined function oci_connect() in Stack trace: #0 {main} thrown in on line 7
p.s. architecture is x64, php version is 8.1.8 and using apache24 lounge
I'm trying to enable SQL Drivers.
I'm using xamp my version of php is 7.1.10 and Architecture x86
I installed the version 4 of SQL Drivers, and moved the files to the extesions folder and I have this in the php.ini
extesion=php_sqlsrv_7_nts_x86.dll
extesion=php_pdo_sqlsrv_7_nts_x86.dll
And I'm getting this error
Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in
C:\xampp\htdocs\diplomado\conection.php:4 Stack trace: #0
C:\xampp\htdocs\diplomado\index.php(17): include() #1 {main} thrown in
C:\xampp\htdocs\diplomado\conection.php on line 4
and this is my php file
$serverName= "localhost";
$conectionInfo = array("DataBase"=>"prueba","UID"=>"Root", "UPW"=>"");
$con = sqlsrv_connect($servername,$conectionInfo);
if ($con){
echo "Succesful";
}else{
echo "failed";
}
?>
I am starting doing a simple project using ZKTeco and its SDK for PHP or online SDK to connect the data from biometrics to our database. I try to use then https://github.com/dnaextrim/php_zklib because almost of the discussion from googling link to this.
Now I got an error:
> Fatal error: Uncaught Error: Call to undefined function
> socket_create() in C:\xampp\htdocs\php_zklib-master\zklib\zklib.php:16
> Stack trace: #0 C:\xampp\htdocs\php_zklib-master\zktest.php(10):
> ZKLib->__construct('192.168.5.164', 4370) #1 {main} thrown in
> C:\xampp\htdocs\php_zklib-master\zklib\zklib.php on line 16
What is the following cause of this error and what is the following solution about this?
if you are using xampp enable php_sockets.dll by removing ';' from ;extension=php_sockets.dll in php.ini file and restart the xampp.
if you are working in server contact to your server provider.
I got this error whenever I open my project. This project can run on my other laptop which is using XAMPP.
I want to use IIS 6.0 on my Windows 7 Pro.
I already installed IIS, Setting environment variable, remove semicolon on my php.ini-development, add handler. So confusing and still not get the right answer.
Fatal error: Uncaught Error: Class 'mysqli' not found in C:\inetpub\wwwroot\SIA-2\general\function.php:8 Stack trace: #0 C:\inetpub\wwwroot\SIA-2\general\initial.php(10): open_connection() #1 C:\inetpub\wwwroot\SIA-2\index.php(41): include_once('C:\inetpub\wwwr...') #2 {main} thrown in C:\inetpub\wwwroot\SIA-2\general\function.php on line 8
https://drive.google.com/folderview?id=0B66OIQlx1mwzc0JVbVhjX0U0aDQ&usp=sharing
please do not give me any documentation. i'm sick of it. thank you.