Jump to content

Time stamp won't appear


Wolverine68

Recommended Posts

Hello,

 

I'm trying to display the date and time on a webpage.

 

Here's the code for the PHP file, named "time.php":

 

<html>

<body>

 

<?php

echo date("m/d/y : h:i:A", timestamp)

?>

 

</body>

</html>

*************************

I then tried to display it on my html page this way:

 

<p align="center"><?php include("cgi-bin\time.php") ?)</p>

 

*************************

 

It did not display.

 

Any suggestions?

 

Ken

 

Link to comment
Share on other sites

no if you have it saved as .php then it is right

 

instead try

 

<?php

$date = date("m/d/y : h:i:A", timestamp)

echo $date;

?>

 

That should be fine ;D

 

Just out of intrest what does timestamp after it so ?

 

~ Chocopi

Link to comment
Share on other sites

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.