why is my php not running?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

why is my php not running?

Postby leothea » 07. January 2015 23:42

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
leothea
 
Posts: 2
Joined: 07. January 2015 18:52
Operating System: Windows 7

Re: why is my php not running?

Postby JJ_Tagy » 08. January 2015 00:22

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
JJ_Tagy
 
Posts: 678
Joined: 30. January 2012 13:44
Operating System: Windows 10 Pro x64

Re: why is my php not running?

Postby leothea » 08. January 2015 05:06

thx JJ, now it's working
leothea
 
Posts: 2
Joined: 07. January 2015 18:52
Operating System: Windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 52 guests