# Make sure to force Unicode for Wikipedia content -- otherwise all foreign scripts will display utter nonsense. This should of course be in your header, though my experimenting shows it may as well stay right here. echo ''; # Make sure images do not display with a border. echo ''; $default_title = 'Spam'; # If you do not specify a title, this will be your default page. $sourceurl = 'http://de.wikipedia.org/wiki/'; # This URL changes from time to time. If the script stops working suddenly, first check whether Wikipedia.Org changed the URL syntax. $pathfromroot = substr( $_SERVER['REQUEST_URI'], 0, strpos( $_SERVER['REQUEST_URI'], "?" ) ); $title_wiki = $_GET['title']; if ($title_wiki == "") { $title_wiki = $default_title; } $nicetitle = str_replace( "_", " ", stripslashes( $title_wiki ) ); function callback( $buffer ) { global $nicetitle; global $title_wiki; global $sourceurl; # Separate the article content $buffer = substr( $buffer, strpos( $buffer, '' ) ); $buffer = substr( $buffer, 0, strpos( $buffer, '