Jump to content

PHP Help


mrmom

Recommended Posts

Can someone take a look at this code and tell me where I'm going wrong.

<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: [a href=\"http://stats.photobuz.com/awstats/awstats.pl?config=$_SERVER\" target=\"_blank\"]http://stats.photobuz.com/awstats/awstats....g=$_SERVER[/a]['HTTP_HOST']");
header("Connection: close");
?>

I'm not very good at php.

Thanks.
Link to comment
https://forums.phpfreaks.com/topic/12553-php-help/
Share on other sites

Try changing this line:
[code]<?php
header("Location: http://stats.photobuz.com/awstats/awstats.pl?config=$_SERVER['HTTP_HOST']");
?>[/code]
to
[code]<?php
header('Location: http://stats.photobuz.com/awstats/awstats.pl?config=' . $_SERVER['HTTP_HOST']);
?>[/code]
or
[code]<?php
header("Location: http://stats.photobuz.com/awstats/awstats.pl?config={$_SERVER['HTTP_HOST']}");
?>[/code]

Ken
Link to comment
https://forums.phpfreaks.com/topic/12553-php-help/#findComment-48095
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.