xampp

php mail setup in xampp

时间秒杀一切 提交于 2019-11-26 16:08:45
I'm learning PHP and have installed Xampp on my computer. But I have a problem with the setup as the email option doesn't seem to be working. After doing some reading I think it has something to do with the below, found on my server in the php.ini file [mail function] ; For Win32 only. ; *hp://*php.net/smtp SMTP = localhost ; http://php.net/smtp-port smtp_port = 25 ; For Win32 only. ; http://php.net/sendmail-from ;sendmail_from = postmaster@localhost [Please note I have changed above hp:// from http:// because of a restriction on this website to post a hyperlink] Is there anything I need to

Maximum execution time in phpMyadmin

…衆ロ難τιáo~ 提交于 2019-11-26 15:39:38
When I try to execute (some) queries in phpMyadmin I get this error Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\phpmyadmin\libraries\dbi\mysql.dbi.lib.php on line 140 because I have a very large table (over 9 millions records) I have edited the file C:\xampp\php\php.ini and changed the value of "max execution time" from 60 to 1000 then restarts the PHP and still have the same error. Any solution? user1900623 I have the same error, please go to xampp\phpMyAdmin\libraries\config.default.php Look for : $cfg['ExecTimeLimit'] = 600; You can change '600' to any higher

mysql said: Cannot connect: invalid settings. xampp

耗尽温柔 提交于 2019-11-26 15:37:25
问题 I changed the root password to test and now I cannot login in phpMyAdmin page in XAMPP. I looked for help here and here which basically says changed config.inc.php file in XAMPP\PHPMYADMIN folder. /* Authentication type and info */ $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['compress'] = false; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'test'; <----

display data from SQL database into php/ html table [closed]

给你一囗甜甜゛ 提交于 2019-11-26 15:33:02
问题 OK I have a database on phpmyadmin (sql) and I want to display one of my tables into a table on HTML/PHP. I have searched online and can not implement this feature, so I'm wondering if someone could help me with the coding on this? database = 'hrmwaitrose' username = 'root' host = 'localhost' NO PW I would like to display the data from table name employee 回答1: You say you have a database on PhpMyAdmin, so you are using MySQL. PHP provides functions for connecting to a MySQL database.

Force browser to refresh css, javascript, etc

非 Y 不嫁゛ 提交于 2019-11-26 15:23:00
问题 I'm developing a website based on Wordpress source code through XAMPP. Sometimes I change the CSS code, scrips or something else and I notice my browser takes time to apply the modifications. This leads me to use multiple browsers to refresh one and if doesn't apply the new styles I try the second one and it's always this. There is some way of avoiding this problem? Sometimes I'm changing code without notice the previous modifications. 回答1: General solution Pressing Ctrl + F5 (or Ctrl + Shift

How do I use https (SSL) in XAMPP while using virtual hosts

喜欢而已 提交于 2019-11-26 15:10:58
问题 I am writing a php app on my local machine and would like to test to see if SSL is working. Bear with me because this is the first time I've ever used SSL. So far this is what I've done: Created a SSL Certificate. I followed the first part of this this tutorial to create the certificate. I imported the server.crt file into chrome. Removed the semicolon in front of ;extension=php_openssl.dll in php.ini (reference) Edited my httpd-vhosts.conf file based on this page. The relevant section of

Is there way to use two PHP versions in XAMPP?

坚强是说给别人听的谎言 提交于 2019-11-26 14:58:52
We are running XAMPP with PHP 7.0 because our new products requires PHP 7. But there are old projects which use functions like mysql_connect , etc. Those are removed in PHP 7.0. So, is there a way to easily change PHP versions in XAMPP? Note : Please don't suggest to upgrade old project to compatible with new versions because I am not in a position to do it because of that decisions I can't get as a developer (just an employee). You can download whatever versions of PHP you need and place them into their own directories, e.g. c:\php5\ c:\php7\ All you need to do is tell your web server (Apache

PHP not working in XAMPP

佐手、 提交于 2019-11-26 14:36:01
问题 I have a problem running PHP in XAMPP 1.7.7 for windows. I've installed XAMPP in a local server with IIS (changed the port to 81 in httpd.conf as well as other configuration) so far it works and I could connect to the xampp/index.php but coulnd't run any .php files in my htdocs (shows blank except for the html part). It works in my local (also have an IIS installed) but couldn't make it work in a server. Any help would be much appreciated. 回答1: If I got your question correctly, I think I had

PHP on Windows with XAMPP running 100 times too slow

狂风中的少年 提交于 2019-11-26 14:35:42
问题 PHP runs so slowly on my Windows desktop that phpMyAdmin takes minutes to open a database. Here’s a comparison of the time to run a simple PHP test program: Windows 8.1 machine running XAMPP: 3597 ms iPage shared hosting: 65 ms A2Hosting shared hosting: 26 ms Here’s the test program… <?php $rStartTime = microtime(true); $countTo = 100000; $a = 0; //$countTo = $countTo * 100; for ($x = 0; $x <= $countTo; $x++) { $a = sqrt(pow($x, 2)); } $rMs = floor((microtime(true) - $rStartTime) * 1000);

Enabling the OpenSSL in XAMPP

眉间皱痕 提交于 2019-11-26 14:28:38
I spent three hours but I did not find anything; I'm unable to connect to a SSL enabled server. I want to list what i did: First checked my PHP extensions directory was in order; extension wasn't there, php_openssl.dll Then I opened my php.ini file but I could not see any extension=php_openssl.dll line to uncomment. Also, I searched on Google and saw people with the same problem. http://www.apachefriends.org/f/viewtopic.php?p=162623 However, I also have OPENSSL_CONF C:/xampp/apache/bin/openssl.cnf ... openssl OpenSSL support enabled OpenSSL Library Version OpenSSL 0.9.8l 5 Nov 2009 OpenSSL