Integrate Uniform Server with PHP Storm? - php

I am using Uniform Server, and I created the MySQL connection with PHPStorm
following this similar tutorial (tailored to XAMPP)
When I run my simple PHP page containing:
mysql_connect("blabla",...)
I get:
Fatal error: Call to undefined function mysql_connect()
What am I doing wrong?
Should I change any (restricted?) settings in MySQL?
I get the same error with every other MySQL functions.
When i test the MySQL connection in php storm it returns successful.

Related

After switching to AWS RDS Aurora(MySQL) fetch_row() not longer works in PHP

I am switching to AWS RDS Aurora(MySQL) for my database and I have got it all up and running. I imported all my tables and I am able to connect to it using Mysql Workbench.
After pointing my PHP Mysqli Connection I am getting an error
Fatal error: Uncaught Error: Call to a member function fetch_row() on boolean
I am not sure if this new version of MySQL doesn't like the syntax or am I missing something?

PHP - Interbase - Call to undefined function ibase_connect()

I'm trying to connect to a Firebase Database server but I'm getting:
PHP Fatal error: Uncaught Error: Call to undefined function ibase_connect()
It was working good, but today it started to throw that error. I've been for the last hours searching on the internet in every page, even in Portuguese, but nothing helps.
Almost in every post they are dealing with W/L/XAMPP, but that doesn't help.
I'm trying this on a valueserver shared host (I don't even know which company is that). PHP Version: 7.2.1
The file is running via cron job.
This is what I'd tried:
Verify in php.ini that interbase is uncommented.
Look for server errors (none).
Please I don't know what to do.

connecting PHP to MSSQL error

I'm currently trying to connect to a MSSQL database, but from what i've read so far, there are actually extensions and files that i need to download from microsoft itself which i've went and download it here.
https://www.microsoft.com/en-us/download/details.aspx?id=20098
The error that i'm receiving currently receiving is the following.
Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\index.php:5 Stack trace: #0 {main} thrown in C:\xampp\htdocs\index.php on line 5
As far as i understand, i know that i'm supposed to append some extensions into the php.ini located in my xampp\php\php.ini file. However, even after appending the file from microsoft, i still can't seem to get connected.
I heard some people mentioned that the php version that i'm using which is currently PHP Version 7.1.1 has some issues connecting back to MSSQL databases but i'm not entirely sure.
Would someone be able to point me to right direction? i've tried looking up and down appending different files into the extension but i still can't seem to do it.
Thank you very much in advance.
edit:
PHP 7 on IIS: Call_user_function could not be located
i've also visited this link, however i'm unsure whether if this is related to the issue I have as i'm on 7.1

"Fatal error: Call to undefined function" resulting in particular local server, but ran well in others'

I'm developing a PHP application which generating reports to PDF
Right now I'm facing some troubles
I'm working from my own computer with XAMPP Server and the code ran well
But when I copied the codes to my office's WAMP5 Version 1.6.5 Server I got errors
Fatal error: Call to undefined function array_fill_keys() in D:\wwwroot\tcpdf\include\tcpdf_fonts.php on line 1848
I went to that troubled line and removed it, but another Fatal error: Call to undefined function occured
Is there something wrong with my WAMP5 configuration?
Thanks
Your version of php is to old... as Royal Bg suspected.
Either upgrade to 1.6.6 for php 5.2. But if there is no reason to use such an old version switch to something less than 7 years old :)
see:
http://sourceforge.net/p/wampserver/news/?source=navbar

Moved servers, and now getting a Fatal error: Call to undefined function mysqli_connect()

I just switched from a dedicated server to a virtual server. I have a development site that I have that this function worked just fine, but now does not work:
$link = mysqli_connect($hostname_connAdmin, $username_connAdmin, $password_connAdmin, $database_connAdmin);
$adCats = mysqli_query($link, "call adTypes()");
And this is what I get in the browser now:
Fatal error: Call to undefined function mysqli_connect()
I am totally lost as to how to get this working. I have a page that does php_info at http://www.randykrohn.com/test.php
Here is the page in question (and every other page on the site, because the error is occurring on an included page).
mysqli extension is not loaded. Apparently, you have a compiled version of PHP (as opposed to a pre-compiled binary). You will need to recompile with mysqli support:
./configure --with-mysqli=/path/to/mysql_config ...
See this manual page for more information.

Categories