On Tue, Dec 14, 2010 at 10:14 PM, Tomas Kuliavas
> giordan wrote:
>> as in object on a system W2003 i have hmailserver mysql IIS
>> squirrelmail.. all works fine, but i'd like use the plugin above to view
>> directly in html some documents, expecially pdf files. I found the windows
>> pdftohtml.exe version, but i don't know how configure config.php to use
>> this converter with the right path "translated" from linux syntax to
>> windows... "/usr/local/bin" , where is stored binary pdftohtml on linux,
>> but I have a path like "D:\posta\pdftohtml" where is stored
>> Someone in the same situation, has solved this question?
> Put pdftohtml.exe in PATH and you won't have to use full path.
> $pdftohtmlcmd = "pdftohtml.exe -q -c -noframes $dirname/$pdfname
> $pdftohtmlcmd = "d:/posta/pdftohtml/pdftohtml.exe -q -c -noframes
> $dirname/$pdfname $dirname/$htmlname";
> When paths are used in Windows PHP, slash can be used instead of forward
> slash. Problem can happen only in program arguments. If you still want to
> use forward slash or pdftohtml.exe allows only forward slashes in arguments,
> you should remember that it is used as escape symbol in PHP scripts. Every
> time you use \ in PHP string, you must add second \ in order to make sure
> that forward slash is treated as forward slash and not as escape.
FYI, this nomenclature is backward.
\ is a *back*slash
/ is a forward slash
> $pdftohtmlcmd = "d:\\posta\\pdftohtml\\pdftohtml.exe -q -c -noframes
> Currently I can't test it. Let me know if any of above solves your problem.
> Replace 'd:\\squirrelmail' with correct path to your SquirrelMail install.
Please support Open Source Software by donating to SquirrelMail!