xampp

UTF-8 encoded html pages show � (questions marks) instead of characters

此生再无相见时 提交于 2019-11-26 06:40:51
问题 I have the standard XAMPP installation on win7 (x64). Having had my share of encoding troubles in a past project where mysql encoding did not match with the php enconding which in turn sometimes output html in other encodings, I decided to consistently encode everything using utf-8. I\'m just getting started with the html markup and am allready experiencing troubles. My page is saved using utf-8 (no BOM, I think ) //update: It turns out this was NOT the case. The file was actually saved with

Upgrading PHP in XAMPP for Windows?

試著忘記壹切 提交于 2019-11-26 06:13:05
问题 I would like to know how you upgrade PHP in Xampp for Windows? I tried to download the latest PHP version from the main PHP site but when I check (phpinfo) I still get that the previous version is still in use. 回答1: Take a backup of your htdocs and data folder (subfolder of MySQL folder), reinstall upgraded version and replace those folders. Note: In case you have changed config files like PHP (php.ini), Apache (httpd.conf) or any other, please take back up of those files as well and replace

Use php to set cron jobs in Windows

和自甴很熟 提交于 2019-11-26 05:59:48
问题 I am looking for a way to set cron job using PHP. All I would like to do is run a PHP script at a specific time. The user first inputs a time in a script, according to the time specified the server will run the script. I am using windows 7 and xampp. What I have found is: Create a php file that calls the cron.php file: Using notepad (or whatever), paste the following into a new file: $data = file(“http://pearl.supplychain.com/cron.php”); you’ll need to put it inside the regular php tags, with

Access XAMPP Localhost from Internet

我怕爱的太早我们不能终老 提交于 2019-11-26 05:47:44
I have XAMPP installed in local laptop. And I have a almost static ip. I would like to give the ip to other to run it from their browser. I configured apache httpd-vhosts.conf to listen my ip address:80 and added the virtual server with the ip address and domain root to local httdocs directory and the servername as localhost. Apache doesn't start. what should I do to access my website from external computer. First, you need to configure your computer to get a static IP from your router. Instructions for how to do this can be found: here For example, let's say you picked the IP address 192.168

how to create virtual host on XAMPP

陌路散爱 提交于 2019-11-26 05:16:40
问题 I am sure this question is being asked many times but I am not encounter with a problem. I am using XAMPP where I configure Zend framework. XAMPP is running on port 8081 as 80 is being occupied by some Windows process I need to use virtual host for that I configure with following code in C:/xampp/apache/config/extra/httpd-vhosts.config (or C:/xampp/apache/conf/extra/httpd-vhosts.conf in newer releases). <VirtualHost *:80> ServerName comm-app.local DocumentRoot \"C:/xampp/htdocs

Maximum execution time in phpMyadmin

做~自己de王妃 提交于 2019-11-26 04:33:34
问题 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? 回答1: I have the same error, please go to xampp\phpMyAdmin

Enabling the OpenSSL in XAMPP

淺唱寂寞╮ 提交于 2019-11-26 03:56:25
问题 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

XAMPP permissions on Mac OS X?

纵饮孤独 提交于 2019-11-26 03:51:57
问题 I installed XAMPP 1.7.3 on Mac OS X 10.6.8 without changing any defaults. The webserver seems to work okay, but the permissions on the htdocs directory are set to \"Read only\" for everyone other than system. So (a) I have to provide root password every time I copy in web content, and, more problematic, (b) NetBeans says it can\'t create a target directory, and doesn\'t even generate the index.php file in the source directory. Do I just need to manually change permissions on the htdocs

PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

拜拜、爱过 提交于 2019-11-26 03:49:02
I am getting this error when trying to upload an import on WordPress on my XAMPP local dev environment: Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 I changed the upload_max_filesize from 2M to 1000M , but that didn't seem to do anything. Any ideas? Fluffeh 8388608 bytes is 8M, the default limit in PHP. Update your post_max_size in php.ini to a larger value. upload_max_filesize sets the max file size that a user can upload while post_max_size sets the maximum amount of data that can be sent via a POST in a form. So you can set upload_max

XAMPP - Port 80 in use by “Unable to open process” with PID 4! 12

蓝咒 提交于 2019-11-26 03:46:48
问题 I have been trying to figure out how to fix this problem for two days. I\'m new to this kind of thing so I would appreciate it if someone could tell me how to fix it. I\'ve tried deleting skype but that didn\'t work, I\'ve tried turning off the world wide web thing off, IIS off nothing seems to work. 12:51:22 PM [Apache] Problem detected! 12:51:22 PM [Apache] Port 80 in use by \"Unable to open process\" with PID 4! 12:51:22 PM [Apache] Apache WILL NOT start without the configured ports free!