xampp

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

狂风中的少年 提交于 2019-11-26 18:54:55
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 ISO_8859-1 . I later found this out thanks to Sherm Pendleys answer. I had to go back and change my

Class 'COM' not found

倾然丶 夕夏残阳落幕 提交于 2019-11-26 18:54:46
I've been trying to open a word document in my script, but I get receiving the same error. Fatal error: Class 'COM' not found in /Applications/XAMPP/xamppfiles/htdocs/**/**.php on line 3 My code: <?php $word = new COM("word.application") or die("Unable to instantiate Word"); $word->Visible = 1; $word->Documents->Open("wordfile.docx"); $temp = $word->Dialogs->Item(228); // returns wdDialogToolsWordCount dialog object $temp->Execute(); //updates the word count $numwords = $temp->Words(); //gets the words out of it echo 'Word count = '.$numwords; $word->Quit(); ?> I've tried to change php.ini and

New xampp security concept: Access Forbidden Error 403 - Windows 7 - phpMyAdmin

我怕爱的太早我们不能终老 提交于 2019-11-26 18:39:01
I have downloaded and installed XAMPP 1.8.1 for Windows on Windows 7 Ultimate. I have set up XAMPP to run together with IIS as per these instructions All good so far, my PHP sites run locally and everything except phpMyAdmin is available from the XAMPP menu. However when I try to access phpMyAdmin I get this error: Access forbidden! New XAMPP security concept: Access to the requested directory is only available from the local network. This setting can be configured in the file "httpd-xampp.conf". I've found several answers via Google and some on this site. However, so far, none of the

how to create virtual host on XAMPP

落爺英雄遲暮 提交于 2019-11-26 18:22:47
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/CommunicationApp/public" SetEnv APPLICATION_ENV "development" <Directory "C:/xampp/htdocs/CommunicationApp/public"

Upgrading PHP in XAMPP for Windows?

一曲冷凌霜 提交于 2019-11-26 18:05:50
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. 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 them with newly installed version. You can go through the following link as it helped me, should work for

关于centOS安装配置xampp那点事

最后都变了- 提交于 2019-11-26 18:03:46
1.到官网下载centOS对应版本的xampp,应该是以tar.gz为后缀的 2.tar -zxf 下载的包 3.mv lampp /opt 4.service mysqld stop因xampp里自己带一个mysql,会和之前装的mysql端口冲突,故停掉单独装的mysql 5.关闭防火墙 service iptables stop 6./opt/lampp/lampp start 7.若报32位包与64位系统不匹配 yum -y install glibc*i686 若centos系统为64位系统,为了能运行32位的xampp需下载该兼容包 8./opt/lampp/lampp start 后报错libgcc_s.so.1 must be installed for pthread_cancel to work 9.进入phpadmin,若报错无法进入 则安装yum -y install libgcc yum -y install libgcc.i686 10.浏览器输入centos的ip地址,登录成功,出现xampp主界面 11.浏览器输入ip+/phpmyadmin 进入phpadmin,点击权限模块,添加新用户,记得将下面的权限选择全选,这一步是为xampp自带的mysql设置初始密码 12.部署php应用时比较简单,直接解压后放在lampp/hetdocs目录下即可

Use php to set cron jobs in Windows

梦想与她 提交于 2019-11-26 17:10:26
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 the “less than sign” ? php at the front, and the ? “greater than sign” at the end. (I can’t seem to

XAMPP/LAMPP到底在哪里启用APACHE2的rewrite

牧云@^-^@ 提交于 2019-11-26 17:09:36
XAMPP/LAMPP是一套我们在个人建站过程中非常便捷常用的集成环境。特别是对于学习PHP开发和建站非常便捷。 最近在使用CentOS7环境下的XAMPP过程中,遇到了一个问题,也就是apache2的rewrite模块没有被启用。 网上查了非常多资料,几乎都是千篇一律的如下回答: “ 修改apache配置文件httpd.conf 将#LoadModule rewrite_module modules/mod_rewrite.so这一行前面的#号去掉 改为LoadModule rewrite_module modules/mod_rewrite.so “ 令人困扰的是XAMPP实际将apache的配置文件做了集中管理,如果你去修改lampp/apache2/conf/httpd.conf,你会发现这个文件几乎就是个空的。 实际上XAMPPLAMPP的apache配置文件在你的XAMPP安装目录下的/etc/httpd.conf位置 要启用rewirte模组,需要修改如下部分: 搜索”LoadModule rewrite_module modules/mod_rewrite.so“。 确保这行配置处于启用状态。(即如果前面有#号,把#号去掉。#号是注释的意思) 搜索”DocumentRoot“,并在相关位置找到directory标签,这个是你的站点根目录位置。

Running Python scripts with Xampp

倾然丶 夕夏残阳落幕 提交于 2019-11-26 16:09:39
问题 I'm using python 2.7.13 At first the browser was showing the raw code. what I did: Edited httpd.conf AddHandler cgi-script .cgi .pl .asp .py At the top of all my scripts I added this: #!j:/Installeds/Python/python print "Content-type: text/html\n\n" Now it's giving me Internal Server Error (500) and I have no idea what else to try... First time with python. Obs: I think this may help> Apache>Error.log [cgi:error] [pid 6364:tid 1620] (9)Bad file descriptor: [client ::1:51083] AH01222: don't

XAMPP PORT 80 is Busy / EasyPHP error in Apache configuration file:

徘徊边缘 提交于 2019-11-26 16:08:55
问题 This problem has completely shot my entire day. I reformatted my old windows XP comp and tried installing XAMPP only to find that when i try to start Apache xampp claims port 80 is busy....WHAT DOES THAT EVEN MEAN? So I tried just uninstalling and moving to EasyPHP instead and when I installed that I get the error "error in Apache configuration file: the system cannot execute the specified program" No, I do not have Skype or any other programs really for that matter at this point, like I said