wamp

wamp中默认连接的是MariaDB or MySQL?

拟墨画扇 提交于 2019-12-16 03:42:58
今天发生了一个问题,我本意是连接MySQL 数据库的,但是mysqli_select_db就是选不上, 这个郁闷啊,搜遍了互联网啊,都没人告诉我为啥连不上MySQL数据库。 其实,我本地装了2个数据库,一个是MariaDB,一个是MySQL。这两个数据库可以同时安装, 但据说同时使用是很麻烦的。wamp默认安装的时候,规定了一个默认数据库,而这个数据库就是MariaDB!!! 在wamp上右键,然后选tools,就能看到 default DBMS啦。 然后选Invert default DBMS,就能换成MySQL了。 来源: CSDN 作者: 东京老树根 链接: https://blog.csdn.net/shi_ly/article/details/103513716

takes many refreshes before server side code is updated?

巧了我就是萌 提交于 2019-12-14 02:05:35
问题 I am using Bitnami WAMP Stack. Whenever I edit a php file in my IDE(I am using netbeans, have also tried phpstorm), it take 4-5 refreshes in the browser, before the page is updated. I first though that it was a cache issue in Google Chrome, but, I also tried Mozilla Firefox with history disabled. Still have the same problem. Any ideas, what could be causing this? P.S: this happens with server side code too.. eg. Controllers in Laravel. 回答1: Bitnami developer here, If you are developing on top

WampServer 2.2a-x32 .htaccess not working

我的未来我决定 提交于 2019-12-13 23:25:49
问题 i am using WampServer 2.2a-x32 and i am trying to use .htaccess file in my webroot folder. i have rewrite.php file and here is its code <h2 align=center> <?php // mod_rewrite Test Page if($_GET['link']==1){echo"You are not using mod_rewrite";} elseif($_GET['link']==2){echo"Congratulations!! You are using Apache mod_rewrite";} else{echo" mod_rewrte Test ";} ?> </h2> <hr> <head> </head> <body> <p><a href="rewrite.php?link=1">LINK1</a> = rewrite.php?link=1</p> <p><a href="link2.html">LINK2</a> =

How to solve Internal Server Error in Wamp

﹥>﹥吖頭↗ 提交于 2019-12-13 22:19:56
问题 I'm not able to launch localhost. When we click on wamp (green color ) -->localhost it shows the following: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Apache Error Log File

Redirecting localhost/xxx to localhost/xxx.php in WAMP

送分小仙女□ 提交于 2019-12-13 18:11:34
问题 In Ubuntu/Mac, going to, say, localhost/page automatically redirects to localhost/page.php. But this doesn't work in Windows. How do you make stuff like localhost/asdf redirect to localhost/asdf.php? 回答1: I am assuming that you know what an .htaccess file is. You can achieve this by two methods: Method 1: `#1- Loads the page asdf.php but displays asdf in the address bar RewriteBase /site RewriteRule ^([^/\.]+)?$ $1.php ` Method 2: `#2- Loads the page asdf.php and displays asdf.php in the

what is the difference of absolute path in html and php ?

血红的双手。 提交于 2019-12-13 16:27:23
问题 I am developing a website on php, I have installed wamp on my personal computer and my website files are in the www folder of wamp. now considering www as my root folder i have a template folder in the root folder and header.inc.html file in the template folder. when I try to include this header.inc.html file in any other php file using an absolute path include('/template/header.inc.html'); it gives me error "Failed to open stream: No such file or directory", but when I create a simple html

How to create a symbolic link in the www directory?

你。 提交于 2019-12-13 16:16:16
问题 I'm not even sure this is the right way to do this, but I am looking for some advice. I am developing on a Mac, but using VMWare to run this project in Windows. I am using WAMPserver 2.2A. My directories look like this: C:\Users\John Doe\Development\project-web\ C:\wamp\www\ What I would like, is to develop my project in project-web, but have a symlink in www so I can run it in the browser with apache. This is what I tried: mklink project "C:\Users\John Doe\Development\project-web\" I ran

How to config WAMP apache server to allow cross domain requests of ajax?

☆樱花仙子☆ 提交于 2019-12-13 16:14:29
问题 I am working on an sencha-touch-2.1.0-based application.The application deals with some cross-domain requests. We wrapped the js files with Android code with PHONEGAP to make the application run in a Android Phone. And i have installed the wamp server whose apache version is 2.4.4. I want to test the UI of the app in a Android Phone browser,so i put the src files of the sencha touch application in the www directory of the apache server of the WAMP. But i have got an request error in the

500 Internal Server Error with Wamp and Magento

回眸只為那壹抹淺笑 提交于 2019-12-13 12:12:39
问题 I am stuck at accessing the installation page, can't seem to get it to work, it always gives me a 500 Internal Server Error error. I have looked into some of the similar question solutions but they didn't work. 回答1: Following error you have given in your post's comment should lead you to the solution after a little search. The problem is Magento's .htaccess file consists <IfVersion> command. In order to use this feature mod_version module should have enabled on your Apache web server.

How to show “Your Virtual Hosts” list in wamp 2.5 homepage

℡╲_俬逩灬. 提交于 2019-12-13 09:03:30
问题 There are plenty of instruction on what settings to change to show the Virtual Hosts list in the wamp homepage, however upon inspecting index.php in C://wamp/www there appeared to be no code in here to show the Virtual Hosts no matter what the settings were elsewhere. So, I have added some code in myself to show this list and thought it might help others who want to do the same. This requires your httpd-vhosts.conf file to have entries such as the following <VirtualHost *:80> DocumentRoot "C: