wamp

How to get CURL to work with PHP on Windows? (WAMP)

喜你入骨 提交于 2019-11-27 11:09:42
问题 Update : The problem appears to have been corrupt DLLs somewhere in my PHP installation, or possibly a bug in PHP 5.2.9 on Win2k. I downloaded the windows (binaries-only) distribution of PHP 5.2.10 from php.net and extracted that to my c:\PHP directory. After doing that, everything worked fine. Update2 : I undid everything that I tried earlier (everything from the bulleted list below), except that I left " extension=php_curl.dll " uncommented in my php.ini file. It turns out that is all you

WAMP - Remove localhost from project URL

*爱你&永不变心* 提交于 2019-11-27 11:03:56
The URLs of my projects in WAMP are not resolving as I'd expect. For example, I'd expect the project in the folder c:\wamp\www\project1 to have the URL http://project1/ , but it actually has the URL http://localhost/project1/ . This can cause problems when accessing server variables. How do I fix this? You can also look at this answer specially if you are now using WAMPServer 3 or greater, for a simple clikc and go way to create Virtual hosts. Actually this change was intended by the WAMPServer developers and for a good reason. There is a problem using the localhost/project1 url and the

#2006 MySQL Server has gone away error in Wamp

≡放荡痞女 提交于 2019-11-27 10:45:41
问题 Im using Wampserver version 2.0 . When i try to import a sql file, either through MySQL Query Browser or PHPMyAdmin,i get the following error. Error 2006: MySQL Server has gone away. The size of the file is 54,528 KB. In C:\wamp\bin\mysql\mysql5.1.30\my.ini , i set the max_allowed_packet to 100M in [mysqldump] and [wampmysqld]. I couldnt find wait_timeout variable in my.ini. Any way to fix this problem ?. For your reference, i have given below the contents of my.ini file. # Example MySQL

WAMP Server ERROR “Forbidden You don't have permission to access /phpmyadmin/ on this server.”

无人久伴 提交于 2019-11-27 10:08:10
问题 Hi Friends previously I am using XAMP Server but when I install joomla Templates it creates alots of error. Now I installed the WAMP, but the issues are: 1. I can access with 127.0.0.1, but I cant access with "localhost". 2 When i access phpmyadmin i get this error. Forbidden You don't have permission to access /phpmyadmin/ on this server. Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.4.5/" # to give access to phpmyadmin from outside # replace the lines # # Order Deny,Allow # Deny from all #

XAMPP / WAMP / whatever it is: Apache is running super slow [closed]

て烟熏妆下的殇ゞ 提交于 2019-11-27 09:16:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I've got my Windows PC (localhost) running XAMPP. It loads the pages sometimes really quick or sometimes really slow. So, I figured and searched and was recommended to get WAMP. I got that and installed it. Still, the pages load so damn slowly. No heavy CPU load or anything, all my ports are open too. Any ideas?

ERROR: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it

不想你离开。 提交于 2019-11-27 09:04:04
An error suddenly occurred while I was debugging my code. It has this series of errors regarding the connection to database. ERROR: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. ( ! ) Fatal error: Uncaught exception 'PDOException' with message ' in C:\wamp\www\web\main\users.php on line 15 ( ! ) PDOException: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. in C:\wamp\www\web\main\users.php on line 15 this is the code of where the error is pointing function __construct() { $this->con = new

Windows: XAMPP vs WampServer vs EasyPHP vs alternative [closed]

こ雲淡風輕ζ 提交于 2019-11-27 08:59:22
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . There was a similar question asked here three years ago, but I want to open it up further to include all possible Windows/Apache/MySQL

wamp在win7-64位下Unable to load dynamic library php_c

陌路散爱 提交于 2019-11-27 08:36:18
wamp在win7-64位下Unable to load dynamic library php_curl.dll 网上很多资料都类似这个: PHP在Windows下启动时提示Unable to load dynamic library php_curl.dll问题解决 作者:朦朧中的罪惡 发布于:2012-3-2 5:01 Friday 分类:疑难杂症 这个问题容易手配PHP的时候出现, 在php.ini中正确开启了curl扩展后, 在PHPINFO中却看不到相关的信息, 而Apache的日志会显示以下错误: PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\DEV\\ENV\\php-5.3.10\\ext\\php_curl.dll' - \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\r\n in Unknown on line 0 什么原因造成的这个问题呢? 答案是curl扩展对库文件有依赖, 就像在Linux下面编译PHP的时候也需要安装依赖的库一样. 在PHP官网手册的Windows下安装扩展库的页面上已经详细的标注了PHP所有的扩展文件依赖那些库. 其中特别提示了以下内容 有些扩展库需要额外的

how to test php email using WAMP

陌路散爱 提交于 2019-11-27 08:26:47
问题 I have wamp installed and am using it as my testing ground. I can't however test the PHP mail() function as it always falls over. Is this something that can be rectified? exact message: Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\functions.php on line 288 I've also checked my php.ini setup and it looks as follows: [mail function] ; For

Android connection to localhost

南笙酒味 提交于 2019-11-27 08:22:19
I'm trying to connect my android application to a local host url thanks to wamp server but it doesn't work. My goal here, is to fetch json data and parse these data. For my test, i'm using a device not the emulator and i use permission in AndroidManifest.xml : <uses-permission android:name="android.permission.INTERNET" /> My url looks like this : String url = "http://10.0.2.2:8080/tests/PhpProject1/connectionBDD.php"; i tried : http://localhost/ http://10.0.2.2:8080/ http://10.0.2.2/ But it never worked so far : java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 80):