discuzx2首页部分伪静态失效问题

discuzx2首页部分伪静态失效问题,很多是由于更换模版引起的,这当然也应该算discuz的一个小bug吧。

模块的模版是这样的:

[loop]
<li><strong><a href="/en/”{forumurl}”  {target}/" ><font style="”color:#920101;" size:12px;”>{forumname}</font> </a></strong>
<a title="”{title}”  href=”{url}”" {target}  >
<span twffan="”done”"> {title}</span><em>{author}</em></a>
</li>
[/loop]

版块链接forumurl可以静态化,但是帖子链接url 不能静态化,这样更改后就可以了。

<a title="”{title}”  href=”{url}”{target}  "> 改为:
<a href="/en/”{url}”{target}  /"> 或把title换到后面。

Fatal error: Maximum execution time of 30 seconds exceeded in

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\code\curl\work\work3.php on line 38

一看就是超时。懒人比较喜欢第二种解决方法。

看http://cn.php.net/manual/zh/info.configuration.php#ini.max-execution-time

就知道你的代码有多poor了。。。然后改了php.ini的话也不保证不出现类似错误,因为你的服务器也有超时,都设置为300如何?我在想。。。。重启apache,再试试。

max_execution_timeinteger

This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. This helps prevent poorly written scripts from tying up the server. The default setting is 30. When running PHP from the command line the default setting is 0.

The maximum execution time is not affected by system calls, stream operations etc. Please see the set_time_limit() function for more details.

You can not change this setting with ini_set() when running in 安全模式. The only workaround is to turn off safe mode or by changing the time limit in the php.ini.

Your web server can have other timeout configurations that may also interrupt PHP execution. Apache has a Timeout directive and IIS has a CGI timeout function. Both default to 300 seconds. See your web server documentation for specific details.

–方法一————————————————————
Fatal error: Maximum execution time of 30 seconds exceeded in

有时在运行大型网站或百万级的数据时优化得不好会出来如Fatal error: Maximum execution time of 30 seconds exceeded in错误提供了了。那么这是什么原因了呢,从英语意思我们看得出是超过的脚本的最大限制的运行时间了,php 系统默认是30秒哦,如果超过就会出现如下提示错误哦。
下面我们来看看如何解决运行时间过长的方法吧。
在php自带了一个set_time_limit($secon)函数
$cecon是一个以秒为单位的的int型数值

set_time_limit(30);

//意思就是过了30秒如何本程序执行完,就会出来错误提供了。如果想让页面永远不过期的话就设置参数为0就行了。
set_time_limit(0);

–方法二————————————————————
Fatal error: Maximum execution time of 30 seconds exceeded
出现这个错误如何解决 去哪里可以设置最大执行时间

解决办法:
修改php.ini,
把max_execution_time = 30(默认值)的值进行修改,这里的单位是秒 ,你可以根据自己的需要更改其数值,然后重起服务
或者在程序写。
set_time_limit(时间) //0为无限制

2012年Godaddy主机域名可用的优惠码集合

域名:
1美元购买常见域名优惠码:cooldomain (不支持支付宝)
购买.com域名赠送.info域名 优惠码:BOGODOM
注册、转移、续费.com域名优惠3美元优惠码:promo749
.com域名5.99美元购买优惠码:     cjc599v
.com域名7.49美元购买优惠码:     cjcMX749,cjc749fat,gppt02c749,cjc749dom,fan3
.com域名购买30%优惠码:     cjcMX749,cjc749fat,brit3
.org域名7.49美元购买优惠码: fan749
.NET域名7.49美元购买优惠码:  cjctld749,yes749
.biz域名7.49美元购买优惠码:     gam749
购买.co域名13.99美元优惠码:co1399
购买.co域名24.99美元优惠码:min2499
购买.co域优惠10%优惠码:min1
购买.me域名6.99美元优惠码:dotme
购买.xxx域名优惠20%优惠码:xxx20
购买域名优惠30%优惠码:gdz1222bv,fb30tld
新注册域名优惠35%优惠码:WALLET412_,fun3
隐私保护:
注册或转移任意域名 免费隐私保护优惠码:DBP17
主机/VPS/VDS/服务器:
新购买economy经济型虚拟主机3个月 每月仅需1.99美金优惠码:cjcfat199,cjc199hstg,ECON11
购买deluxe主机仅需经济型虚拟主机的价格 优惠码:promoeco
购买任意型号虚拟主机优惠20%优惠码:cjcshare20,cjcfat20h,cjcdoe20
购买任意型号VPS主机优惠20%优惠码:cjcvps20
购买任意型号独立服务器优惠20%优惠码:cjcded20
订单优惠:
购买任意非域名产品优惠10%优惠码:cjcsave10
购买任意产品优惠10%优惠码:cjcfat10,GDBBREN8,promo10,cjcdoe10,spn1,min1,queen1
购买任意产品优惠15%优惠码:gdbbc366
购买任意产品优惠20%优惠码:gd4920d60
购买任意产品优惠25%优惠码:save25y
购买任意产品优惠31%优惠码:gdz1229bw
购买任意订单超过30美金优惠5美金优惠码:cjcfat30 ,promo530,cjcdoe30,spn2,min2
购买任意订单超过30美金优惠15%优惠码:gdz1241c
购买任意订单超过40美金优惠5美金优惠码:yesoff
购买任意订单超过40美金优惠20%优惠码:bb5020d5,bb5020d90,bb5020d60
购买任意订单超过50美金优惠10美金优惠码:cjcfat50 ,cjcdoe50
购买任意订单超过50美金优惠15%优惠码:gdbb1729
购买任意订单超过65美金优惠25%优惠码:gdbbe729
购买任意订单超过70美金优惠15%优惠码:gdz1228dg 
购买任意订单超过75美金优惠15%优惠码:cjcfat75 ,promo15
购买任意订单超过75美金优惠25%优惠码:gdbb1901,fb3home25
购买任意订单超过90美金优惠20%优惠码:gdz1228cg 
购买任意订单超过100美金优惠30%优惠码:gdz1228bg 
购买任意订单超过300美金优惠25%优惠码:25-percent-off
购买SSL优惠50%优惠码:cjcssl12t2
12.99美元购买SSL优惠码:promossl

续费:
.com域名 7.49美元续费优惠码:OK412,ukps412
.net域名7.5 美元续费优惠码: gdbb776  
.org域名7.49美元续费优惠码:SCAM14     
.info域名6.99美元续费优惠码:GDBBREN8 
续费域名优惠35%优惠码:WALLET412_

en_USEnglish