Jump to content


Photo

PHP Not Working - Displaying Code


  • Please log in to reply
2 replies to this topic

#1 misterfine

misterfine
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 14 March 2006 - 09:27 PM

Having some problems. Take a look.

www.burghardforcongress.org/index-3.php

This exact same file works fine on www.mike-fine.com/dbfc/index-3.php.

My initial thought is that the first server doesn't support PHP, but I'm running another script on it at www.burghardforcongress.org/index-6.html.

Any ideas why this is happening, and what I can do to fix it?

Thanks.

#2 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 14 March 2006 - 09:30 PM

welcome to the forums! hope you get lots of help here

my vote is still that your host doesn't have PHP installed, or your account doesn't support it. the second file you sent us to is an HTML file, not PHP, and unless you have your server set up to parse .html extensions as PHP, there is no way there is PHP code within that page being parsed. i would definitely recommend contacting your hosting provider and asking them to install the latest version of PHP, or at least ask them why you're not able to run scripts.
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#3 keeB

keeB
  • Staff Alumni
  • Advanced Member
  • 1,078 posts
  • LocationCalifornia

Posted 14 March 2006 - 09:34 PM

Agree with obsidian.. there's nothing PHP like about the .html page.

Come visit my site to see my latest projects
http://nick.stinemates.org/wordpress/





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users