wamp

What is the WebSocket error on status 200?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 02:56:49
问题 I have bought a WebSocket module and installed it on my WAMP environment. I also have a PHP script which generates the IPC file at the correct location and loops forever to listen to events. However, using this client-side code: var websocket = null; var connect = function() { var button = document.getElementById('connect-button'); // This function is a convenience function, to set the content // of the response display var setResponse = function(text) { var element = document.getElementById(

Unable to access MySQL from phpMyAdmin after setting root password in EasyPHP{WAMP}

余生长醉 提交于 2019-12-01 02:20:09
After successful setup on initial launch of MySQL, the page prompted me to set up ROOT password for security reasons. On setting the password, am no longer able to access MySQL. The error is: 1045 - Access denied for user 'root'@'localhost' (using password: NO) Looked up on the net and tried the following options in the config.inc.php from the phpmyadmin foler: Set the authentication to "http" so that it prompts to enter the username and password /* Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'http'; Set up the correct password in the config file $cfg['Servers'][$i]['password'] =

Pear error messages with PHP5.3.0

时光毁灭记忆、已成空白 提交于 2019-11-30 23:21:14
I get a LOT of errors when i Open up a newly installed PEAR package on a WAMP server. Here's the error messages. What can i do? Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 650 Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 697 Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 757 Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php

How to style 404 page in WAMP server

99封情书 提交于 2019-11-30 22:15:42
I am using a WAMP server and I need to change the "404 not found page" style using CSS. How can I do it? In your httpd.conf file, there will be an ErrorDocument section: # # Customizable error responses come in three flavors: # 1) plain text 2) local redirects 3) external redirects # # Some examples: #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http://www.example.com/subscription_info.html # After that, add this code: ErrorDocument 404 /error.html That will set the error page to a file

WAMP环境搭建

自闭症网瘾萝莉.ら 提交于 2019-11-30 22:09:26
Windows+Apache 搭建PHP开发环境 第一步:下载安装的文件 1. Apache 版本 httpd-2.2.21-win32-x86-no_ssl.msi 2. MySQL 版本 mysql-5.5.19-win32.msi 3. PHP 版本 php-5.3.5-Win32-VC6-x86.zip 4. phpMyadmin 版本 phpMyAdmin-3.4.9-all-languages.zip 提示: 1. 建议选择无SSL功能的Apache版本来完成开发,因此我们这里使用了Apache 2.2.21-win32-x86-no ssl.msi。 2. Windows下安装MySQL就选择.msi安装包格式,我们选择了mysql-5.5.19-win32.msi ,双击根据向导安装即可,简单方便。 3. PHP我们选择用Windows的.zip版本,php-5.3.5-Win32-VC6-x86.zip。从安全性和性能来说,都是zip版本的好,一般服务器也都是安装这个版本的。 不要下载NTS版本或VC9版本的,因为VC9是专门为IIS定制的,而VC6 是为Apache或其他WEB服务软件提供的。 4. phpMyAdmin是以PHP为基础的在线MySQL管理工具,在进行phpMyAdmin3 安装时需要的PHP环境至少为PHP5.2,MySQL5 以上的版本

dirname(__FILE__) on localhost

我与影子孤独终老i 提交于 2019-11-30 22:05:58
I'm using WAMP and have a development site in the www directory. I want to use dirname(__FILE__) to define the path to the server root. Currently I'm using a config file which contains: define('PATH', dirname(__FILE__)); I'm including the config file in in my header.php file like this: <?php require_once("config.php") ?> Then, on my sub pages I use the constant PATH to define the path by including header.php . <?php require_once("../inc/header.php"); ?> However, my links are coming out like this: <link rel="stylesheet" href="C:\wamp\www/css/style.css" /> What do I need to do to fix this? And

Can't select database - Wordpress

浪子不回头ぞ 提交于 2019-11-30 22:00:34
When I download a new wordpress from wordpress.org and then paste it into my www folder of WAMP, then create a new database in phpmyadmin, then go to localhost and click the wordpress site, it asks to create the config file, and enter the database details, and i do that correctly, but when I click submit, it says "Can’t select database". Any Idea why this is? I already have a local wordpress site that started saying error connecting to database. The config settings are all correct so i tried to download a fresh wordpress site and use it and I cannot even set up a fresh one. I have never

Update WAMP/Apache to use new cacert.pem

◇◆丶佛笑我妖孽 提交于 2019-11-30 21:29:40
Updated CA Cert: http://curl.haxx.se/ca/cacert.pem I know I've done this on another machine but I can't find the resources that I found before when I had to perform this. I want to update WAMP to use the .pem above, but I can't for the life of me remember where to do that with what command. If you're running at least php 5.3.7, you can put this in the ini at the end of your php.ini file: curl.cainfo=c:\path\to\cacert.pem You'll need to find the specific php.ini file for the version of php one you've selected to use. A comment in the doc's show this: http://php.net/manual/en/function.curl

Enable shell_exec() in wamp server

你说的曾经没有我的故事 提交于 2019-11-30 21:13:12
Recently I have passed one issue on wamp server..I need to use the shell_exec() function in PHP for running some external shell script (some checksum file) . But in my wamp server the function is disabled by default. I searched in google but I cant find out the solution. So I try to put that code in live server. But there's also the same problem. I contacted the technical person for that server but he said we cant enable shell_script. It is security violence. So only way is trying in wamp server... How to enable shell_exec() or exec() ..? The following line was the best I read to this problem:

Multiple PHP versions in Wamp under Windows 7 [closed]

北城以北 提交于 2019-11-30 19:27:47
I have already wamp under Windows 7 with php 5.3.8. I would like to install php5.3.19 and php.5.4.9 I have googled it and only instructions I found was this article I tried those instructions and it didn't work for me. I see the extra versions when right clicking on the taskbar wamp icon but after that what ever I select php5.3.8 is running. I have a phpinfo() script so to make sure. Any instructions on how to do this? I don't want to uninstall php 5.3.8 as its my server's version. Yes this process is rather easy. Go to their downloads section of WampServer homepage. There you will see an