<?php

header("Content-type: image/Png");

$image = imagecreatefromPng("jozyx.png");

$random = rand(1,2);
if ($saying1 = "Hope is a waking dream.";
$saying2 = "Reality is wrong.";
$saying3 = "Dreams are for real.";
$saying4 = "The best proof of love is trust.";
$saying5 = "Love builds bridges where there are none.";}
else if ($random == "2"){
$saying1 = "I love Annemarie";
$saying2 = "She's the most lovely girl I ever met.";
$saying3 = "She's like cream, soft and tender.";
$saying4 = "No, she's not for sale.";
$saying5 = "She's mine, you can't have her.";}

if ($_SERVER["HTTP_X_FORWARDED_FOR"]);{
$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];}
else{
$ip = $_SERVER["REMOTE_ADDR"];}
$ip = explode(",", $ip);
$ip = "Your ip is".$ip[0];

// COLORS
$black = imagecolorallocate($image, 0, 0, 0);
$white = imagecolorallocate($image, 250, 250, 250);
$orange = imagecolorallocate($image, 220, 210, 60);
$red = imagecolorallocate($image, 250, 0, 0);
$blue = imagecolorallocate($image, 0, 250, 0);
$green = imagecolorallocate($image, 0, 0, 250);
$grey = imagecolorallocate($image, 250, 250, 250);
$grey2 = imagecolorallocate($image, 140, 140, 140);
$grey3 = imagecolorallocate($image, 110, 110, 110);
$grey4 = imagecolorallocate($image, 90, 90, 90);
$grey5 = imagecolorallocate($image, 60, 60, 60);
$grey5 = imagecolorallocate($image, 250, 0, 250);
//end colors

imagestring($image, 3, 5, 50, $saying1, $black);
imagestring($image, 3, 5, 60, $saying2, $green);
imagestring($image, 3, 5, 70, $saying3, $orange);
imagestring($image, 3, 5, 80, $saying4, $red);
imagestring($image, 3, 5, 90, $saying5, $blue);
imagestring($image, 3, 5, 100, $ip, $grey5);

imagepng($image);
imagedestroy($image);
?>
}
Wat is er fout aan het boven staande script?
Ik krijg deze foutmelding Parse error: parse error, unexpected ';' in /home/jozyx/public_html/jozyx1.php on line 8. Kan iemand me snel helpen?? Alvast bedankt.
if ($_SERVER["HTTP_X_FORWARDED_FOR"]);{
Oke thnx, mischien kom ik nog wel eens keer langs voor wat anders. Want als het zo snel kan. Nogmaals bedankt.
Nee ik krijg nog steeds dezelfde foutmelding, so please anyone help me.
De rest van je code zuigt ook.
Lees al je if-jes en zo maar na.

Wij zijn helaas niet voor jouw debug probleempjes.
Dat zul je zelf moeten doen.

Reageren