Am instalat openads; e ok insa am si cateva nemultumiri: statisticile nu le afiseaza in timp real ci tb configurat sa execute un script de mentenanta, delay-ul in actualizarea modificarilor de bannere este enervant, etc... Sigur toate astea sunt pt performanta...
Zonele le-am apelat local prin cod php insa imi face ceva probleme la scripturile din site de aceea as vrea sa incerc tag-ul XML-RPC care arata asa:
<?php
/* <!-- Openads XML-RPC Tag v2.4.2 -->
*
* As the PHP script below tries to set cookies, it must be called
* before any output is sent to the user's browser. Once the script
* has finished running, the HTML code needed to display the ad is
* stored in the $adArray array (so that multiple ads can be obtained
* by using mulitple tags). Once all ads have been obtained, and all
* cookies set, then you can send output to the user's browser, and
* print out the contents of $adArray where appropriate.
*
* Example code for printing from $adArray is at the end of the tag -
* you will need to remove this before using the tag in production.
* Remember to ensure that the PEAR::XML-RPC package is installed
* and available to this script, and to copy over the
* lib/xmlrpc/php/openads-xmlrpc.inc.php library file. You may need to
* alter the 'include_path' value immediately below.
*/
//ini_set('include_path', '.:/usr/local/lib');
require 'openads-xmlrpc.inc.php';
if (!isset($OA_context)) $OA_context = array();
$oaXmlRpc = new OA_XmlRpc('ads24.bonesimenajere.ro', '/www/delivery/axmlrpc.php', 0, false, 15);
$adArray = $oaXmlRpc->view('zone:5', 0, '', '', 0, $OA_context);
echo $adArray['html'];
?>
Nu ma prind ce trebuie facut si unde sa copiez fisierul openads-xmlrpc.inc.php.
Celelalte instructiuni le-am respectat: prima parte a codului am pus-o in top, inainte de orice iar afisarea acolo unde trebuie.
Ma puteti ajuta?!



Răspunde cu citat


