Interesting... PHP and HTML won't work on same page

[php]

<?php echo "The time is " . date("h:i:sa"); ?> [/php]

the website comes out BLANK…

Works fine for me. Outside of the HTML errors, you should be fine.

Do you mena I have to set it up like this ?

<?php echo "The time is " . date("h:i:sa"); ?>

What am i doing wrong here? [
php]

Hello world and <?php //echo "The time is " . date("h:i:sa"); ?>

Here is some more HTML

<?php //more php code ?> [/php]

What did you do?

It should just work

What kind of web server setup are you running this on? Based on your problems it seems you dont have (or at least dont use) PHP

I contact the provider they said they do provide php and told me to contact my programmer. ;D
So here the link…
http://nathankwebdesign.com/resume/helloworld.html

Normally web servers arent (and shouldnt) be set up to parse php in .html files. You need to change to .php

Now it is PHP

http://nathankwebdesign.com/resume/helloworld.php

Is there website that is CLEAR on how to use PHP.

Finally got it !!

Finally I just learn how to create a box with 1st name and last name and have the result come out with
Hello 1st name, last name… this is AWESOME!!

Sponsor our Newsletter | Privacy Policy | Terms of Service