English 中文(简体)
PHP 日期
原标题:PHP Date() is showing incorrect timezone

我的目前时间是9:05。 但是,如果是印刷的php,其日期就好像

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

页: 1 问题是什么。 我现在要用格林纳达来介绍一下。

而且

我想在我的索引网页上使用“html”一字眼显示一些动态内容。 我使用以下代码,但它没有显示我的动态内容。

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

任何解决办法?

最佳回答

考虑使用适合的时间区识别符号,供您当地时间使用。

至于你的第二个问题,也就是一个单独的问题,因此应该成为自己关于SO的问题。 我回答了日期问题,因为关于这个问题的标题指的是日期:

<代码><iframe>将装上每一页的<代码>src=。 直接产生的动态内容只能用作反馈。 将图像输出代码定在单独的文字中,并注明每个字面<iframe src=images。 php>

@UmmeHabiba Kanta 如果浏览器不支持信标,则作为超文本,供浏览器展示/投放,否则会受到浏览器的完全忽视。 如果你想在一栏中展示某种东西,你会把它放在另一个档案中,并使用诸如<代码><iframe src=“path/to/ that/file/you/just/created.php”>Sorry,如果影响是你的浏览器所支持的拖 t;iframe>或正如mario所说的那样,你可以在那里击退超声,这并不是一个错误的信息,而是一机的替代办法,例如含有内容的四。

问题回答

I had the same problem and the solution was to set the correct longitude and latitude in php.ini. my timezone is America/Los_angeles, so, in php.ini that section looks like this:

[Date] ; Defines the default timezone used by the date functions date.timezone = America/Los_Angeles

日期:default_latitude = 34.05222

页: 1

;date.sunrise_zenith = 90 5833

;date.sunset_zenith = 90.583333





相关问题
Mysql compaire two dates from datetime?

I was try to measure what is faster and what should be the best way to compare two dates, from datetime record in MySql db. There are several approaches how to grab a date from date time, but I was ...

iPhone Date Picker rolls over to 2010 on December 27th?

So I implemented a UIDatepicker in one of my applications for scheduling and autodialing teleconferences... everything is pretty much ready to go except, while testing I noticed that when the date ...

Convert date Python

I have MMDDYY dates, i.e. today is 111609 How do I convert this to 11/16/2009, in Python?

specifying date format when using $form->inputs() in CakePHP

I am wondering if there is a way to specify the date format in the forms created using CakePHP s $form->inputs(); Please note that this is not the individual $form->input() but instead $form->inputs() ...

NSDateFormat, super simple! Where am I screwing up?

Ok, this is really simple, maybe I m a getting a bit burnt out, but seems like it should work, Query XML feed, put out date string, format, display in a cell. The issue is I m a getting a NULL ...

sqlite writing a date into an email

I am exporting a date value from sqlite and placing it into an email. The date appears like this 279498721.322872 I am using Objective C in an Iphone App. Does anyone know how to make this export ...

热门标签