PHP/cURL

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< PHP
Revision as of 16:27, 12 October 2019 by Woozle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

This page is about using cURL within PHP.

Setup - Woozle Notes

Getting cURL set up can be easy or not-easy, depending on various factors. I'm still trying to figure out why it apparently isn't working on cloud5. Tentatively, the problem is that PHP is running v7.0 instead of v7.2 (via FastCGI), and there is no libcurl package for PHP 7.0. I ultimately solved the problem by changing how PHP is invoked – from FastCGI, which seems to be stuck on 7.0 (and I don't know where it is configured) to directly invoking PHP 7.2 via CGI-BIN: /cgi-bin/php7.2.cgi

PHP 5 instructions: