What properties do I need to apply to a PHP Web Project so when I select Release and Run it, it will work properly on a localhost server (IIS based)/ MySQL?

I've been going crazy for days trying to adjust these properties so I can get it to work, but it just won't. The code works fine in Netbeans but I need Visual Studio because this Web Project will be linked to a Silverlight project.

ANY help is greatly appreciated..

juanc says:

If you want to use IIS, go to the project properties->debug and choose IIS instead of the built-in web server.

Juan

ihs says:

juanc says:

Could you please make sure you run VS.Php as admin when you configure IIS?

ihs says:

Yep, running as admin...When I say "use vs default CGI" during IIS setup it gives error.....Then I say create new CGI, it does it fine, then I F5 the project, it gets stuck at "Connecting..." again...

Do I need to change something in IIS?

ihs says:

OK, IIS is setup and I can write simple code like- echo "this is php.." ; and that will run correctly but when I use a code with a MySQL connection, I keep getting this error:
http://i54.tinypic.com/2a4nx90.png

I enabled fastcgi handling in IIS manager thinking it'll fix it but no avail....This is seriously going to give me a heart attack soon...Thanks for your help so far and please continue to help.

(PS: the code with the mysql connection has been tested outside the vsPHP environment and it works)

juanc says:

You should use your PHP environment instead of using VS.Php one. All you need to do is enable Xdebug in your php.ini file and you'd be good to go.

zend_extension_ts="c:\program files (x86)\jcx.software\VS.Php\php 5.2\ext\php_xdebug.dll"

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
[XDebug]
xdebug.idekey = vsphp
xdebug.remote_enable = 1
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 7870
xdebug.remote_autostart = 1

Make sure that if you are using Php 5.3 runtime, change the path to the version of XDebug for Php 5.3

Juan

ihs says:

Thanks for all your help, you have been very supportive.

Turns out, something odd was happening with my PC (don't ask what...) and after a reformat (yes, that intense!), everything is working fine :)