Heya one2xs,
Ik wil voor een persoonlijke website van verschillende websites bepaalde data ophalen. Echter duurt dit nogal lang, en krijg ik de data niet mooi in een array. Het probleem is dus ook dat ikde data telkens moet filteren tot er genoeg data weggehaald is.
Ik heb bijvoorbeeld voor dit http://just-rik.nl/magic/?q=Adventuring+Gear de volgende code nodig:
waarbij zoals je ziet de code nog steeds niet volledige gefilterd is.
Zou iemand mij kunnen helpen met het filteren van de informatie die benodigd is, en dit ook in een begrijpelijke url kunnen zetten?
Meer informatie krijg je nog wel ^^
~ Rik
Ik wil voor een persoonlijke website van verschillende websites bepaalde data ophalen. Echter duurt dit nogal lang, en krijg ik de data niet mooi in een array. Het probleem is dus ook dat ikde data telkens moet filteren tot er genoeg data weggehaald is.
Ik heb bijvoorbeeld voor dit http://just-rik.nl/magic/?q=Adventuring+Gear de volgende code nodig:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]"timer.class.php"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]"curl.class.php"[/COLOR][COLOR= #007700];[/COLOR]
Timer[COLOR= #007700]:[/COLOR]SMILEYYYYYYYYYYYBEGIN[COLOR= #007700]:[/COLOR]startTime[COLOR= #007700]();[/COLOR]
[COLOR= #0000BB]$curl[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://sales.starcitygames.com/search.php?substring=[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]q[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$content[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]<td class="deckdbbody[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$curl[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$content[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$cardid[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$cardcont[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$cardcont[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])))
{[/COLOR]
[COLOR= #0000BB]$content[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]$cardid[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strip_tags"]strip_tags[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$cardcont[/COLOR][COLOR= #007700]),[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700]);
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[COLOR= #0000BB]$content[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]$cardid[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strip_tags"]strip_tags[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$cardcont[/COLOR][COLOR= #007700]),[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700]);
}
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]FORUMCODE0[/COLOR][COLOR= #007700];[/COLOR]
Timer[COLOR= #007700]:[/COLOR]SMILEYYYYYYYYYYYBEGIN[COLOR= #007700]:[/COLOR]stopTime[COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<!--[/COLOR] [COLOR= #007700].[/COLOR] Timer[COLOR= #007700]:[/COLOR]SMILEYYYYYYYYYYYBEGIN[COLOR= #007700]:[/COLOR]showTime[COLOR= #007700]() .[/COLOR] [COLOR= #DD0000]-->[/COLOR][COLOR= #007700];[/COLOR]
?> waarbij zoals je ziet de code nog steeds niet volledige gefilterd is.
Zou iemand mij kunnen helpen met het filteren van de informatie die benodigd is, en dit ook in een begrijpelijke url kunnen zetten?
Meer informatie krijg je nog wel ^^
~ Rik