xampp

Fatal error: Uncaught Error: Call to undefined function mysql_connect()

与世无争的帅哥 提交于 2019-11-26 00:16:46
问题 I am trying to do a simple connection with XAMPP and MySQL server, but whenever I try to enter data or connect to the database, I get this error. Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\\xampp\\htdocs\\register.php:22 Stack trace: #0 {main} thrown in C:\\xampp\\htdocs\\register.php on line 22 Example of line 22: $link = mysql_connect($mysql_hostname , $mysql_username); 回答1: mysql_* functions have been removed in PHP 7. You probably have PHP 7 in XAMPP.

How to change XAMPP apache server port?

牧云@^-^@ 提交于 2019-11-26 00:10:43
问题 This is my Apache httpd.conf settings : Listen 8012 ServerName localhost:8012 Every time I start Apache via XAMPP I see this message: Status Check OK Busy… Apache Started [Port 80] Anybody, please help me can I change any other settings ? 回答1: To answer the original question: To change the XAMPP Apache server port here the procedure : 1. Choose a free port number The default port used by Apache is 80 . Take a look to all your used ports with Netstat (integrated to XAMPP Control Panel). Then

How To Set Up Apache Virtual Hosts on XAMPP (Windows)

三世轮回 提交于 2019-11-25 23:46:40
问题 Where does this tag go? Where do I find the vhosts file? I couldn\'t find it in the documentation. <VirtualHost hostname:80> ... SetEnv NS_ENV variable_value ... </VirtualHost> 回答1: Full guideline to make VHOST (Virtual Host) on XAMPP/WAMP Note: To start with, the only difference for this guideline, between XAMPP and WAMP or other Apache packages for Windows, is question where those packages are installed on your computer. Introduction: vhost (virtual host) is a great solution if you intend

XAMPP - MySQL shutdown unexpectedly

好久不见. 提交于 2019-11-25 23:37:45
问题 When I open XAMPP and click start MySQL button and it gives me an error. I had started it just before, but now it isn\'t working. 12:19:12 PM [mysql] Attempting to start MySQL app... 12:19:12 PM [mysql] Status change detected: running 12:19:13 PM [mysql] Status change detected: stopped 12:19:13 PM [mysql] Error: MySQL shutdown unexpectedly. 12:19:13 PM [mysql] This may be due to a blocked port, missing dependencies, 12:19:13 PM [mysql] improper privileges, a crash, or a shutdown by another

Make XAMPP/Apache serve file outside of htdocs [closed]

℡╲_俬逩灬. 提交于 2019-11-25 23:07:23
Is it possible to configure xampp to serve up a file outside of the htdocs directory? For instance, say I have a file located as follows: C:\projects\transitCalculator\trunk\TransitCalculator.php and my xampp files are normally served out from: C:\xampp\htdocs\ (because that's the default configuration) Is there some way to make Apache recognize and serve up my TransitCalculator.php file without moving it under htdocs ? Preferably I'd like Apache to serve up/have access to the entire contents of the projects directory, and I don't want to move the projects directory under htdocs . edit: edited

PHP - SSL certificate error: unable to get local issuer certificate

落花浮王杯 提交于 2019-11-25 22:22:37
问题 I\'m running PHP Version 5.6.3 as part of XAMPP on Windows 7. When I try to use the Mandrill API, I\'m getting the following error: Uncaught exception \'Mandrill_HttpError\' with message \'API call to messages/send-template failed: SSL certificate problem: unable to get local issuer certificate\' I already tried everything I read on StackOverflow, including adding the following to the php.ini file: curl.cainfo = \"C:\\xampp\\php\\cacert.pem\" And ofcourse downloaded to that location the

Where does PHP&#39;s error log reside in XAMPP?

泪湿孤枕 提交于 2019-11-25 22:08:08
I've been using XAMPP for Windows. Where does PHP's error log reside in XAMPP? \xampp\apache\logs\error.log , where xampp is your installation folder. If you haven't changed the error_log setting in PHP (check with phpinfo() ), it will be logged to the Apache log. Hovercat I found it in: \xampp\php\logs\php_error_log boksa For mac users XAMPP Version 1.7.3 /Applications/XAMPP/xamppfiles/logs/error_log You can also open the xampp control panel and click on the Button "logs": This might be a simple case of the PHP error log being turned off . For any one searching for the php log file in XAMPP

How to configure XAMPP to send mail from localhost?

这一生的挚爱 提交于 2019-11-25 21:40:31
问题 I am trying to send mail from localhost. but i am unable to send the mail from localhost so can anybody tell me that how to reconfigure my xampp to send mail from localhost 回答1: You can send mail from localhost with sendmail package , sendmail package is inbuild in XAMPP. So if you are using XAMPP then you can easily send mail from localhost. for example you can configure C:\xampp\php\php.ini and c:\xampp\sendmail\sendmail.ini for gmail to send mail. in C:\xampp\php\php.ini find extension=php