Ernst_Steininger Posted March 13, 2007 Report Share Posted March 13, 2007 Ich möchte im Produktlistingbereich abhängig vom Kategorienamen den Inhalt einer anderen Webpage einblenden. Wie kann ich das technisch sauber lösen? Kann mir hier jemand helfen! // create a new curl resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "http://www.checkavailability.info/stock/cscoopgr.asp?ID=".$category['categories_name']); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // grab URL, and return output $output = curl_exec($ch); // close curl resource, and free up system resources curl_close($ch); // Replace 'Google' with 'PHPit' $output = str_replace('<img src="images/projektor_at_logo.gif" width="350" height="80" vspace="30">', '', $output); $output = str_replace('<IMG height=10 src="images/default_r9_c2.gif" width=350>', '', $output); $output = str_replace('height="140" ', '', $output); $output = str_replace('height=30', '', $output); $output = str_replace('<a href="" onClick="window.close()">Fenster schließen</a>', '', $output); $output = str_replace('Lampen Vorrat für', '', $output); $output = str_replace('center', 'left', $output); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.