File_get_content probleem

Gestart doorRobertt6 reacties6 weergaven

7 berichten · pagina 1 van 1

Robertt

Lid · Topicstarter

Berichten
1.579
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Opgelost..
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Ligt aan de server kant, aangezien je xampp gebruikt ligt het aan je php versie.
0
Robertt

Lid · Topicstarter

Berichten
1.579
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Opgelost, zal zo even oplossing posten moet even goed uitwerken!
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Wat was de oplossing en het probleem?
//ik zie wel dat je het gaat posten. Mijn fout
0
Robertt

Lid · Topicstarter

Berichten
1.579
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
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]&amp;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 pompom
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Robertt schreef:
Opgelost..
WAT is opgelost?????????????????
0
Robertt

Lid · Topicstarter

Berichten
1.579
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Eerdere citaten tonen
Robertt schreef:
Opgelost..
WAT is opgelost?????????????????
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!
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