Apache Friends Support Forum

It is currently 21. November 2009 11:15

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: PHP not working
PostPosted: 03. November 2009 22:43 
Offline

Joined: 03. November 2009 22:36
Posts: 1
I am new to PHP I have just downloaded XAMPP everything is working in the status and I can access the index page on localhost however PHP files are not working. I have put them in the htdocs folder. HTML pages read from here but not PHP. What am I doing wrong??
Many Thanks

Si


Top
 Profile  
 
 Post subject: Re: PHP not working
PostPosted: 04. November 2009 04:57 
Offline
User avatar

Joined: 25. April 2006 17:06
Posts: 3049
Location: Brisbane, Australia Chermside Court Motel and Herston Place Motel
How are you trying to read a php file?

Try typing in your browser http://localhost/yourfile.php

BTW what do you see when you type http://localhost and http://127.0.0.1 in your browser?

php coded files have to be parsed by the web server.


Top
 Profile  
 
 Post subject: Re: PHP not working
PostPosted: 04. November 2009 09:27 
Offline

Joined: 17. August 2009 13:05
Posts: 67
Maybe you use short_tags
Quote:
<?
/* PHP here */
?>


instead of
Quote:
<?php
/* PHP here */
?>

?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group