Question:
How should I configure NetBeans to run and debug PHP code ? What is the procedure to configure XAMPP ?
anonymous
2011-08-25 07:02:35 UTC
I have the following installed in my pc :

1] NetBeans 7.0.1 [complete] + JDK 6
2] XAMPP 1.7.4

3] Internet Information Services [ISS]
(Windows Component)
4] Operating System : Windows XP
[Service Pack : 2]

5] Visual Studio 2005

------------------------------------------------------------

I want to learn PHP ,so I have tried to configure NetBeans so that I can write PHP pages in it and debug them. I don't know what is the right procedure to configure all these applications.

Please help.
Three answers:
Selvin
2011-08-25 07:07:18 UTC
download wamp

download komodo edit it is also ide

i learned using this

i created a website recently http://selvin.comuf.com
?
2011-08-25 14:04:52 UTC
You don't need any compiler for PHP. Just use Notepad++



You wont need ISS or Visual Studio either. That's more for using ASP.NET.



XAMPP, Notepad++ is all you need. Also, most browsers have tools now that can help you debug and find flaws in your code.



Other debugging add-on's you may be interested in:

http://www.firephp.org/

http://getfirebug.com/



Also don't forget to place all your files here when using xampp:

Applications/xampp/htdocs/mySiteFolder/ your files
Calvin K
2011-08-25 14:58:09 UTC
You don't need 3 and 5.

If you are not familiar with NetBeans, it could be overkill. Just like Terry said, use Notepad++. It will cover most of your needs. XAMPP is collection of programs like Apache webserver, PHP, MySQL, Perl, etc. So you don't need IIS as I said.



You don't need to configure anything for XAMPP. But for your convenience, you can tweak here and there. For example, you need to know how to configure Apache if you want to setup virtual hosts so you can run several websites from your computer.

http://www.tildemark.com/software/servers/setting-up-virtual-hosts-with-xampp-running-on-windows-xp.html



And Terry is right. You need to know where is root directory for the website. For me it's just too deep. So I changed it to my own like,

d:\vhosts\site1

d:\vhosts\site2

d:\vhosts\site3

http://www.apachefriends.org/f/viewtopic.php?t=4563



Since you are going to work on website, using Firefox with firebug, firephp extensions is good idea.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...