sql 更改时间的年份_在您的网站/博客上自动更改版权年份

sql 更改时间的年份

After the new year, hardly anyone remembers to change the copyright year in their website’s footer. It is especially difficult to those people who have a lot of sites. So, I have decided to write this short article showing how to change the copyright © year in the site footer. In general, I have automated this process to make it easier for beginners and multiple website owners…

新年过后,几乎没人记得在网站的页脚中更改版权年度。 对于拥有很多站点的人来说尤其困难。 因此,我决定写这篇简短的文章,展示如何在网站页脚中更改版权©year 。 总的来说,我已经自动执行了此过程,以使初学者和多个网站所有者可以更轻松地进行…

For you to be able to easily manage the change in the copyright year on your website/blog, you must edit the file footer.php (File of your template) instead of the year, with a simple register php code:

为了能够轻松管理网站/博客上版权年度的更改,必须使用简单的注册php代码编辑footer.php文件(模板文件)而不是年份:

<? Php echo date (‘Y’);?>

<? PHP回显日期('Y');?>

For example, the copyright looks like this:

例如,版权如下:

Copyright © 2011 – <? Php echo date (‘Y’);?> eUKhost LTD. All rights reserved.

版权所有©2011 – <? PHP回显日期('Y');?> eUKhost LTD。 版权所有。

Doing this work once, you can forget all about changing the year every time on your site!

只需完成一次这项工作,您就可以忘记每次在网站上更改年份的一切!

cPanel Web Hosting

翻译自: https://www.eukhost.com/blog/webhosting/automatic-change-of-copyright-year-on-your-website-blog/

sql 更改时间的年份

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值