I'm a complete newbie to IntelliJ PHPStorm (big fan of IDEA though during my time with Java dev) and I'm rather new to PHP. So I've installed WAMPServer 2.2 and managed to get it configured to work properly. That's to say if I go to localhost:8080 on my browser it loads up WAMPServer.
Next I installed PHPStorm 3.0.1, created a new project, added a php file (index.php) and added the following code:
<html>
<head></head>
<body>
<h1>Index</h1><hr>
<?php
echo "Hello World!";
?>
</body>
</html>
Next I went to Settings > PHP and created a new Interpreter (clicked on "..." button and then the "+" button. I set the PHP Home path to the one in wamp (C:\wamp\bin\php\php5.3.9). After that I went to Settings > PHP > Servers and set the host to "localhost", port to "8080" and debugger to "Xdebug".
Next I right-clicked on hello.php and selected Run "hello.php". I was hoping it would open in the browser but it just showed the following in the Run pane of PHPStorm:
<html>
<head></head>
<body>
<h1>Index</h1><hr>
Hello World!</body>
</html>
So this brings me to question 1, how can I make it run on a browser?
When I right-clicked on the root folder of the project in the Project pane and hovered over the Run item in the menu, i noticed an item called Hello World on WAMPServer. After selecting this I made the following changes in Deployment under Run Configuration:
Connection
Type: Local or mounted folder
Folder: C:\wamp\www\HelloWorld
Web server root URL: [
localhost]
Mappings:
Local path: F:\PHP Projects\Hello World
Deployment path on server: /
Web path on server: Hello
And this time when I ran it I got the folllowing error:
Unable to attach test reporter to test framework or test framework quit unexpectedly
So question 2, why does that appear?
Also I made the following changes to php.ini:
www.cusabio.com/ELISA_Kit-84595/ il-6 elisa kit
zend_extension = c:\wamp\bin\php\php5.3.9\zend_ext\php_xdebug-2.1.2-5.3-vc9.dll
[xdebug]
xdebug.remote_enable = 1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = c:\wamp\tmp
Guys i'll appreciate all help I could get for this. I've been struggling with this for almost 2 day