Im a newbie trying to get a script to invoke another script with Curl in PHP, but it seems to be sending parameters.
Is there a separate function for adding parameters?
<?php $time = time(); $message = "hello world"; $urlmessage = urlencode( $message ); $ch = curl_init("http://mysite.php?message=$urlmessage&time=$time"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); ?>
Can someone point me in the right direction?
source share