Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

[PHP3] include statement doesn't work From: Emir Musabasic (emusabasic <email protected>)
Date: 05/15/00

Hi you all,

I'm new to PHP and I have succesfully installed
PHP-RC2, Win-Apache 1.3.12 and MySQL on WIn 98 SE.
Everything works, it was fairly easy to install
everything. Great instructions on php.net.
The problem that I'm having is something that I've not
seen any posts on, I don't seem to be able to get PHP
to work if it's in a HTML file. For Example, this
doesn't work, the only thing that I'm seeing is - PHP
date script (in the body). Here is the file date.html:

<HTML>
<HEAD>
<TITLE>PHP date script</TITLE>
</HEAD>
<BODY>
<CENTER>PHP date script</CENTER>

<?
/* the above "<?" signals that the PHP script has
begun */
        $today = date("Y-m-d");

        PRINT "<CENTER>Today is: $today.</CENTER>";

# the following "?>" closes the script
?>

</BODY>
</HTML>

Can you please help me with this one, like I said all
of this is new for me so I would really be gratefull
to you all.

Emir Musabasic.

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>