Re: PHP Coding [message #174588 is a reply to message #174585] |
Mon, 20 June 2011 18:08 |
Michael Fesser
Messages: 215 Registered: September 2010
Karma:
|
Senior Member |
|
|
.oO(Elicode)
> I run a personal home computer which is Windows 7 Home premium-64-bit
> processor. I am not sure if I have any server pre-installed already
Most likely not. And if there would be any, it would be IIS. But PHP on
an IIS … well, it's possible, but just doesn't feel right. ;-)
> but I want to start writing PHP codes for the first time(Learning it)
> then test them using my browsers. Do I need to do anything a part from
> installing an IDE and a text editor?
PHP needs an environment consisting of a webserver (usually Apache), the
interpreter itself and - optional - often a database (usually MySQL).
Combine that with the used operating system (usually Windows or Linux)
and you'll get the names you can search for to get all-in-one-packages
(excluding the OS, of course): WAMP or LAMP.
So if you don't want to install the required software by hand (not that
complicated, though), you could have a look at the XAMPP project for
example:
http://www.apachefriends.org/en/xampp-windows.html
Haven't used it myself, but heard good things about it.
* * *
An additional note about the PHP configuration: After you got your PHP
system up and running, check the php.ini and make sure these directives
are configured as follows:
error_reporting = E_ALL|E_STRICT
display_errors = yes
Especially the first one is important. By default PHP would hide
E_NOTICE errors (at least it did all the years, not sure if it's still
the case), but on a development system it's a must to show _all_ error
messages. And if you're about to learn PHP, it's even more important, so
you can avoid sloppy coding right from the beginning.
> Please help me with this.
> I use Microsoft's powerful WebMatrix text editor and I have Visual
> Studio IDE as well.
You can use whatever IDE you like. I prefer Eclipse/PDT, but that's
completely up to you.
Good luck and have fun.
HTH
Micha
|
|
|