Wat doe ik mis?

Gestart doorDigital0 reacties31 weergaven

1 berichten · pagina 1 van 1

Digital

Lid · Topicstarter

Berichten
326
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,
Ik heb een vraag met mijn online Status script.

Script

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/ini_set"]ini_set[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]display_errors[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/error_reporting"]error_reporting[/URL][COLOR= #007700]([/COLOR]E_ALL[COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]"../config.php"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$id[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR] [COLOR= #DD0000]"/[^0-9]/"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] );[/COLOR] [COLOR= #FF8000]//only numbers[/COLOR]
[COLOR= #007700]function[/COLOR] test_serv[COLOR= #007700]([/COLOR][COLOR= #0000BB]$port[/COLOR][COLOR= #007700]){[/COLOR]
    [URL="http://www.php.net/global"]global[/URL] [COLOR= #0000BB]$server[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$s[/COLOR] [COLOR= #007700]= @[/COLOR][URL="http://www.php.net/fsockopen"]fsockopen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$server[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$port[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$ERROR_NO[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$ERROR_STR[/COLOR][COLOR= #007700],(float)[/COLOR][COLOR= #0000BB]0.5[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$s[/COLOR][COLOR= #007700]){@[/COLOR][URL="http://www.php.net/fclose"]fclose[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$s[/COLOR][COLOR= #007700]);[/COLOR][URL="http://www.php.net/return"]return[/URL] true[COLOR= #007700];}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [URL="http://www.php.net/return"]return[/URL] false[COLOR= #007700];
    }[/COLOR]
    
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR]test_serv[COLOR= #007700]([/COLOR][COLOR= #0000BB]$realm[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]$id[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]port[/COLOR][COLOR= #007700]]))[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=colorgood>Online</span>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=colorbad>Offline</span>"[/COLOR][COLOR= #007700];[/COLOR]


Notice: Undefined index: id in /www/******/x/n/o/xnova/htdocs/dynamic/status.php on line 5

Notice: Undefined index: in /www/*****/x/n/o/xnova/htdocs/dynamic/status.php on line 12
Offline


Maar via xampp werkt het wel? o,o
En op de webhost krijg ik deze fout.
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