English 中文(简体)
• 在PHP5.3和Appa 2中寻找建议,以更好地排除故障
原标题:Looking for recommendations to better troubleshoot disallowed short tag in PHP 5.3 with Apache 2

I m从较早的版本中将数千个网页的庞大代码基提升到第5.3号标准。 我们放弃了使用短tag(配对、百分率和斜度;......)并将他们放到Sand.ini,并做出了合理的努力,在法典中找到任何东西,取代。

然而, 当有人制造一些带有或短tag的标签或某些遗留法,我们仍错过,阿帕帕奇则退回一份有200个地位的空白文件。 问题在于,PHP的确没有犯错误(显然因为没有打上 par子),而Pharma看来也没有错。 如果不对所有页页进行直观检查,就会产生检测问题(一个简单的拖网器对200只卢尔返回感到高兴)。

任何人都知道,当奥帕帕奇或PHP在某个地点被拖网时击中短片时,会犯错吗?

最佳回答

确实可以找到一种办法,使PHP或Pharma能够发出与有短信的文件有关的某种警告,但你可以 set忙地在你的服务器网页上查找所有文件,例如发出带有结果的电子邮件,从而至少用短信标标明文件:

www.un.org/spanish/ecosoc 简单例:<_up>cron work

<?php

// run grep command for  <?  that don t have an immediately p
$found = shell_exec( grep -rn "<?[^p]" * );

if ($found!=  ) {
  // email or any other action...
}

?>
问题回答

暂无回答




相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签