PHP从窗帘后面打印/ f(PHP prints /f from behind the curtains)
我有一个旧网站,可以生成PDF报告并通过电子邮件发送。 它使用Zend_Mail,pChart和Zend_Pdf。 我已经注意到PHP在那里的某处打印出来了,但是它几乎不可见,因为新的浏览器选项卡只会显示PDF报告是否在某个地方失败。 然后我会只用/ f作为输出。 这被认为只有在出现错误时才出现。
当我使用CLI运行整个生成邮件过程时,这成为一个“问题”。 当我做这样的事情时会发生这种情况:
$instance = new $aClassName();
这也只是我第一次这样做。 有任何想法吗?
I have an old web site which generates PDF reports and sends via email. It uses Zend_Mail, pChart and Zend_Pdf. I've already noticed that PHP prints out /f somewhere in there, but it is mostly not visible since a new browser tab would only show if the PDF report fails somewhere on the way. Then I would sit with only /f as the output. This made be think it only appeared when there was an error.
This becomes a "problem" when I run this whole generating-mailing procedure using the CLI. It happens when I do something like this:
$instance = new $aClassName();
It also only happens the first time I do it. Any ideas?
原文:https://stackoverflow.com/questions/12508396
最满意答案
我终于找到了如何在文件开头搜索/ f并在多个文件中找到它。 所以必须有一些你可能不小心按下的vim命令,插入/ f。
虽然不是我写了他们,但我知道那个人用vim作为编辑。
I finally found out how searched for /f in the beginning of files and found it in more than one file. So there must be some vim command which you are likely to accidentally press, which inserts /f.
It was not me who wrote them though, but I know the guy used vim as an editor.