wamp

“Premature end of data” error with PHP

淺唱寂寞╮ 提交于 2019-12-18 04:17:10
问题 I've just started using WAMP for a PHP project and I get the next errors related with this line of code: $link=mysql_connect("localhost","myuser","mypas"); I read that I had to do the SET PASSWORD again with my old password, but it still does not work after restarting all services. I am using PHP 5.3.4 and MySQL 5.1.53 Any help? THANKS Warning: mysql_connect() [function.mysql-connect]: Premature end of data (mysqlnd_wireprotocol.c:554) in C:\wamp\www\CDE\includes\baseDatos.php on line 5 Call

WampServer : Your Port 80 is actually used by Microsoft-HTTPAPI/2.0

懵懂的女人 提交于 2019-12-18 03:39:57
问题 I've uninstalled my WampServer 2.5 and installed version 3.0 But apache service isn't running and tray icon is orange... Clicking on test port 80 gave me the following cmd output : ***** Test which uses port 80 ***** ===== Tested by command netstat filtered on port 80 ===== Test for TCP Your port 80 is used by a processus with PID = 4 The processus of PID 4 is 'System' Session: Services The service of PID 4 for 'System' is 'N/A' *** ERROR *** This service IS NOT from Wampserver - Should be:

Unable to enable PHP LDAP even though I have edited php.ini and php_ldap.dll is in the right place?

a 夏天 提交于 2019-12-17 22:34:12
问题 I've been working with a WAMP install for quite a while now with LDAP enabled and everything is going smoothly. Now though I have to set up another machine and for some reason I can't enable LDAP. I checked the output of phpinfo() and the LDAP section isn't there. I edited php.ini to uncomment the line: extension = php_ldap.dll I also checked the filepath being searched for extensions and the file php_ldap.dll is in the right place. I'm positive I'm editing the right php.ini file since I

how to get ip behind NAT using php?

老子叫甜甜 提交于 2019-12-17 21:59:48
问题 Is it possible to retrieve IP behind NAT in PHP? I am using $_SERVER["REMOTE_ADDR"] for getting IP address of the client. It's not giving exact IP address of the client which is in behind NAT. 回答1: Nope, not possible. NAT means Network Address Translation - the IP address of the packets is rewritten at the NAT device, so the public IP address is the only one, as far as your server knows. However, you can employ some tricks - such as checking for the internal IP address using a Java Applet.

Which PHP Ini file does my WAMP webpage uses?

扶醉桌前 提交于 2019-12-17 20:49:32
问题 I just ran a search for PHP.ini file in my "C:\WAMP" server and gosh! there's so many PHP.ini files! How do you know which of the ini files are being used by the webpage? Thanks you for any response 回答1: you can find it in phpinfo() output create file info.php <?php phpinfo(); and call it from web server 来源: https://stackoverflow.com/questions/10528212/which-php-ini-file-does-my-wamp-webpage-uses

Call to undefined function pg_connect() - Wamp

六眼飞鱼酱① 提交于 2019-12-17 20:44:15
问题 I want to connect to PostgreSQL, Im using wamp 64 bit. I have here Apache 2.4.2 PHP 5.4.3 Mysql 5.5.24 I also uncomment in php.ini the php_pgsql and php_pdo_pgsql. but i can't connect , It gives me error like this : Error suppression ignored for ( ! ) Fatal error: Call to undefined function pg_connect() Is there anybody know the solution regarding on my problem. I just need it badly. Thank you . 回答1: Open php.ini Find ;extension=php_pgsql.dll and remove the semicolon at the beginning Find

WAMP server shows a blank page

房东的猫 提交于 2019-12-17 19:36:22
问题 MY WAMP server has broken down. http://localhost shows a blank page. any help please? 回答1: I had to use system recover at the end and the problem was at the skype, i tried to uncheck the "use port 80" box under skypes options but the only way to do it properly is to recover ur pc at an earlier date. Mind you becareful and make a copy of your data first 回答2: I had the same problem. It was skype, I had already unchecked the "use port 80" box under skype options but apparently skype was still

Where to find php_imagick.dll for php 5.5.12 for Windows wampserver 2.5?

三世轮回 提交于 2019-12-17 17:59:15
问题 I am using Wampserver 2.5 on my Windows 7 (32 bit) and my PHP version is 5.5.12 . I am unable to use IMAGICK . I have installed IMAGICK version 6.8.9 on my system and it works like charm on the command line. Further, I have followed instructions to enable it on my wampserver. Inserted " SetEnv MAGICK_HOME C:/imagemagick " in httpd.conf at Appache. Downloaded php_imagick-3.1.2-5.5-ts-vc11-x86.zip Copied and pasted the php_imagick.dll from zip to php.ini at Appache. While running a simple

cURL error 60: SSL certificate prblm: unable to get local issuer certificate [duplicate]

走远了吗. 提交于 2019-12-17 17:35:07
问题 This question already has answers here : cURL error 60: SSL certificate: unable to get local issuer certificate (17 answers) Closed last year . I want to collect a list of videos uploaded on a specific channel using the YouTube data API. However, before implementing online I am trying to get my code running on an offline environment (WAMPserver, PHP 5.5.12, Apache 2.4.9). I am using the following code: require_once 'google-api-php-client-2.0.0-RC5/vendor/autoload.php'; $client = new Google

How to Import 1GB .sql file to WAMP/phpmyadmin

谁都会走 提交于 2019-12-17 17:27:20
问题 I want to import over 1GB size sql file to MySQL database in localhost WAMP/phpmyadmin . But phpmyadmin UI doesn't allow to import such big file. What are the possible ways to do that such as any SQL query to import .sql file ? Thanks 回答1: I suspect you will be able to import 1 GB file through phpmyadmin But you can try by increasing the following value in php.ini and restart the wamp. post_max_size=1280M upload_max_filesize=1280M max_execution_time = 300 //increase time as per your server