我需要对一个示例代码进行故障排除,但似乎找不到任何错误。$strcommand = "python3 python.py ".$date.command; //proceeds a lot of calculations and then sends an automatic mail with python
当使用此代码示例时,-- python我可以判断它在运行,因为
在perl和python中,您必须在页面内容之前打印一些标题(如果需要的话)和新行。否则,您将得到一个错误- End of script output before headers.在php中,情况是不同的。每当您打印某物(使用print ""或echo "")时,都假定它是纯文本,即使您试图打印标题。要做到这一点(打印标题),您应该使用header()函数(在perl和python</