[Typo3] Problem with adding php script
Kimmo Helle
kimmo.helle at paitsio.com
Tue May 3 20:26:48 CEST 2005
Hi all,
I'm having a problem with adding this php script to my website. It works
fine if it's added as php script content element like this:
<?php
if (@include(getenv('DOCUMENT_ROOT').'/phpAdsNew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:7', 0, '_blank', '', '0',
$phpAds_context);
echo $phpAds_raw['html'];
}
?>
But I would like to align it to the centre and I have tried this:
A)
<div align="center">
<?php
....
?>
</div>
and:
B)
<?php
echo"<div align=\"center\">";
if (@include(getenv('DOCUMENT_ROOT').'/phpAdsNew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:6', 0, '_blank', '', '0',
$phpAds_context);
echo $phpAds_raw['html'];
}
echo"</div>";
?>
But what is left after saving is:
A)
<div align="center">
NOTHING AFTER THIS
And B)
<?php
echo"<div align=\"center\"
NOTHING AFTER THIS
How can I align this code here NOT in css.
Thanks for help in advance!
Cheers,
Kimmo Helle
More information about the TYPO3-english
mailing list