Jump to content

Recommended Posts

Posted

I know this is probably just a mistake on my part but I have SSI's working fine using php file's or includes.

 

I am going through some of the tutoriols on PHP and one of them is the current time test page. What I am getting back is the whole body of the page including the switch to PHP and all.

 

<p>This page was created at <b>

<?php echo date("h:i:s a", time()); ?>

</b> on the computer running PHP.</p>

 

The page is located at http://www.giftdealsgalore.com/timetest.php

 

It doesn't seem to be running through the app server or is there just something I am missing.

 

Thanks in advance

 

Mike

Posted

Thanks for taking a look. At this point it has me too. And when you look at it in veiw source it looks even more funny that may be a PHP thing. As many pages as I plan on having, database generated pages is the only way to go. I hate to think of having to manage it any other way.

 

Thanks for the look though

 

Mike

Posted

Im no php guy either but i found this at php.net, maybe it will help:

><?php
// Prints something like: Wednesday
echo date("l");

// Prints something like: Wednesday 15th of January 2003 05:51:38 AM
echo date("l dS of F Y h:i:s A");

// Prints: July 1, 2000 is on a Saturday
echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));
?>

Posted

Thanks All

 

I got it and it was my mistake. And you all helped me to figure it out. What I had done is to added the code to the design view and not to the code view so it was my fault and I feel stupid. It must be time to go to bed.

 

thanks for the help

 

Mike

Posted

Thanks All

 

I got it and it was my mistake. And you all helped me to figure it out. What I had done is to added the code to the design view and not to the code view so it was my fault and I feel stupid. It must be time to go to bed.

 

thanks for the help

 

Mike

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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