Is it somehow possible to put Text Based Ads on every .html page using some .php script.
I have around 1000 .html pages and it's a big job to put Add on every page.
I have tried this bat without success.
1. I have created .htaccess file and put in it next lines:
AddHandler headered .htm
AddHandler headered .html
Action headered header.php
2. I have uploaded files header.html and footer.html with Text Based Ads code
3. I have uploaded header.php file
code:
<?php
$header = "header.html";
$footer = "footer.html";
$file = $_SERVER["SCRIPT_FILENAME"];
readfile($header);
readfile($file);
readfile($footer);
?>
Now I'm getting error:
Bad Request
Your browser sent a request that this server could not understand. Invalid URI in request GET / HTTP/1.1
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any help?
I have around 1000 .html pages and it's a big job to put Add on every page.
I have tried this bat without success.
1. I have created .htaccess file and put in it next lines:
AddHandler headered .htm
AddHandler headered .html
Action headered header.php
2. I have uploaded files header.html and footer.html with Text Based Ads code
3. I have uploaded header.php file
code:
<?php
$header = "header.html";
$footer = "footer.html";
$file = $_SERVER["SCRIPT_FILENAME"];
readfile($header);
readfile($file);
readfile($footer);
?>
Now I'm getting error:
Bad Request
Your browser sent a request that this server could not understand. Invalid URI in request GET / HTTP/1.1
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any help?
Last edited: