Jump to content

Getting PHP to print a page


guitarrick40

Recommended Posts

Hello.  I'm a newbie and am trying to learn the AMP trio.  Right now, I'm using a php5 manual.  I have Apache 2 running successfully.  I have written (copied) small program in PHP to test from the browser.  I keep getting a blank page.  When I view source I can see the code. (IE 7).  In Firefox, the source code prints as the page.  The test file is in my root Apache directory.  Here is the simple code which I've tried several tweeks to no avail:

 

<HTML>

<HEAD>

<TITLE>PHP Testing</TITLE>

</HEAD>

<BODY>

<?php

print "If this works, we <i>really</i> did it";

phpInfo();

php ?>

</BODY>

</HTML>

 

Thank you very much for any and all help

RG

Link to comment
https://forums.phpfreaks.com/topic/101491-getting-php-to-print-a-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.