Script in een script voegen
Ik werk met Joomla en wil in een van de php bestanden een script invoegen die banners toont. Heb echter 0,niks verstand van PHP.
Heb wel e.e.a. geprobeerd, maar, maar krijg de foutmelding: Parse error: syntax error, unexpected '<' in /home/
<div class = "bof-bottom-modul">
</div>
[/CODE]
Ik zou graag willen weten wat de juiste manier is om dit te laten werken. Alvast bedant
Heb wel e.e.a. geprobeerd, maar, maar krijg de foutmelding: Parse error: syntax error, unexpected '<' in /home/
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
$hm = "/home/chico/domains/chicobonito.nl/public_html/HBR";
$hm2 = "http://www.chicobonito.nl/HBR";
include "$hm/hioxBannerRotate.php";
?>
[/CODE]
Dit het stuk van de code waar het in moet komen. Heb het nu dus zo staan...wat niet klopt.
[CODE] default:
if (file_exists(JB_ABSTMPLTPATH . '/listcat.php')) {
include (JB_ABSTMPLTPATH . '/listcat.php');
}
else {
include (JB_ABSPATH . '/template/default/listcat.php');
}
break;
} //hctiws
// Bottom Module
if (mosCountModules('fb_bottom'))
{
?>
$hm = "/home/chico/domains/chicobonito.nl/public_html/HBR";
$hm2 = "http://www.chicobonito.nl/HBR";
include "$hm/hioxBannerRotate.php";
?>
[/CODE]
Dit het stuk van de code waar het in moet komen. Heb het nu dus zo staan...wat niet klopt.
[CODE] default:
if (file_exists(JB_ABSTMPLTPATH . '/listcat.php')) {
include (JB_ABSTMPLTPATH . '/listcat.php');
}
else {
include (JB_ABSPATH . '/template/default/listcat.php');
}
break;
} //hctiws
// Bottom Module
if (mosCountModules('fb_bottom'))
{
?>
<div class = "bof-bottom-modul">
</div>
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
}
[code]<?php
$hm = "/home/chico/domains/chicobonito.nl/public_html/HBR";
$hm2 = "http://www.chicobonito.nl/HBR";
include "$hm/hioxBannerRotate.php";
?>
// display footer
$obj_FB_tmpl->readTemplatesFromFile("footer.html");
$obj_FB_tmpl->displayParsedTemplate('fb-footer');
} //else
// Just for debugging and performance analysis
$mtime = explode(" ", microtime());
$tend = $mtime[1] + $mtime[0];
$tpassed = ($tend - $tstart);
//echo $tpassed;
?>
}
[code]<?php
$hm = "/home/chico/domains/chicobonito.nl/public_html/HBR";
$hm2 = "http://www.chicobonito.nl/HBR";
include "$hm/hioxBannerRotate.php";
?>
// display footer
$obj_FB_tmpl->readTemplatesFromFile("footer.html");
$obj_FB_tmpl->displayParsedTemplate('fb-footer');
} //else
// Just for debugging and performance analysis
$mtime = explode(" ", microtime());
$tend = $mtime[1] + $mtime[0];
$tpassed = ($tend - $tstart);
//echo $tpassed;
?>
[/CODE]
Ik zou graag willen weten wat de juiste manier is om dit te laten werken. Alvast bedant
Gesponsorde koppelingen:
michel schreef op 15.09.2008 10:39:
Parse error: syntax error, unexpected '<' in /home/
Daar staat het regelnummer bij. Dus je weet precies waar je moet zoeken. Zo te zien is er op de regel ervoor iets niet afgesloten.



