Er is anders groot verschil tussen Ajax en AJAX, Lennard 




[COLOR= #0000BB]<?php
$homepage[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://www.habbo.nl/[/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]"<span class="[/COLOR]stats[COLOR= #007700]-[/COLOR]fig[COLOR= #DD0000]">([^`]*?)</span>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$homepage[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$matches[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$matches[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]];
}[/COLOR]
?> 
Dylanh schreef:waarom krijg ik nu:[COLOR= #0000BB]<?php $homepage[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://www.habbo.nl/[/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]"<span class="[/COLOR]stats[COLOR= #007700]-[/COLOR]fig[COLOR= #DD0000]">([^`]*?)</span>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$homepage[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$matches[/COLOR][COLOR= #007700])) {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$matches[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]]; }[/COLOR] ?>

[COLOR= #0000BB]<?php
$homepage[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://www.habbo.nl/[/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]"<span class="[/COLOR]stats[COLOR= #007700]-[/COLOR]fig[COLOR= #DD0000]">([^`]*?)</span>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$homepage[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$matches[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$matches[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]];
}[/COLOR]
?>
49:
kladblok
55:Dylanh schreef:Oke, nu krijg ik dit:
Parse error: syntax error, unexpected T_NS_SEPARATOR in C:xampphtdocsyoloindex.php on line 5
[COLOR= #0000BB]<?php
$homepage[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://www.habbo.nl/[/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]"<span class="[/COLOR]stats[COLOR= #007700]-[/COLOR]fig[COLOR= #DD0000]">([^`]*?)</span>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$homepage[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$matches[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$matches[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]];
}[/COLOR]
?>
49:
kladblokSanderc schreef:Heeft niet heel veel nut, dan kun je alsnog:In php gewoon stristr gebruiken en kijken of er zeker http://www. In staat.