wamp

PhpStorm $_POST always empty

痞子三分冷 提交于 2019-11-28 13:27:29
$_POST seems that does not work. I've installed PhpStorm 10.0.3, and using the WAMP server default php interpreter. in the index.php: <form method='post' action='a.php'> <input type='text' name='user_f'> <input type='submit' name='send' value='Send'> </form> In the a.php: var_dump($GLOBALS); when I type "asdf" in the form: array (size=9) 'HTTP_RAW_POST_DATA' => string 'user_f=asdf&send=Send' (length=22) '_GET' => array (size=0) empty '_POST' => array (size=0) empty '_COOKIE' => array (size=0) empty '_FILES' => array (size=0) empty '_ENV' => array (size=0) empty '_REQUEST' => array (size=0) $

Fatal error: Call to undefined function pg_connect

喜夏-厌秋 提交于 2019-11-28 12:17:51
I am using Windows 7, php 5.3.5 and WAMP server. I have two php files: trigger.php and background.php. I want to run background.php as a background process. I have to call this file from trigger.php. To accomplish this I used below method. I included following code in trigger.php to make background.php to process in background. $handle = popen('start /b C:\wamp\bin\php\php5.3.5\php.exe C:\wamp\www\email3.php','r'); in background.php I have the follwing code to connect to database. $conn_string = "host=localhost port=5432 dbname=tagbase user=postgres password=postgres"; now, on parsing this

Is it possible to have WAMP run httpd.exe as user [myself] instead of local SYSTEM?

南笙酒味 提交于 2019-11-28 12:16:26
I run a django application over apache with mod_wsgi , using WAMP. A certain URL allows me to stream the content of image files, the paths of which are stored in database. The files can be located whether on local machine or under network drive ( \\my\network\folder ). With the development server (manage.py runserver), I have no trouble at all reading and streaming the files. With WAMP, and with network drive files, I get a IOError : obviously because the httpd instance does not have read permission on said drive. In the task manager, I see that httpd.exe is run by SYSTEM . I would like to

Failed to create COM object 'X': Class not registered in another WAMP

为君一笑 提交于 2019-11-28 12:08:15
问题 There already is a working WAMP instance in a Windows 7 in which the line $x = new COM("X"); does instantiate a COM object. I was trying to locate a bug, and decided to use a fresh new WAMP installation on the same Windows 7 system as the previous one. In the new one, the same line produces: Failed to create COM object 'X': Class not registered ( Error code: 0x80040154 ) Now, since the first WAMP comes with it's own installation application (along with its DLL which holds the COM class) I can

php.ini - command line PHP and WAMP server access different files

流过昼夜 提交于 2019-11-28 11:51:26
I don't know if this is default behavior or not, but it seems weird to me. I installed WAMP server v2.2e from scratch, with PHP 5.4.3, on a windows 7 machine. I get these minor bugs that i don't really care about (when I activate an extension I sometimes need to exit WAMP and start it again to see the changes), but that's not why I'm here. When I click on the WAMP icon -> PHP -> php.ini, the file I open is the one in the apache directory ( <WAMP dir>\apache\apache2.4.2\bin\php.ini ) The output from the windows cmd command php -i | find /i "Configuration File" outputs <WAMP dir>bin\php\php5.4.3

How to install ImageMagick for WAMP 2.5

倾然丶 夕夏残阳落幕 提交于 2019-11-28 11:44:12
WAMP does not come with ImageMagick PHP extension installed, how do I install it manually? All the tutorials I have found seem outdated and too confusing. yodalr I got ImageMagick to work on WAMP 2.5 on Windows 8.1 . Here's what I did. Download the latest ImageMagick here: http://imagemagick.org/script/download.php#windows Install it here (It should be ticked by default, but make sure you tick the "Add application directory to your system path" when installing): C:\imagemagick Go to the latest folder created and download the latest zip file from here (with x64 or x86 matching your ImageMagick

why is php generating the same session ids everytime in test environment (WAMP)?

泄露秘密 提交于 2019-11-28 11:39:52
i've configured wamp in my system, and am doing the development cum testing in this local environment. i was working on the logout functionality, and happened to notice that the session ids being generated are same within the browser. Eg - chrome always generates session id = abc, for all users even after logging out and logging in; IE always generates session id = xyz, for all users. Is this an issue with wamp/ my test environment? please find below my logout php script - <?php session_start(); $sessionid = session_id(); echo $sessionid; session_unset(); session_destroy(); ?> You probably

WAMP server shows a blank page

半城伤御伤魂 提交于 2019-11-28 10:10:11
MY WAMP server has broken down. http://localhost shows a blank page. any help please? 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 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 running on port 80. I followed the advice at http://ye5.blogspot.com/2011/01/wamp-server-localhost-shows-blank-page

How to access my localhost from another PC in LAN?

我是研究僧i 提交于 2019-11-28 09:09:04
I am using WAMP server to run my website. I am using Windows 7. I created LAN between 2 PC and I want to access my localhost from the second PC. Note that I am not using Internet connection so I couldn't use IP address. Please, give me your suggestion. Abbas Uddin You have to edit httpd.conf and find this line: Listen 127.0.0.1:80 Then write down your desired IP you set for LAN. Don't use automatic IP. e.g.: Listen 192.168.137.1:80 I used 192.167.137.1 as my LAN IP of Windows 7. Restart Apache and enjoy sharing. pradeep yadav IP can be any LAN or WAN IP address. But you'll want to set your

Content-type not working in PHP

Deadly 提交于 2019-11-28 08:40:44
I have some issues with a PHP file that is not working properly. The Content-type does not get recieved by any browser at all. Firebug interprets the file as text/html instead of css. Here's the file : <?php header('Content-Type: text/css; charset=UTF-8'); error_reporting(E_ALL | E_STRICT); ini_set('display_errors', 'On'); /* CSS goes on from here */ I tested to put a row with echo 'TEST'; before the header line, and was expecting to see the classic "headers already sent" error, but nothing appears! Normal .css-files are working like a charm however. What can I do to sort this out? UPDATE: Did