Placeholder Image

ADN Informatique

Consultant Ingénierie Informatique

Saguenay (Jonquière), Québec, Canada. Tél: (581) 683-9887 Téléc: (581) 221-0874

Placeholder Picture

Retour

PHP Post

2008-04-28 13:57:36 (ID: 80, Parent: 0, Type: post)
Here a quick example of how-to post some data over the web in a simple php script.

"http://psms.canoe-inc.com/send_sms");
$o="";
foreach ($datastream as $k=>$v)
{
$o.= "$k=".utf8_encode($v)."&";
}
$post_data=substr($o,0,-1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
// grab URL and pass it to the browser
curl_exec($ch);
// close cURL resource, and free up system resources
curl_close($ch);

Document Informatif

ADN Informatique

2015

Rev. 1

Jean-Luc Cyr