Citaat:
Enlightenment schreef op 06-05-2004 @ 17:07 :
Ja duh dat soort prut schakelen ze uit natuurlijk. Gratis PHP is natuurlijk béétje discutabel, want ze spijkeren dat ding echt wel dicht.
Nee, beter betaal je paar euro per maand als je goede hosting wilt. Of je moet zelf hosten, dat kan ook prima als je 1Mbps upstream hebt.
|
hmm, het gaat dus om max 10 pageviews per week. Het is een tv programma waarvan de tijden zoveel uur vooruit of achteruit worden gezet. En degene die hiervan af zullen weten dat zijn hoogstens 3 of 4 mensen.
Kan iemand de 2 bestandjes voor me hosten

?
dit is de code mocht je me aan een hosting willen helpen
PHP-code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<!-- Creation Date: <?=Date("d/m/Y")?> -->
<head>
<meta name="Generator" content="Dev-PHP 1.9.4">
<title>Document Title</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function formHandler()
{
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
-->
</SCRIPT>
</head>
<body>
<FORM name = "form">
<SELECT NAME="site" SIZE=1 onChange ="formHandler()">
<OPTION VALUE="" selected>Kies uw tijdzone...
<OPTION VALUE="index.php?gmt=-12">GMT -12 Eniwetok, Kwajalein
<OPTION VALUE="index.php?gmt=-11">GMT -11 Midway Island, Samoa
<OPTION VALUE="index.php?gmt=-10">GMT -10 Hawaii
<OPTION VALUE="index.php?gmt=-9">GMT -9 Alaska
<OPTION VALUE="index.php?gmt=-8">GMT -8 Pacific Time (US & Canada)
<OPTION VALUE="index.php?gmt=-7">GMT -7 Arizona, Mountain Time (US & Canada)
<OPTION VALUE="index.php?gmt=-6">GMT -6 Centraal-Amerika, Central Time (US & Canada), Mexico Stad
<OPTION VALUE="index.php?gmt=-5">GMT -5 Bogot, Lima, Quito, Eastern Time (US & Canda)
<OPTION VALUE="index.php?gmt=-4">GMT -4 Atlantic Time (Canada), Carcas, La Paz, Santiago
<OPTION VALUE="index.php?gmt=-3">GMT -3 Brasilia, Buenos Aires, Georgetown, Groenland
<OPTION VALUE="index.php?gmt=-2">GMT -2 Mid-Atlantic
<OPTION VALUE="index.php?gmt=-1">GMT -1 Azoren
<OPTION VALUE="index.php?gmt=0">GMT Casablance, Dublin, Edinburgh, Lissabon, Londen
<OPTION VALUE="index.php?gmt=1">GMT +1 Amsterdam, Berlijn, Bern, Rome, Stockholm, Brussel, Parijs
<OPTION VALUE="index.php?gmt=2">GMT +2 Athene, Istanboel, Minsk, Boekarest, Cairo, Helsinki, Jeruzalem
<OPTION VALUE="index.php?gmt=3">GMT +3 Bagdad, Koeweit, Moskou, St. Petersburg, Tehran
<OPTION VALUE="index.php?gmt=4">GMT +4 Bakoe, Tiflis, Yerevan, Muscat, Kaboel
<OPTION VALUE="index.php?gmt=5">GMT +5 Ekatinburg, Islamabad, Karachi, Calcutta
<OPTION VALUE="index.php?gmt=6">GMT +6 Almathy, Novosibirsk
<OPTION VALUE="index.php?gmt=7">GMT +7 Bankok, Jakarta, Krasnoyarsk
<OPTION VALUE="index.php?gmt=8">GMT +8 Bejing, Hong Kong, Kula Lumpur, Singapore, Taiwan
<OPTION VALUE="index.php?gmt=9">GMT +9 Tokio, Seoul, Darwin
<OPTION VALUE="index.php?gmt=10">GMT +10 Melbourne, Sydney, Canberra
<OPTION VALUE="index.php?gmt=11">GMT +11 Magadan, Solomon Island
<OPTION VALUE="index.php?gmt=12">GMT +12 Auckland, Wellington
</SELECT>
</FORM>
<?php
//set GMT +1 if param gmt is not enterd or invalid
if(!isset($_GET['gmt']) || !is_numeric($_GET['gmt']))
$gmt_x = 1;
elseif(isset($_GET['gmt']) && is_numeric($_GET['gmt']))
$gmt_x = $_GET['gmt'];
//connect to site and read content
$program = "http://www.eter.tv/arm/programs/print_version/a_Atvsput.shtml";
$content = file_get_contents($program);
//replace local linked images by aboslute images
$content = str_replace("/selectprogram/images/printer.gif", "http://www.eter.tv/selectprogram/images/printer.gif", $content);
$content = str_replace("/selectprogram/images/folder.gif", "http://www.eter.tv/selectprogram/images/folder.gif", $content);
//adjust the time
function add_x_hours($match)
{
global $gmt_x;
$match[1] += $gmt_x - 4; //-4 to get GMT time
$match[1] %= 24; //modulo 24 to avoid hours > 24
if($match[1] < 0)
$match[1] = 24 - abs($match[1]);
$tijd = $match[1].".".$match[2]; //melt hours with minutes
return $tijd;
}
//regex pattern
$pattern = "|(\d{2}).(\d{2})[ ](<\/font>)|";
echo preg_replace_callback($pattern, "add_x_hours", $content);
echo "<font face=\"Verdana, Arial, Helvetica, sans-serif\" size=1>
<br />Time adjustments implented by <a href=\"mailto:drhendre@hotmail.com\">Henri Hambarsumyan</a></font>";
?>
</body>
</html>