18 lines
335 B
PHP
18 lines
335 B
PHP
|
<?php
|
||
|
|
||
|
$curl = curl_init();
|
||
|
$pauline = hash('sha256', 'srifi');
|
||
|
|
||
|
|
||
|
curl_setopt_array($curl, array(
|
||
|
CURLOPT_RETURNTRANSFER => 1,
|
||
|
CURLOPT_URL => "http://recettesiam9.cstb.fr/api-cours/test-user.php?user=$pauline"
|
||
|
));
|
||
|
$resultsJson = curl_exec($curl);
|
||
|
|
||
|
curl_close($curl);
|
||
|
|
||
|
$results = json_decode($resultsJson);
|
||
|
|
||
|
print_r($results);
|