FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP Coding
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
PHP Coding [message #174585] Mon, 20 June 2011 16:55 Go to next message
Elicode is currently offline  Elicode
Messages: 1
Registered: June 2011
Karma: 0
Junior Member
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
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? Please help me with this.
I use Microsoft's powerful WebMatrix text editor and I have Visual
Studio IDE as well.

Thank you in advance.
Re: PHP Coding [message #174588 is a reply to message #174585] Mon, 20 June 2011 18:08 Go to previous messageGo to next message
Michael Fesser is currently offline  Michael Fesser
Messages: 215
Registered: September 2010
Karma: 0
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
Re: PHP Coding [message #174590 is a reply to message #174585] Mon, 20 June 2011 18:46 Go to previous message
Jeff North is currently offline  Jeff North
Messages: 58
Registered: November 2010
Karma: 0
Member
On Mon, 20 Jun 2011 09:55:29 -0700 (PDT), in comp.lang.php Elicode
<invincibleminds(at)yahoo(dot)com>
<e3831897-9b65-4440-9577-2ac22d353dc3(at)e35g2000yqc(dot)googlegroups(dot)com>
wrote:

> | 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
> | 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? Please help me with this.
> | I use Microsoft's powerful WebMatrix text editor and I have Visual
> | Studio IDE as well.
> |
> | Thank you in advance.

Having a quick look at MS site it appears that PHP is already
installed as it is part of WebMatrix.
"From ASP.NET to PHP, IIS 7.0 provides a powerful and flexible Web
server..."
Create a new file in WebMatrix with the extension of php i.e.
test1.php and enter the following:
<?php
echo "Hello World";
?>
Save the file and then run it. You should see a web page with the text
Hello World on it. If you don't then it might be a WebMatrix
configuration problem.

WebMatrix uses the SQL Server for its database so any tutorials that
you find you will need to convert the mySQL statements to the of SQL
Server PDO statements.

Stepping outside of this editor is another matter all together as Win7
Home doesn't come with IIS. It maybe part of WebMatrix and maybe
loaded and removed when you start/shutdown WebMatrix. You will need to
check your OS configuration for this information.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: Compiling PHP error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 21:36:30 GMT 2024

Total time taken to generate the page: 0.02221 seconds