| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Apr 12, 2003 7:38 pm Post subject: |
|
|
You can host VDS EXEs at Parcom ( http://www.parcom.net/ )
Just make sure you choose the Windows hosting plan.
| Quote: | | Do you mean an exe as server? Cause most servers are Linux or Unix, so that won't work... |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sat Apr 12, 2003 7:47 pm Post subject: |
|
|
well i was thinking both...exe that would needed to be d/l and some type of exe on serverside.... _________________ Have a nice day  |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Mon Apr 14, 2003 5:36 pm Post subject: |
|
|
A more efficient way in PHP would be this:
| Code: |
<?
$host = 'localhost';
$username = '';
$password = '';
$dbname = 'programname';
if (!mysql_connect('$host','$username','$password'))
{
echo "ERROR";
}
mysql_select_db($dbname);
if (!get_magic_quotes_gpc())
{
$name = addslashes($name);
$serial = addslashes($serial);
}
$sql=mysql_query("SELECT * FROM `serials` WHERE name = '$name' AND serial = '$serial';");
if (mysql_fetch_object($sql))
echo "CORRECT";
else
echo "WRONG";
?>
|
I do think however that some privacy issues may arise from this
technique, especially if doing it without asking the user first, or
mentioning such in the license agreement.
| Skit3000 wrote: | It isn't that hard to make a good PHP script for it... Use something like this:
| Code: | <?
$host = 'localhost';
$username = '';
$password = '';
$dbname = 'programname';
if (!mysql_connect('$host','$username','$password'))
{
echo "ERROR";
}
mysql_select_db($dbname);
$sql=mysql_query("SELECT * FROM `serials`");
while($row=mysql_fetch_object($sql))
{
if ($row->name == "$name")
{
if ($row->serial == "$serial")
{
echo "CORRECT";
} else {
echo "WRONG";
}
} else {
echo "WRONG";
}
?> |
Call it from within your script with http://www.url.com/filename.php?name=regname&serial=d8dj2345kds82j5 |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|