Php cron作业未检索网页内容?
我正在尝试使用cron作业来执行每日计算,使用url(获取“”)并将结果链接到我的电子邮件 但我在电子邮件中得到了这个结果:Php cron作业未检索网页内容?,php,cron,cron-task,Php,Cron,Cron Task,我正在尝试使用cron作业来执行每日计算,使用url(获取“”)并将结果链接到我的电子邮件 但我在电子邮件中得到了这个结果: </head> <body> <div id="sf-resetcontent" class="sf-reset"> <h1>Sorry, the page you are looking for could not be found </h1> </div> </body>
</head>
<body>
<div id="sf-resetcontent" class="sf-reset">
<h1>Sorry, the page you are looking for could not be found
</h1>
</div>
</body>
</html>
很抱歉,找不到您要查找的页面
这意味着您指向的URL无效、不存在或无法从运行cron的上下文中访问
请检查该URL是否显示在web浏览器上。如果您没有运行cron的web浏览器,请在命令行中使用curl检查:
$ curl -L {your-url}
- -L允许curl跟随重定向李>