Pagina script bugje

Gestart doorShahiem3 reacties37 weergaven

4 berichten · pagina 1 van 1

Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb even een bugje in me paginascriptje,

Parse error: syntax error, unexpected ., expecting ) in /home/shahiem/domains/habboregio.nl/public_html/v3/inc/header.php on line 156

[COLOR= #0000BB]<?php
            $page[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]];[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$page[/COLOR][COLOR= #007700]) {[/COLOR]
                [COLOR= #0000BB]$page[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"index"[/COLOR][COLOR= #007700];
            }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
                [COLOR= #0000BB]$page[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/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]pagina/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$page[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000].php[/COLOR][COLOR= #007700])) {[/COLOR]
                [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]./pagina/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$page[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000].php[/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]Pagina estaat niet[/COLOR][COLOR= #007700]; 
            }[/COLOR]
            ?>
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Vervang regel 8 door
if(file_exists(./pagina/.$page..php)) {

Werkt ie dan wel?
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bijna

Maar nu krijg ik nog dit
Notice: Undefined index: p in /home/shahiem/domains/habboregio.nl/public_html/v3/inc/header.php on line 150
0
Berichten
3.283
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Shahiem schreef:
Bijna
Maar nu krijg ik nog dit
Notice: Undefined index: p in /home/shahiem/domains/habboregio.nl/public_html/v3/inc/header.php on line 150

Zelfde fout als in je andere topic
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