RE: New To PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Are you opening the .php file directly with your browser or via a web server?
Does the web server have PHP support, and is it enabled?
(PHP is server side, not browser side).

Try creating the simple file on the webserver "phpinfo.php" containing just
-------------------------
<?php
phpinfo();
?> 
-------------------------

This should look something like 
http://66.225.219.162/~rvadmin/phpinfo.php
when opened via your web server.

David

>-- Original Message --
>Date: Tue, 20 Feb 2007 17:11:22 -0800 (PST)
>From: Larry Chu <larry.chu@xxxxxxxxxxxxx>
>To: php-general@xxxxxxxxxxxxx
>Subject:  New To PHP
>
>
>I am new to php and was trying to view the code below.  I do see in my browser
>the question that is being asked, but for some reason the answer is not
displayed.
> I am copying this from a book and am sure I have typed everything as it
>should be typed.  Can you please tell mw what might be wrong? 
>   
>  Thank you.
>   
>  <html>
><head><basefont face="Arial"></head>
><body>
><h2>Q: This Creature can change color to blend in with its surroundings.
>What is its name?</h2>
>  <?php
>// print output
>echo '<h2><i>A: Chameleon</i></h2>';
>?>
>  </body>
></html>
>   
>   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux