Le 2015-11-10 13:00, Philippe Gras a écrit :
Le 10 nov. 2015 à 12:26, nicolas.pec...@laposte.net a écrit :
Effectivement, j'ai enlevé l'option: pcntl_exec
redémarrer apache2, mais rien n'y fait. :-(
Ce n'est pas la bonne fonction : pcntl-exec != exec ;
http://php.net/manual/fr/function.pcntl-exec.php
http://php.net/manual/fr/function.exec.php
Oui, je m'en doutais bien. mais, j'ai fait le test vu l'absence de exec
dans disable functions
J'avance un peu.
J'ai fait:
<?php¶
¶
$command = '/usr/bin/pdflatex test.tex';¶
$output = exec($command);¶
exec($command, $output, $retval);¶
var_dump($output);¶
?>
A la fin du fichier j'ai:
" [106]=> string(75)
"[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}
<../../images/3.png>]" [107]=> string(28) "(./test.aux) )" [108]=>
string(52) "(see the transcript file for additional information)"
[109]=> string(79) "!pdfTeX error: /usr/bin/pdflatex (file tcti1200):
Font tcti1200 at 600 not foun" [110]=> string(1) "d" [111]=> string(55)
" ==> Fatal error occurred, no output PDF file produced!" }
Mais, je sais pas trop quoi en faire. Surtout que dans une console, un
pdflatex test.tex fonctionne