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

Questions about applications and software
Forum rules
Before you post please read this

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

Postby webtarget on Tue Nov 13, 2012 8:07 am

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.
Last edited by webtarget on Sat Dec 15, 2012 8:04 am, edited 1 time in total.
webtarget
Level 3
Level 3
 
Posts: 101
Joined: Sat Mar 24, 2012 10:20 am

Linux Mint is funded by ads and donations.
 

Re: How to write and test my php5 installation?

Postby catweazel on Wed Nov 14, 2012 3:37 pm

webtarget wrote:How do I write and test a php program?

Google > 165,000,000 results (0.24 seconds)
Mint Testing Team & Mint Donor #3606
KDE 4.12.0, custom preemptive kernel 3.12.5,
Intel i7 4770K @ 4.7GHz, 16GB 2666MHz XMP,
4 Samsung 840 PRO 512GB SSDs in RAID0,
6TB HW RAID10, dual 24" Acer X243H,
Gigabyte nVidia GTX 680 Super Overclock
User avatar
catweazel
Level 7
Level 7
 
Posts: 1656
Joined: Fri Oct 12, 2012 9:44 pm

Re: How to write and test my php5 installation?

Postby webtarget on Wed Nov 14, 2012 10:44 pm

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.
webtarget
Level 3
Level 3
 
Posts: 101
Joined: Sat Mar 24, 2012 10:20 am


Return to Software & Applications

Who is online

Users browsing this forum: Antban, richard-g8jvm and 19 guests