Page 1 of 1

How to write and test my php5 installation? [SOLVED]

Posted: Tue Nov 13, 2012 8:07 am
by webtarget
Hi,

I've installed apache2, php5, phpmyadmin, and mysql5 via the software manager.

I tested apache2 by going to http://localhost and it resolved correctly.

How do I write and test a php program?

For example, let's say my program is:

<?php
phpinfo()
?>

Where do I put this to run and test it?


Thanks.

Re: How to write and test my php5 installation?

Posted: Wed Nov 14, 2012 3:37 pm
by catweazel
webtarget wrote:How do I write and test a php program?
Google > 165,000,000 results (0.24 seconds)

Re: How to write and test my php5 installation?

Posted: Wed Nov 14, 2012 10:44 pm
by webtarget
The quick answer is:
/var/www/

But, for more info, an excellent link is right here:
http://community.linuxmint.com/tutorial/view/486

It goes over a LAMP installation.

Also helped me fix my phpmyadmin.