Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > Langages serveur > ASP
ASP Forum sur la programmation ASP. Avant de poster : Cours ASP, FAQ ASP
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 06/09/2007, 22h40   #1
Nouveau Membre du Club
 
Inscription : août 2007
Messages : 416
Détails du profil
Informations forums :
Inscription : août 2007
Messages : 416
Points : 31
Points : 31
Par défaut convertir pages PHP en ASP

Bonsoir,

J' ai 2 page en PHP ( affiliate.php et check1.php ) et je dois les convertir en ASP, existe t'il des utilitaires qui font sa ?

Pouvez vous m aider svp ?

merci à vous

affiliate.php

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
<?php  
 
if($_GET['ref']) 
{		
  if($cookieExpiration != 0)
    $cookieLifetime = time() + $cookieExpiration*86400;
  else
    $cookieLifetime =  time() + 3650*86400;
 
  SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
  SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
  SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
  SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
  SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
 
  session_start();
  $_SESSION['ref'] = $_GET['ref'];
 
  include "affconfig.php";   
 
  mysql_connect($server, $db_user, $db_pass) 
    or die ("Database CONNECT Error (line 17)"); 
 
  mysql_db_query($database, "INSERT INTO clickthroughs VALUES ('".$_GET['ref']."', '$clientdate', '$clienttime', '$clientbrowser', '$clientip', '$clienturl', '')"); 
}
?>
check1.php

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
<?php
$payment = "5.00";
 
// Do not edit anything below this line
include "affconfig.php"; 
 
$ref = $HTTP_COOKIE_VARS["ref"];
if ($ref == '')	
{
    if($debugMessage)
        echo "<br><font color=#ff0000>PostAffiliate Debug Msg: No referrer found in cookie, trying to use sessions.</font><br>";
 
    $ref = $_SESSION["ref"];
 
    if($ref == '' && $debugMessage)
        echo "<br><font color=#ff0000>PostAffiliate Debug Msg: No referrer found in session.</font><br>";
 
}
 
if ($ref != '')
{
    echo "<br><font color=#ff0000>PostAffiliate Debug Msg: Referrer '$ref' found, registering sale.</font><br>";
 
	mysql_connect($server, $db_user, $db_pass) 
        or die ("Database CONNECT Error (line 32)"); 
 
	mysql_db_query($database, "INSERT INTO sales VALUES ('$ref', '$clientdate', '$clienttime', '$clientbrowser', '$clientip', '$payment')") 
        or die("Database INSERT Error (line 34)"); 
}	
?>
cdevl32 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/09/2007, 17h30   #2
J1
Membre actif
 
Inscription : mai 2004
Messages : 225
Détails du profil
Informations forums :
Inscription : mai 2004
Messages : 225
Points : 195
Points : 195
Bonjour,

cette question a déjà fait l'objet d'un topic : http://www.developpez.net/forums/sho...d.php?t=383899
J1 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 14h49.


 
 
 
 
Partenaires

Hébergement Web