creo que acabo de ver algo interesante a lo que busco, miren:
Código PHP:
//your account info
$login = 'your_login';
$password = 'your_password';
////////////////////////////////////////////////////////////////////////////////
//
// Send SMS
//
//
//the originator of the SMS
$originator = 'itsme';
//the mobile number to send the SMS to
$mobile_number = '306944899709';
//the SMS message
$text = 'Test message';
//ask for delivery report
$delivery = true;
//send as flash
$flash = false;
//Build the URL
$request = "https://" . $login . ":" . $password . "@" . "www.net2sms.gr/srvauth/"
. "index?cmd=easysms&action=send_sms"
. "&originator=" . $originator
. "&mobile_number=" . $mobile_number
. "&text=" . urlencode($text)
. ( $delivery ? '&request_delivery=true' : '')
. ( $flash ? '&flash=true' : '');
//Open URL for reading
$handle = fopen ($request, "r");
if ( $handle ){
//if everything is ok, get the response
$output = '';
while ( $line = @fgets($handle,1024) ){
$output .= $line;
}
//close the connection
fclose ($handle);
//manage the output
$arReturn = split( "|", $output );
if ( $arReturn[0] > 0 ){
echo "SMS Sent! Message id is " . $arReturn[1] . "<br><br>";
} else {
echo "SMS Could not be send. Server returned " . $output . "<br><br>";
}
} else {
echo "cannot open URL, message not sent<br><br>";
}
apartir de:
//Build the URL
me lio un poco, vale en este script escribo los parametros, y quedan escribos en un url tipo index.php?user=tal&pass=tal&mensaje=tal despues lo ejecuta de alguna forma y me lio, alguien me ayuda a entenderlo
a mi me gustaria generar un url de tipo: index.php?user=tal&pass=tal&mensaje=tal el cual nunca se muestre en el navegador lo ejecute php internamente y dependiendo del valor que muestre ese url 0 o 1 por ejemplo muestre un mensaje dependiendo de si es 0 o 1 ¿seria posible?
saludos