Error upload.php

Gestart doorWereldhotel4 reacties50 weergaven

5 berichten · pagina 1 van 1

Wereldhotel

Lid · Topicstarter

Berichten
542
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
De error is:
Parse error: syntax error, unexpected < in /home/jlzwbpey/domains/jlzwbpey.twentyfive.versio.nl/public_html/pages/upload.php on line 13

Het komt uit dit script:

[COLOR= #0000BB]<?php

$hash[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]hash[/COLOR][COLOR= #007700]];[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"/^[A-Za-z0-9]{10}$/"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$hash[/COLOR][COLOR= #007700])){[/COLOR]

[COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"select `filename` from `files` where `hash`=$hash limit 1"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$filename[/COLOR] [COLOR= #007700]= @[/COLOR][URL="http://www.php.net/mysql_result"]mysql_result[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/print"]print[/URL]

[COLOR= #007700]<[/COLOR]SCRIPT type[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"text/javascript"[/COLOR][COLOR= #007700]>

function[/COLOR] highlight[COLOR= #007700]([/COLOR]field[COLOR= #007700])
{[/COLOR]
    field[COLOR= #007700].[/COLOR]focus[COLOR= #007700]();[/COLOR]
    field[COLOR= #007700].[/COLOR]select[COLOR= #007700]();
}[/COLOR]
</script>

                <h1>Succesvol geupload!</h1>
<p>
                <img src="/img=$hash/thumb" /><br />
                <a href="/img=$hash" target="_blank"><strong>Klik hier om het hele image te bekijken</strong></a><br /><br />
                <h1>Dump Opties</h1>
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                      <tr>    
                        <td style="width: 180px;"><h3>UBB link</h3></td>
                        <td><input style="width: 300px;" type="text" onClick="highlight(this);"  value="[url]http://{$site[url]}/upload/$hash/{$filename}[/url]" /></td>
                      </tr>
                      <tr>
                        <td style="height: 6px;"></td>
                        <td></td>
                        <td></td>
                      </tr>
                      <tr>
                        <td style="width: 180px;"><h3>UBB link met image</h3></td>
                        <td><input style="width: 300px;" type="text" onClick="highlight(this);"  value="[url=http://{$site[url]}/upload/$hash/{$filename}][img]http://{$site[url]}/img={$hash}[/img][/url]" /></td>
                      </tr>
                      <tr>
                        <td style="height: 6px;"></td>
                        <td></td>
                        <td></td>
                      </tr>
                      <tr>
                        <td style="width: 180px;"><h3>UBB image</h3></td>
                        <td><input style="width: 300px;" type="text" onClick="highlight(this);"  value="[img]http://{$site[url]}/img={$hash}[/img]" /></td>
                      </tr>
                      <tr>
                        <td style="height: 6px;"></td>
                        <td></td>
                        <td></td>
                      </tr>
                      <tr>
                        <td style="width: 180px;"><h3>HTML link</h3></td>
                        <td><input style="width: 300px;" type="text" onClick="highlight(this);" value="<a href=http://{$site[url]}/upload/$hash/$filename>NAME</a>" /></td>
                      </tr>
                      <tr>
                        <td style="height: 6px;"></td>
                        <td></td>
                        <td></td>
                      </tr>
                      <tr>
                        <td style="width: 180px;"><h3>HTML Image</h3></td>
                        <td><input style="width: 300px;" type="text" onClick="highlight(this);" value="<img src=http://{$site[url]}/img=$hash />" /></td>
                      </tr>
                      <tr>
                        <td style="height: 6px;"></td>
                        <td></td>
                        <td></td>
                      </tr>
                      <tr>
                        <td style="width: 180px;"><h3>Directe link</h3></td>
                        <td><input style="width: 300px;" type="text" onClick="highlight(this);"  value="http://{$site[url]}/img=$hash" /></td>
                      </tr> 
                    </table>
</p>

?>


Ik ben niet zo ervaren, weet iemand hoe ik dit fix?
Diegene die me kan helpen krijgt 0.1 punt
0
Berichten
2.692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
HTML in PHP zonder echo ofzo emo
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php

$hash[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]hash[/COLOR][COLOR= #007700]];[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"/^[A-Za-z0-9]{10}$/"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$hash[/COLOR][COLOR= #007700])){[/COLOR]

[COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"select `filename` from `files` where `hash`=$hash limit 1"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$filename[/COLOR] [COLOR= #007700]= @[/COLOR][URL="http://www.php.net/mysql_result"]mysql_result[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]

<SCRIPT type="text/javascript">

function highlight(field)
{
    field.focus();
    field.select();
}
</script>

                <h1>Succesvol geupload!</h1>
<p>
                <img src="/img=$hash/thumb" /><br />
                <a href="/img=$hash" target="_blank"><strong>Klik hier om het hele image te bekijken</strong></a><br /><br />
                <h1>Dump Opties</h1>
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                      <tr>    
                        <td style="width: 180px;"><h3>UBB link</h3></td>
                        <td><input style="width: 300px;" type="text" onClick="highlight(this);"  value="[url]http://{$site[[/COLOR]url[COLOR= #DD0000]]}/upload/$hash/{$filename}[/url]" /></td>
                      </tr>
                      <tr>
                        <td style="height: 6px;"></td>
                        <td></td>
                        <td></td>
                      </tr>
                      <tr>
                        <td style="width: 180px;"><h3>UBB link met image</h3></td>
                        <td><input style="width: 300px;" type="text" onClick="highlight(this);"  value="[url=http://{$site[[/COLOR]url[COLOR= #DD0000]]}/upload/$hash/{$filename}][url=http://{$site[[/COLOR]url[COLOR= #DD0000]]}/img={$hash}]Afbeelding[/url][/url]" /></td>
                      </tr>
                      <tr>
                        <td style="height: 6px;"></td>
                        <td></td>
                        <td></td>
                      </tr>
                      <tr>
                        <td style="width: 180px;"><h3>UBB image</h3></td>
                        <td><input style="width: 300px;" type="text" onClick="highlight(this);"  value="[url=http://{$site[[/COLOR]url[COLOR= #DD0000]]}/img={$hash}]Afbeelding[/url]" /></td>
                      </tr>
                      <tr>
                        <td style="height: 6px;"></td>
                        <td></td>
                        <td></td>
                      </tr>
                      <tr>
                        <td style="width: 180px;"><h3>HTML link</h3></td>
                        <td><input style="width: 300px;" type="text" onClick="highlight(this);" value="<a href=[/COLOR]http[COLOR= #007700]:[/COLOR][COLOR= #FF8000]//{$site[url]}/upload/$hash/$filename>NAME</a>" /></td>[/COLOR]
                      [COLOR= #007700]<[/COLOR]/tr[COLOR= #007700]>
                      <[/COLOR]tr[COLOR= #007700]>
                        <[/COLOR]td style[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"height: 6px;"[/COLOR][COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
                        <[/COLOR]td[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
                        <[/COLOR]td[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
                      <[/COLOR]/tr[COLOR= #007700]>
                      <[/COLOR]tr[COLOR= #007700]>
                        <[/COLOR]td style[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"width: 180px;"[/COLOR][COLOR= #007700]><[/COLOR]h3[COLOR= #007700]>[/COLOR]HTML Image[COLOR= #007700]<[/COLOR]/h3[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
                        <[/COLOR]td[COLOR= #007700]><[/COLOR]input style[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"width: 300px;"[/COLOR] type[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"text"[/COLOR] onClick[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"highlight(this);"[/COLOR] value[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"<img src=http://{$site[url]}/img=$hash />"[/COLOR] /[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
                      <[/COLOR]/tr[COLOR= #007700]>
                      <[/COLOR]tr[COLOR= #007700]>
                        <[/COLOR]td style[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"height: 6px;"[/COLOR][COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
                        <[/COLOR]td[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
                        <[/COLOR]td[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
                      <[/COLOR]/tr[COLOR= #007700]>
                      <[/COLOR]tr[COLOR= #007700]>
                        <[/COLOR]td style[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"width: 180px;"[/COLOR][COLOR= #007700]><[/COLOR]h3[COLOR= #007700]>[/COLOR]Directe [URL="http://www.php.net/link"]link[/URL][COLOR= #007700]<[/COLOR]/h3[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
                        <[/COLOR]td[COLOR= #007700]><[/COLOR]input style[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"width: 300px;"[/COLOR] type[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"text"[/COLOR] onClick[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"highlight(this);"[/COLOR]  value[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://{$site[url]}/img=$hash"[/COLOR] /[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
                      <[/COLOR]/tr[COLOR= #007700]> 
                    <[/COLOR]/table[COLOR= #007700]>
<[/COLOR]/p[COLOR= #007700]>[/COLOR]
[COLOR= #007700];[/COLOR]
?>
0
Wereldhotel

Lid · Topicstarter

Berichten
542
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nu heb ik weer deze error:

Parse error: syntax error, unexpected T_STRING, expecting , or ; in /home/jlzwbpey/domains/jlzwbpey.twentyfive.versio.nl/public_html/pages/upload.php on line 30


Ik heb geprobeert het zelf te fixen maar het lukte me echt niet ;p
0
Wereldhotel

Lid · Topicstarter

Berichten
542
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bump! Iemand?
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