Minimal PHP Curl Example
<?php
$curl = curl_init('https://www.google.se');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($curl);
curl_close($curl);
echo $data;
<?php
$curl = curl_init('https://www.google.se');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($curl);
curl_close($curl);
echo $data;
In order to get the PHP function setlocale() to work in Slackware you need some libraries installed:
glibc
glibc-i18n
I’m using Slackware 14.1 (64bit), sooo:
# wget ftp://ftp.slackware.no/slackware/slackware64-14.1/patches/packages/glibc-i18n-2.17-x86_64-11_slack14.1.txz # wget ftp://ftp.slackware.no/slackware/slackware64-14.1/patches/packages/glibc-2.17-x86_64-11_slack14.1.txz # installpkg glibc-2.17-x86_64-11_slack14.1.txz # installpkg glibc-i18n-2.17-x86_64-11_slack14.1.txz