[TYPO3-UG Dutch] php script includen

Bas Heutink webdesign at inbalanshasselt.nl
Wed Mar 21 11:36:21 CET 2007


Dag Rudy,

Hoe include je dit php bestand?

Ik neem aan niet met:
page.includeCSS {
  file2 = fileadmin/templates/xyzs/php/random_header.php
}
Dit werkt ook niet.
Ook niet met:
page.includeCSS {
  file2 = fileadmin/templates/xyzs/php/random_header.css
}

Groeten,
Bas


Rudy Gnodde wrote:
> Beste Bas,
> 
> Ik zou als ik jou was een stylesheet genereren met PHP, niet de
> bestandsnaam van een statische CSS file. Dit kan met het volgende stukje
> code:
> 
> <?php
> /*
>  Generates stylesheet for random header images
> */
> header('Content-type: text/css');
> 
> $path = 'random_images/';
> 
> $files = array();
> $dir = dir($path);
> while (false !== ($entry = $dir->read())) {


More information about the TYPO3-UG-dutch mailing list