Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3-german] Eigene Ext: class.t3lib_svbase.php -> readFile within the typo3-german@lists.netfielders.de forums, part of the TYPO3-Mailinglisten: DEUTSCH category; Hi Liste. Ich habe eine Ext. und möchte gerne die Funktion readFile aus der Klasse t3lib_svbase nutzen. Folgendes Script ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi Liste.
Ich habe eine Ext. und möchte gerne die Funktion readFile aus der Klasse t3lib_svbase nutzen. Folgendes Script habe ich dazu verwendet. require_once(PATH_t3lib.'class.t3lib_svbase.php'); .... .... function main($content,$conf) { $readObj = t3lib_div::makeInstance('t3lib_svbase'); .... .... $test = $readObj->readFile($serverurl.$file_path.$filesrc); t3lib_div::debug($test,'$test'); .... .... Leider erhalte ich bei Debug nicht den Inhalts der Datei. Es kommt aber auch kein Fehler. $serverurl = http://localhost:8503/ $file_path = fileadmin/csv/ $filesrc = test.csv Warum geht das nicht? Danke und Gruß Niels _______________________________________________ TYPO3-german mailing list TYPO3-german (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...o/typo3-german |
|
#2
|
|||
|
|||
|
Hallo Niels,
cool_coders (AT) web (DOT) de schrieb: > $readObj = t3lib_div::makeInstance('t3lib_svbase'); > ... > $test = $readObj->readFile($serverurl.$file_path.$filesrc); > > $serverurl = http://localhost:8503/ > $file_path = fileadmin/csv/ > $filesrc = test.csv > > Warum geht das nicht? Diese Funktion liest Dateien aus dem Dateisystem ein und _nicht_ über http. Für letzteres ist die Funktion t3lib_div::getURL zuständig. HTH -- lib.salutation = TEXT lib.salutation.value = Kind regards, Helmut lib.salutation.lang.de = Viele Grüße, Helmut _______________________________________________ TYPO3-german mailing list TYPO3-german (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...o/typo3-german |
|
#3
|
|||
|
|||
|
ah ok
dank dir gruß niels > Hallo Niels, > > cool_coders (AT) web (DOT) de schrieb: > >> $readObj = t3lib_div::makeInstance('t3lib_svbase'); >> ... >> $test = $readObj->readFile($serverurl.$file_path.$filesrc); >> >> $serverurl = http://localhost:8503/ >> $file_path = fileadmin/csv/ >> $filesrc = test.csv >> >> Warum geht das nicht? >> > > Diese Funktion liest Dateien aus dem Dateisystem ein und _nicht_ über > http. Für letzteres ist die Funktion t3lib_div::getURL zuständig. > > HTH > > _______________________________________________ TYPO3-german mailing list TYPO3-german (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...o/typo3-german |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-german] tt_news eigene css ? | Basti | typo3-german@lists.netfielders.de | 5 | 11.12.2007 10:28 |
| [TYPO3-german] Übersetzungsbausteine für eigene Extensions | Leitner, Georg | typo3-german@lists.netfielders.de | 2 | 21.08.2007 14:59 |
| [TYPO3] hl dam gallery - Class filename"class.ux_tslib_content.php" did NOT contain the class"ux_tslib_content"! | dave typo | typo3-english@lists.netfielders.de | 0 | 06.03.2007 17:51 |
| [TYPO3] hl dam gallery - Class filename"class.ux_tslib_content.php" did NOT contain the class"ux_tslib_content"! | dave typo | typo3-english@lists.netfielders.de | 0 | 06.03.2007 17:51 |
| [TYPO3] sr_freecap: Fatal error: Class 't3lib_TStemplate' not foundin/typo3/sysext/cms/tslib/class.tslib_gifbuilder.php on line 169 | Antonio Willybiro | typo3-english@lists.netfielders.de | 0 | 28.12.2006 20:48 |