http 406 not acceptable

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

Post Reply
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

http 406 not acceptable

Post by psychotomus »

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
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

Re: http 406 not acceptable

Post by psychotomus »

anybody know?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: http 406 not acceptable

Post by John Cartwright »

What does $_GET['url'] contain?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: http 406 not acceptable

Post by RobertGonzalez »

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

Re: http 406 not acceptable

Post by psychotomus »

It was workin before for past 6months and it just stopped working.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: http 406 not acceptable

Post by John Cartwright »

So lets begin by answering my question?
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

Re: http 406 not acceptable

Post by psychotomus »

Didn't see your question. ;]

url=http://howto.dcrdetox.com/themes/dcrdetox.zip
dsasser
Forum Newbie
Posts: 1
Joined: Sun May 11, 2008 5:10 am

Re: http 406 not acceptable

Post by dsasser »

Post Reply