I have installed mysql, php5 and apache on windows 10 and I downloaded phpMyAdmin but when I try to open it from localhost/phpmyadmin I get the error message:
Fatal error: Call to undefined function __() in C:\apache24\htdocs\phpmyadmin\libraries\sanitizing.lib.php on line 135
which I don't understand.
In one of other threads I found an information this may be caused by session.save_path being wrongly configured and when I open phpinfo() in the row with this variable there is no value in neither of the columns.
Apache is up and running and php is working and so is mysql. What could be the issue?
Thanks in advance for suggestions.
If you don't get your problem solved, you could try using this program for hosting your website on your localhost. I'm using it all day long and haven't got any problems with that, yet.
https://www.apachefriends.org/de/index.html
Related
I am new in both PHP and SQL Server. My initial problem was cmd console does not recognize sqlsrv_connect() function. After setting up the drivers. editing the php.ini and etc, I had manage to connect to my local sql server via running php script from the cmd console like below:
C:\xampp\htdocs>php GetContacts.php
However, upon setting up my php file in the Xampp root directory and trying to access it via localhost:81/getContacts.php , I got the error below:
Fatal error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\GetContacts.php on line 18
What's weird is that why does it work fine in cmd console but not in the browser? I tried several types of different browser but none of them work. I have been googling around for the past 2 days but no luck. Please advise
It turns out that restarting Xampp process solved the problem, silly me
So far I am using WAMP server with oracle successfully past one year,but unfortunately it stopped working and displaying an error like this Fatal error: Call to undefined function oci_connect(). I verified all DLL files and connection I dint do any modification for past one year and verified all related link Fatal error: Call to undefined function oci_connect().How can I fix this error.kind give some solution.
I have refer and verified lots of reference links. But everything is perfect. Past 1 year it was working perfectly, but today morning it will not work and shown the above error here, How can I solve this?
May be dll was crashed. Can you update the required dlls?
Otherwise reinstall the Oracle?
It will work..
Please check your PHP version first. it must be not latest one also your wamp server is around 2.2.
Please add require oracle extension from here.
Add
php_oci8_11g.dll
In php.ini and enable extension.
Its working for me. Still have issue let me know.
I use Mamp Pro 3. I upgraded Mamp's MySql to 5.6.24 using this script https://gist.github.com/tobi-pb/b9426db51f262d88515c.
After that I ran the Mamp Pro and MySql cannot be started. So I looked the mysql_error.log and found the following error:
2015-06-15 01:24:55 13139 [ERROR] /Applications/MAMP/Library/bin/mysqld: unknown variable 'table_cache=64'
2015-06-15 01:24:55 13139 [ERROR] Aborting
After I google about this error, I get to know that I have to delete 'table_cache=64' variable from my.cnf (MySql Configuration) file. So I deleted this variable from /Applications/MAMP/tmp/mysql/my.cnf file.
But the problem is that the same error still occurs when I start the MySql again. So I looked at the my.cnf file, 'table_cache=64' re-appears automatically again. I deleted it again but it automatically appeared again when I start the MySql.
So how should I solve this 'table_cache=64' problem?
As from MySQL 5.1.3 table_cache changed to table_open_cache. For details see https://dba.stackexchange.com/questions/104025/mysql-unknown-variable-table-cache-64
There may be people who also experience this problem like me. After 3 full days of trying with no success, I gave up to solve this problem with proper way.
I uninstall MAMP Pro 3 and reset Mysql root user's password and then I run my websites with MAMP free version. All the problems gone and Mysql version successfully upgraded.
I have PHP 5.4.30 installed and running well using the FastCGI module and IIS 8 (on Windows 8.1). I have MySQL installed and would like to manage it with phpMyAdmin, however, I get this error whenever I try to access the page:
Fatal error: Call to undefined function mb_detect_encoding() in C:\inetpub\wwwroot\phpmyadmin\libraries\php-gettext\gettext.inc on line 177
Many older threads I have seen suggest adding extensions to the php.ini, but in the later versions of php, the php.ini file becomes php.ini-production and php.ini-development. Whenever I try to modify either of these files or create a php.ini file, I get an error 500 when trying to visit other php pages. I have also seen many solutions related to Xampp / Apache, but none of them seem to work in IIS 8 (that I have found).
Thanks in advance for any suggestions!
You probably need the php_mbstring.dll file installed. You can find it on the PHP Windows Extensions page
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
PHP Fatal error: Call to undefined function mssql_connect()
I am developing a light-weight PHP application which accesses a remote SQL server db.
So far, I am out of luck in getting connection setup to SQL Server db through my PHP script.
I keep getting this error when I am trying to connect to sql DB:
Fatal error: Call to undefined function mssql_connect()
I get similar error when I try sqlsrv_connect($myServer, $myUser, $myPass) too
Here is what I have already tried:
I search for solution on web for hours, but nothing works.
I downloaded drivers from http://www.microsoft.com/en-us/download/details.aspx?id=20098
and unzipped them into php/ext folder
modified php.ini to add newly downloaded drivers lines:
extension=php_sqlsrv_54_ts.dll
extension=php_pdo_sqlsrv_54_ts.dll
[sqlsrv]
sqlsrv.LogSubsystems = 1
sqlsrv.LogSeverity = 1
sqlsrv.WarningReturnAsErrors = 0
Restarted the Apache server
But, see phpinfo() output it doesn't have sqlserv in it http://bit.ly/TkMC6V
Just so you know, I am developing this on my windows machine by installing EasyPHP. This website will be deployed on a Unix box. I tried to connect sql server through php on both Windows and Unix machine without any success.
Version info:
SQL Server 9.0.5000
PHP ver 5.4.6
Apache 2.4
I just dont get sqlsrv in my phpinfo() as mentioned in this question PHP Fatal error: Call to undefined function mssql_connect()
Is there a different way to install the drivers, other than what I have outlined above?
Let me know if you need more info.
Thanks!
I found the issue, by looking at phpInfo() output carefully
Loaded Configuration File C:\Program Files (x86)\EasyPHP-12.1\apache\php.ini
I was modifying php.ini in php directory.
But, I needed to modify the one in apache directory
I can delete this silly question.
But, I think it might be helpful for someone facing similar issue.
Jeez , I spent 4 hour on this stupid issue. :)