note 105953 rejected from function.http-build-query by danbrown

From: Date: Tue, 27 Sep 2011 14:17:35 +0000
Subject: note 105953 rejected from function.http-build-query by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-183480@lists.php.net to get a copy of this message
Note Submitter: antishape at gmail dot com ---- Right now I have this code <?php function getWikiIntroParagraph( $title ) { $url = 'http://de.wikipedia.org/w/index.php?' . http_build_query(array( 'title' => $title, 'action' => 'raw' )); // Download $url and do your magic extraction return $intro; } $posttags = get_the_tags(); if ($posttags) { echo '<ul>'; foreach($posttags as $tag) { echo '<li><strong>' . htmlspecialchars( $tag->name ) . '</strong>: ' . getWikiIntroParagraph( $tag->name ); } echo '</ul>'; } ?> But only returns list-elements (the tags in wordpress). I have no idea where the error could be someone suggested the http_build_query could contain an error. It's not my code but it was an example of how to get an extraction of a wikipedia article.

« previous php.notes (#183480) next »