Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7063741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:44:58+00:00 2026-05-28T04:44:58+00:00

My current time is 9:05 am. But if i print php date function like

  • 0

My current time is 9:05 am. But if i print php date function like

<?
php echo date("h:m:s");
?>

it’s show 4:01 pm. What’s the issue. I want to show my current time with php.

And

I want to use an html iframe in my index page to show some dynamic content. I use following code, but it doesn’t show my dynamic content.

<div id="eaturlink">
<iframe src="index.php" width="620">
<?php

$linkimgpath = 'secure/content/featurelink';

$sql_k = mysql_query("SELECT * FROM feature_detail");
while ($link = mysql_fetch_assoc($sql_k))
{
$linkname = $link['linkname'];
$linkimg = $link['img_name'];
$linktext = $link['linkurl'];
?>
<div class="linkimg">

<?php

echo "<a href='$linktext' target='_blank'>$linkname</a>";
echo "<br/>";
echo '<img src="' . $linkimgpath . '/' . $linkimg . '" width="125" height="85" alt="No 
Image" />  ';

?>

</div>
<?php
}   
?>
</iframe>   
</div>

Any solutions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:44:59+00:00Added an answer on May 28, 2026 at 4:44 am

    Consider using date_default_timezone_set(); and passing in the appropriate timezone identifier for your local timezone.

    As for your second question, that is.. well, a separate question and therefore should be its own question on SO. I answered the date question as the title on this question was referring to date 🙂

    The <iframe> will load whatever page you specify per src=. The dynamic content you output directly there will only be used as fallback. Put your image output code in a separate script, and reference that per <iframe src=images.php>.

    @UmmeHabibaKanta the text/data inbetween and is used as HTML to be displayed/rendered by the browser in the event that the browser does not support the iframe tag, otherwise it’s completely ignored by the browser. If you want to display something in an iframe, you would put it on an another file and use something like <iframe src="path/to/that/file/you/just/created.php">Sorry, iframes aren't supported by your browser</iframe> — or as mario said you can put fallback HTML in there, which is, instead of an error message, an alternative to the iframe such as a div with content

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to add the current date/time to an XML document So i use
Trying to display current time with PHP (using this ): $date = date('m/d/Y h:i:s
I use next code to print current time Calendar cal = Calendar.getInstance(); System.out.println(cal.getTime()); I
I use register_shutdown_function() to let PHP call a function at any time my script
I need to compair current time with two time rang, its work fine in
How can I get current time (I need hours, minutes, seconds) crossplatform in c++?
How do I get the current time in Python?
How might I get the current time in milliseconds in C? I am doing
Whats the best way to get the current time (HH:MM:SS) using Objective-C. I would
How can I return the current time of the local machine?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.