HellFire Posted March 6, 2008 Report Share Posted March 6, 2008 labdien ludzu varat palidzet man ar sms.php faila kodu es nezinu vai tur ir kautkas jamaina jo man rada System error: unknown IP un balta lapa. <?php // check that the request comes from Fortumo server if(!in_array($_SERVER["REMOTE_ADDR"], array("81.20.151.38", "81.20.148.122"))) { die("System error: unknown IP"); } $sender = $_GET["sender"]; $message = $_GET["message"]; // do something with $sender and $message $reply = "Thank you $sender for sending $message"; // print out the reply echo($reply); ?> Link to comment Share on other sites More sharing options...
duplets Posted March 6, 2008 Report Share Posted March 6, 2008 šī te rindiņa if(!in_array($_SERVER["REMOTE_ADDR"], array("81.20.151.38", "81.20.148.122"))) { die("System error: unknown IP"); } Tu kur iekš tā araya tās ip adreeses , kods pārbauda vai tas kurš skatās šo failu, vai viņa ip sakrīt, ar to kas iekš tā araya, galveno kārt drošības pasākums kkāds. Tāka tev un citiem viņu nav atļauts vērt vaļā, bet tad kad skatīsies tas fortumo, tad skripts aizies, un izvadīs tur kkādus datus... Link to comment Share on other sites More sharing options...
HellFire Posted March 6, 2008 Author Report Share Posted March 6, 2008 aaa ok tnx Link to comment Share on other sites More sharing options...
HellFire Posted March 6, 2008 Author Report Share Posted March 6, 2008 (edited) nu tad kads pamegina vai man strada tas ziedosanas piemeram Nosuti sms ar tekstu: TXT SERVERIS1 CS NIKS LMT: 29300242 TELE2: 26000242 BITE: 29024242 SMS cena - 0,35sant. un pec tam pasakiet vai jums kautkada izina atnaca atpakal Edited March 6, 2008 by HellFire Link to comment Share on other sites More sharing options...
duplets Posted March 6, 2008 Report Share Posted March 6, 2008 Nedomāju, ka kāds tev tgd sūtīs, patiesībā esmu 100%, ka nesūtīs, gudrinieks... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now