Hallo Kristina,
ganz einfach in TEXT wird kein PHP geparsed. 
Es wird einfach als Text ausgeben :)

Die Sauberste lösung ist es für dein PHP script eine Eigene Extension zu machen.

Ansonsten gibt es noch die USER und USER_INT objecte 
http://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/UserAndUserInt/Index.html

die es erlauben php funktionen aufzurufen.

Gruss chris

-----Ursprüngliche Nachricht-----
Von: typo3-german-boun...@lists.typo3.org 
[mailto:typo3-german-boun...@lists.typo3.org] Im Auftrag von Kristina Dr??mmer
Gesendet: Dienstag, 15. Juli 2014 11:02
An: typo3-german@lists.typo3.org
Betreff: [TYPO3-german] PHP-Datei im head einbinden

Hallo!

Ich versuche jetzt schon eine Stunde lang eine PHP-Datei in den head-Bereich 
einzubinden, sie wird einfach nicht angezeigt im Quellcode -.- Hier mein 
Typoscript vom head:

page = PAGE

page.stylesheet = fileadmin/templates/css/td.css

page.headerData.20 = PHP_SCRIPT
page.headerData.20.file= fileadmin/templates/php/image.php

page.includeJS {
  jquery = fileadmin/templates/lightbox/js/jquery-1.11.0.min.js
  lightbox = fileadmin/templates/lightbox/js/lightbox.min.js
}

page.headerData.10 = TEXT    
page.headerData.10.value (
<link href='http://fonts.googleapis.com/css?family=Arvo:400,700' 
rel='stylesheet' type='text/css'> <link 
href='http://fonts.googleapis.com/css?family=Strait' rel='stylesheet' 
type='text/css'> <link href='http://fonts.googleapis.com/css?family=Sintony' 
rel='stylesheet' type='text/css'> <style type="text/css">.bg1{background: 
#E9E6E0 url(fileadmin/templates/img/<?php $content $selectedBg; ?>) no-repeat 
bottom center;}</style>
)

page.includeCSS {
    file1 = fileadmin/templates/lightbox/css/lightbox.css
}


Was mache ich falsch???

_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an