Hello,
we are using a PhpAdsNew system for our banner management. This system is located in it’s own website.
When i try to create a snippet that uses the local PHP invocation of phpadsnew banners i get an error in modX.
This is the code in the snippet:
<?php
if (@include(’e:/Websites/phpAdsNew/phpadsnew.inc.php’)) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw (’1’, 2, ’_blank’, ’’, ’1’, $phpAds_context);
echo $phpAds_raw[’html’];
}
?>
and this is the error i get:
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Unknown(e:/Websites/phpAdsNew/phpadsnew.inc.php): failed to open stream: No such file or directory
Error type/ Nr.: Warning - 2
File: E:\websites\modxB5\manager\includes\document.parser.class.inc.php(748) : eval()’d code
Line: 2
the funny thing: the path is correct! Maybe modX ads something to the include path or something?
Olaf
it’s a windows box, so case insensitive
Olaf