Jump to content

Recommended Posts

Sorry to say it Mika, but if PHP is poorly configured <? ... your code ... ?> should work ;) You should favor <?php ?> tags over <? ?>

 

But other than that mika is completely right.

 

You simply put your php code inside an opening and a closing tag:

 

<html>
  <head>
    <title><?php echo $title; ?></title>
  </head>

  <body>
    <p><?php echo $something; ?></title>
  </body>

</html>

I would have to hate to differ on the above point it will not work until you have the following setting in apache

 

AddType application/x-httpd-php .html .php .htm

 

thats is the apache configration file... just by putting the <?php tag it won't work!!

Thanks Guys

 

I would have got back sooner but had to go out of town.

 

I know how to use PHP & HTML together, but always had to save as a FILENAME.PHP.  I will try your solutions.  I think that rajivgonsalves had what I had seen before.

 

Again Thanks for all the input.  I'll mark this as solved.

 

Dave

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.