Bonjour, j'ai un probl�me avec php (ou peut-�tre avec le shell ou.. )

j'ai une ligne comme ceci dans php:

passthru('echo "$out" |  ../inc/convert.sh');

$out contient une page web, pass� par "htmlentities()".
$out=htmlentities(($this->t->get(out)));

mon script convert.sh contient:
#!/bin/sh

TMP_FILE=/tmp/$$
read std
`echo "$std" |  html2ps  > "${TMP_FILE}.ps"`
ps2pdf "${TMP_FILE}.ps" "${TMP_FILE}.pdf"

cat "${TMP_FILE}.pdf"
rm "${TMP_FILE}.ps"
rm "${TMP_FILE}.pdf"

Si vous avez une id�e pourquoi �a ne marche pas, ou comment am�liorer tout �a, 
merci d'avance.
-- 
Yann Sagon
--
http://www-internal.alphanet.ch/linux-leman/ avant de poser
une question. Ouais, pour se d�sabonner aussi.

Répondre à