Plaatje veranerd als het plaatje niet bestaad

Gestart doorWouterr19 reacties48 weergaven

20 berichten · pagina 1 van 2

Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

Hoi iedereen,

Ik heb een vraag, ik heb van alles al geprobeert maar lukt niet.
kijk:
Ik heb een radio website met een DJ banner en die moeten wij maken en op onze HOST zetten en als dan een DJ draai (Bijv. nexar) dan komt automatich zijn banner (plaatje) er testaan maar wij moeten de plaatjes wel zelf maken dus nou is mijn vraag of er iets is (of dat iemand het mischien snel even kan maken) dat als die banner nog niet bestaad dat er dan een ander plaatje komt.

Hier een stukje wat we nu hebben:

<img src="banners/.$servertitle..png" alt=".$servertitle."><br>


Alvast bedankt!
Streaminghabbo
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/file_exists"]file_exists[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]banners/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$servertitle[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000].png[/COLOR][COLOR= #007700])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<img src="banners/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$servertitle[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000].png" alt="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$servertitle[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"><br>[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<img src="banners/iets.png" alt="iets"><br>[/COLOR][COLOR= #007700];
}[/COLOR]
0
Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

ty, ook voor de snelle reactie!
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Heb je sena?
0
Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

ja
0
Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

en ik loop tegen deze error op:

Parse error: syntax error, unexpected T_STRING, expecting , or ; in ......./banner.php on line 75


met deze code:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/file_exists"]file_exists[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]banners/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$servertitle[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000].png[/COLOR][COLOR= #007700])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<img src="banners/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$servertitle[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000].png" alt="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$servertitle[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"><br>[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<img src="banners/gbanner.png" alt="Deze DJ heeft nog geen banner!"><br>[/COLOR][COLOR= #007700];
}[/COLOR]
?>
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Wat is lijn 75
0
Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

if(file_exists(banners/.$servertitle..png)){
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
en lijn 74?
0
Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
en lijn 73?
0
Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
geef die hele code is emo?
0
Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

if($streamstatus == "1"){
//you may edit the html below, make sure to keep variable intact
echo
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<META HTTP-EQUIV="REFRESH" CONTENT="60;URL=banner.php">
</head>
<body><center>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/file_exists"]file_exists[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]banners/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$servertitle[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000].png[/COLOR][COLOR= #007700])){
<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"banners/.$servertitle..png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]".$servertitle."[/COLOR][COLOR= #007700]><[/COLOR]br[COLOR= #007700]>
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{
<[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"banners/gbanner.png"[/COLOR] alt[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"Deze DJ heeft nog geen banner!"[/COLOR][COLOR= #007700]><[/COLOR]br[COLOR= #007700]>
}[/COLOR]
?>
</center>
</body>
</html>;
}
if($streamstatus == "0")
{
//you may edit the html below, make sure to keep variable intact
echo
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<META HTTP-EQUIV="REFRESH" CONTENT="60;URL=banner.php">
<body>
<center><img alt="" src="boffline.png" /></center>
</body>
</html>;
}
?>
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$streamstatus[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]"1"[/COLOR][COLOR= #007700]){[/COLOR]
[COLOR= #FF8000]//you may edit the html below, make sure to keep variable intact[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<META HTTP-EQUIV="REFRESH" CONTENT="60;URL=banner.php">
</head>
<body><center>
[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/file_exists"]file_exists[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]banners/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$servertitle[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000].png[/COLOR][COLOR= #007700])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<img src="banners/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$servertitle[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000].png" alt="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$servertitle[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"><br>[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<img src="banners/gbanner.png" alt="Deze DJ heeft nog geen banner!"><br>[/COLOR][COLOR= #007700];
}[/COLOR]
?>
</center>
</body>
</html>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$streamstatus[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]"0"[/COLOR][COLOR= #007700])
{[/COLOR]
[COLOR= #FF8000]//you may edit the html below, make sure to keep variable intact[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<META HTTP-EQUIV="REFRESH" CONTENT="60;URL=banner.php">
<body>
<center><img alt="" src="boffline.png" /></center>
</body>
</html>[/COLOR][COLOR= #007700];
}[/COLOR]
?>
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren