Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

PHP to ASP Need HELP!

7 like 0 dislike
can anyone this do to asp ? i realy need it much! thank you.

Code:
==================================
 <?php
$ipadressen = array (
'82.94.203.80',
'82.94.203.81',
'82.94.203.82',
'82.94.203.83',
'82.94.203.84',
'82.94.203.85',
'82.94.203.86'
);
 
if($_SERVER['REQUEST_METHOD'] == "GET")
{
//Iemand roept ons aan met een aantal GET variabelen! Wie is het?
$ipadres = $_SERVER['REMOTE_ADDR'];
 
//We laten alleen de onderstaande ipadressen toe... Die zijn van Mollie!
if(in_array($ipadres, $ipadressen))
{
if(isset($_GET['parameter']))
{
$waarde1 = $_GET['parameter'][1];
$waarde2 = $_GET['parameter'][2];
 
//Dit is de enige output die Mollie kan hebben... de betaling is ontvangen!
echo 'OK';
}
}
}
?>
==================================
asked 2 years ago by eagle09 (95,490 points)

1 Answer

0 like 0 dislike
I guess a simple rewrite would not help you that much as you need to establish a DB connection, handle errors, etc.

I would recommend you have a look at ajaxed library which offers you a db.insert() method .. which I believe does the same as the method you require.
answered 2 years ago by biswaskeran (70,430 points)

Related questions

7 like 0 dislike
1 answer
asked 2 years ago by eagle09 (95,490 points)
10 like 0 dislike
0 answers
11 like 0 dislike
1 answer
asked 2 years ago by eagle09 (95,490 points)
3 like 0 dislike
0 answers
asked 1 year ago by DBA-boss (120,990 points)
8 like 0 dislike
1 answer
asked 2 years ago by daneim (127,080 points)