[TYPO3-UG Dutch] pdf_generator2 > this file is damaged and could not be repaired

Muriel le Pair typo3 at strangefruit.nl
Wed Aug 11 12:09:20 CEST 2010


Op 11-8-2010 11:32, Muriel le Pair schreef:
> [11-aug-2010 11:32:56] Access denied to file ''

Ok weer een stapje verder de foutmelding komt voor uit dit stukje script:

(fetcher.url.class.php)
<?php

function fetch_file() {
     if (PHP_OS == "WINNT") {
       $path = substr($this->url, 7);
       if ($path{0} == "/") { $path = substr($path, 1); };
     } else {
       $path = substr($this->url, 7);
     };

     $normalized_path = realpath($path);

     if (substr($normalized_path, 0, strlen(FILE_PROTOCOL_RESTRICT)) !== 
FILE_PROTOCOL_RESTRICT) {
       error_log(sprintf("Access denied to file '%s' ", $normalized_path));

       $this->content = "";
       $this->code = HTTP_OK;
       return true;
     }

     $this->content = @file_get_contents($normalized_path);
     $this->code = HTTP_OK;

     return true;
   }
?>

$path is leeg.

Iemand enig idee of deze extensie echt kan werken zonder dat Pdflib op 
de server is geinstalleerd?
Iemand enig idee of deze extensie überhaupt werkt? of weet iemand een 
andere extensie waarmee je automatisch de tekst op een pagina kan 
opslaan in een PDF (en niet onbelangrijk die werkt!)?

-- 
met vriendelijke groet,

Muriel le Pair


More information about the TYPO3-UG-Dutch mailing list