照片上传无法直接从服务器/URL 工作,即在 PHP 中的 Flickr 上使用 cronjob
我们网站的身份验证工作正常,当我使用 PHP 中的 async_upload
从临时文件上传到 Flickr 时,
它也工作正常。
但是,当我们在 PHP 中使用 cronjob
上传照片时,即当我们尝试直接从服务器或使用 URL 上传照片时,它不会使用 async_upload()
上传任何照片或PHP 中的 sync_upload()
。
我需要你的手, 谢谢
Authentication with our site is working fine and also when I upload on Flickr from temporary file using async_upload
in PHP,
It's working fine.
But, When we upload photo with cronjob
in PHP i.e. when we try to upload photo from server directly or using URL, It doesn't upload any photo using async_upload()
or sync_upload()
in PHP.
I need your hand,
Thank You
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否确定将目录更改为您的主目录/或文件所在的特定目录?这是从 cronjob 运行时常见的错误之一。您可以更改为所需的目录并执行 cronjob php 文件,例如
或在 PHP 文件中执行“chdir('/home/dir')”。
Did you make sure to change your directory to your home / or the specific directory your files exist? That's one of the common mistakes while running from a cronjob. Either you change to the directory required and execute the cronjob php file like
Or execute "chdir('/home/dir')" inside your PHP file.