I use Cloudinary’s PHP API to upload images from my server to Cloudinary storage. The code snippet I use is:
$imguploadres = \Cloudinary\Uploader::upload([URL HERE], [ARRAY OF OPTIONS]);
This snippet works like a charm in my localhost (XAMPP) which is HTTP. But when I uploaded this code to my server on the Internet having HTTPS, it started outputting this error: “failed to connect to port 443: connection refused”.
I have searched for the solution on the Internet for some hours now, but to no avail. Most solutions involved enabling the “HTTP on Outgoing connections” setting through the hosting panel, but unfortunately I have no access to it.
For some info to help you, I use Biz.nf free hosting, but my domain is paid (.COM) from GoDaddy. I also use Cloudflare’s shared SSL and other features. The PHP script that contains the above snippet is called using JS AJAX.
Thanks in advance. Ask any questions as comments and I’ll try my best to answer them.
本文介绍了一位开发者使用Cloudinary PHP API从服务器上传图片到Cloudinary存储时遇到的问题:在本地环境中一切正常,但部署到具有HTTPS的互联网服务器上后出现连接被拒绝的错误。文章探讨了可能的原因及寻求解决方案的过程。

被折叠的 条评论
为什么被折叠?



