Page 1 of 1

why is my php not running?

PostPosted: 07. January 2015 23:42
by leothea
XAMPP version 5.6.3
OS Windows 7
path C:\xampp
If I type localhost, then click the sample on the left (under php) like CD Collection, it run well
then I try to make simple php like this in folder c:\xampp\htdocs\latihan\coba.php
Code: Select all
<?php
print ("Coba bikin php!");
?>

then I try to run it, in my firefox browser by typing : localhost/coba
all i got is :

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3


Why is that happen? I check my status : php, mysql all activated
Please help me, thank you

Re: why is my php not running?

PostPosted: 08. January 2015 00:22
by JJ_Tagy
Because that is the wrong address to use. If it does exist as you typed above, the actual address should be http://localhost/latihan/coba.php

Re: why is my php not running?

PostPosted: 08. January 2015 05:06
by leothea
thx JJ, now it's working