PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
psychotomus
Forum Contributor
Posts: 487 Joined: Fri Jul 11, 2003 1:59 am
Post
by psychotomus » Sun Apr 27, 2008 8:38 pm
URL that should work:
http://www.wpskins.org/download.php?the ... rdetox.zip
the code
Code: Select all
<?
session_start();
include('config.php');
$id = mysql_real_escape_string($_GET['theme']);
mysql_query("UPDATE themes SET downloads=(downloads + 1) WHERE id='$id'") or die(mysql_error());
mysql_query("UPDATE stats SET downloads=(downloads + 1) WHERE id='1'") or die(mysql_error());
header ("Location: " . $_GET['url'] );
?>
any idea's on how to resolve this problem
RobertGonzalez
Site Administrator
Posts: 14293 Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA
Post
by RobertGonzalez » Mon Apr 28, 2008 6:42 pm
You're going to have a bit of a time trying to redirect to a zip file. Why not just use the page to serve up the zip instead?
psychotomus
Forum Contributor
Posts: 487 Joined: Fri Jul 11, 2003 1:59 am
Post
by psychotomus » Tue Apr 29, 2008 1:24 pm
It was workin before for past 6months and it just stopped working.
dsasser
Forum Newbie
Posts: 1 Joined: Sun May 11, 2008 5:10 am
Post
by dsasser » Sun May 11, 2008 5:20 am