HTMLDOC, Magic Quotes and Red Hat 9
BACKGROUND: I'm running RH9 and have HTMLDOC 1.8.23 compiled using gcc from intrepid.com and in my php.ini I have magic_quotes_gpc set to on.
SCENARIO: I'm generating a html page using PHP passing the parameters across as;
passthru("htmldoc -t pdf14 --webpage --left 5mm --gray --topmargin 50 --landscape --bodyfont Arial --browserwidth 960 --fontsize 12 " . stripslashes($url_list_decoded));
PROBLEM: When passing a file ($url_list_decoded) to HTMLDOC enclosed with a single quote I get an HTMLDOC error 5 with the full $url_list_decoded double quoted and including my single quotes. Running the same PHP in a Linux Schell environment is okay.
|