This is all so complex. Are you just trying to add + 1 to a counter? And nothing needs to be returned to the user??
PHP Code:
<?php
/*
Clients Page
*/
//Curl script, run on clients page
function runpage($url) {
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_HEADER, 0);
ob_start();
curl_exec ($ch);
curl_close ($ch);
$string = ob_get_contents();
ob_end_clean();
return $string;
}
//Call this on the clients page
runpage('http://www.yourdomain.com/yoursite.php?uid='.$uid);
?>
Then on your page have the following
PHP Code:
<?php
/*
Site Address
http://www.yourdomain.com/yoursite.php
*/
include(mysql_connect.php);
$uid=$_GET['uid'];
$query="FROM `blah` where uid="$uid" INSERT "+1"";
mysql_query($query);
?>
And your done.
The curl script will call your page, and pass it the relevant uid. Then your page can do its work and your password will never be shared.