wamp

PHP session variables not being maintaned

旧巷老猫 提交于 2019-12-28 04:27:08
问题 I have an application that has been working with session variables no problem. I start the session before the headers on every page that uses when, it has been fine then it seems all of a sudden I'm getting an undefined index error when I navigate to a page other than the one that sets up the session variables. But only on some browsers . Sometimes sessions are maintained and sometimes they aren't. It seems that cookies aren't being stored some of the time. I've done checks using different

WAMP/XAMPP is responding very slow over localhost

霸气de小男生 提交于 2019-12-27 12:08:24
问题 I don't know what the problem is. WAMP was very slow, so I reformatted my computer and installed WAMP. Still, accessing localhost is very, very slow, and sometimes it doesn't even load at all. I even removed it and replaced it with XAMPP, but I still got the same result. What might possibly be the problem? Here's my current hosts file: 127.0.0.1 localhost 127.0.0.1 localhost It was perfectly working fine before, but I do not know what happened and why it has started acting strange lately,

如何修改WAMP中mysql默认空密码

纵饮孤独 提交于 2019-12-27 07:11:09
  WAMP安装好后,mysql密码是为空的,那么要如何修改呢?其实很简单,通过几条指令就行了,下面我就一步步来操作。   首先,通过WAMP打开mysql控制台。   提示输入密码,因为现在是空,所以直接按回车。   然后输入“ use mysql ”,意思是使用mysql这个数据库,提示“Database changed”就行。   然后输入要修改的密码的sql语句“ update user set password=PASSWORD('hooray') where user='root'; ”,注意,sql语句结尾的分号不能少,提示什么什么OK就行了。   最后输入“ flush privileges; ”,不输入这个的话,修改密码的操作不会生效的。   然后输入“ quit ”退出。   另外,很多人说通过phpmyadmin直接修改mysql表里的密码就行,原理上应该是没错,但是我发现修改后mysql整个库都不见了,害的我重装了WAMP,最终还是通过命令行去修改的。   大家可以摸索下,其实操作并不困难,因为我发现同事电脑上的mysql都是空密码,这以后要是配服务器,也弄个空密码还不完蛋。 来源: https://www.cnblogs.com/hooray/archive/2011/07/23/2114792.html

wamp / php error Fatal error: Class 'mysqli_connect' not found in C:\wamp\www\finalproject\Connections\Main_DB.php on line 9 [duplicate]

情到浓时终转凉″ 提交于 2019-12-25 19:04:08
问题 This question already has answers here : Class 'mysqli_connect' not found (2 answers) Closed 4 years ago . hi could someone assist me in this issue. this is my connection string: <?php #FileName = "Connection_php_mysql.htm" #Type = "MYSQL" #HTTP = "true" $hostname_Main_DB = "localhost"; $database_Main_DB = "mydb"; $username_Main_DB = "root"; $password_Main_DB = ""; $con = new mysqli_connect($hostname_Main_DB,$username_Main_DB. $password_Main_DB, $database_Main_DB) or die ( "Failed to connect

memcache not working on windows?

佐手、 提交于 2019-12-25 18:14:48
问题 i installed memcached and I also started the service by typing net start "memcached Server" and it said the service already started so i restarted apache and tried a couple of codes for using memcached: <?php //phpinfo(); $memcache = new Memcache; $memcache->connect("localhost",11211); //change if necessary $tempArray = array('fish', 'cow', 'demon'); $temp = serialize($testArray); $memcache->add("key", $temp, 60); print_r(unserialize($memcache->get("key"))); ?> but it gives an error: Fatal

MySQL service not starting on WAMP?

瘦欲@ 提交于 2019-12-25 16:46:44
问题 I donwloaded the latest version of WAMP which is 3.0.6 and I am at my wits end with this. The Apache services works 100% but the MySQL service on WAMP refuses to start and I have tried several solutions found on stackoverflow. Here is what I have tried: I tried changing the port from 3306 to 3307 (and others within the 330X range), and when I test the port, it just says Port 3307 is not found associated with TCP protocol . Even for the default 3306 port it says this I tried checking the MySQL

Netbeans 8.0.2 Debugger Breakpoints Not Working

隐身守侯 提交于 2019-12-25 14:24:19
问题 I just installed Netbeans for PHP (version 8.0.2). XDebug seemed to come with this installation. I'm trying to get the breakpoints and stepping through the code to work on my local machine, which is running WAMP, to work. I've never used debugging for PHP; only with Excel VBA, so I'm familiar with how breakpoints and stepping through code works. It seems that this feature comes with Netbeans/XDebug. But when I click on the debug button on the top middle of the screen, a bunch of buttons pop

possible to install and use multiple wamp stacks

烂漫一生 提交于 2019-12-25 14:22:11
问题 Is it possible to install and run multiple wamp stacks on the same machine, like wampserver2 and xammp and a separate php and apache installation that I installed myself? Should I expect any conflicts? and is there a way to avoid conflicts? 回答1: The biggest problem I see is to make sure each server listens on a different port. This can be achieved inside the Apache conf file. It is well documented and easy to locate the specific entry for port 回答2: You can simply use it on different drives, C

possible to install and use multiple wamp stacks

◇◆丶佛笑我妖孽 提交于 2019-12-25 14:21:31
问题 Is it possible to install and run multiple wamp stacks on the same machine, like wampserver2 and xammp and a separate php and apache installation that I installed myself? Should I expect any conflicts? and is there a way to avoid conflicts? 回答1: The biggest problem I see is to make sure each server listens on a different port. This can be achieved inside the Apache conf file. It is well documented and easy to locate the specific entry for port 回答2: You can simply use it on different drives, C

WAMP httpd.config redirect

人盡茶涼 提交于 2019-12-25 12:19:10
问题 I'm using wamp on localhost at c:\wamp\www\ . The project located under: c:\wamp\www\MyProj\public (root). In file1.php (located in root) I have a link to some fake url (/services/.....). I'm trying to redirect that url to other file service_router.php (in the same direction as file1.php). I'm doing that in httpd.config: <VirtualHost *:80> ServerName 127.0.0.1 DocumentRoot c:\wamp\www\ <Directory "c:\wamp\www\"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow