Opgelost..
File_get_content probleem
Opgelost..
Ligt aan de server kant, aangezien je xampp gebruikt ligt het aan je php versie.
Opgelost, zal zo even oplossing posten moet even goed uitwerken!
Wat was de oplossing en het probleem?
//ik zie wel dat je het gaat posten. Mijn fout
//ik zie wel dat je het gaat posten. Mijn fout
Sevvlor schreef:Wat was de oplossing en het probleem?
//ik zie wel dat je het gaat posten. Mijn fout
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// Youtube id ophalen //[/COLOR]
[COLOR= #0000BB]$ytnummer[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$artiest_b[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]]) .[/COLOR][COLOR= #DD0000] - [/COLOR][COLOR= #007700].[/COLOR] [URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$nummer_b[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$ytnummer[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]" "[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"%20"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$ytnummer[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$ytidload[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://gdata.youtube.com/feeds/api/videos?q=[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$ytnummer[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #DD0000]&start-index=1&max-results=6[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$ytid_a[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://www.youtube.com/watch?v=[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$ytidload[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$ytid_b[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]&feature=[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/end"]end[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ytid_a[/COLOR][COLOR= #007700]));[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$ytid_b[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]];[/COLOR]
?> Liep net vast omdat die spaties ook niet pakt maar zo werkt die

Robertt schreef:WAT is opgelost?????????????????Opgelost..
Aarclay schreef:Hij gaf een error dat de url fout was volgens mij.. en daarna was het gedoe met spatie maar oplossing voor de mensen staat 2 berichten hierboven!WAT is opgelost?????????????????Eerdere citaten tonen
Robertt schreef:Opgelost..