Re: How config attachment_doc plugin under IIS server on W2003

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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
> pdftohtml.exe...
> 
> 
> 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
$dirname/$htmlname";

or 

$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.

$pdftohtmlcmd = "d:\\posta\\pdftohtml\\pdftohtml.exe -q -c -noframes
d:\\squirrelmail\\plugins\\attachment_doc\\tmp\\$pdfname
d:\\squirrelmail\\plugins\\attachment_doc\\tmp\\$htmlname";

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.

-- 
Tomas
-- 
View this message in context: http://old.nabble.com/How-config-attachment_doc-plugin-under-IIS-server-on-W2003-tp30453756p30461354.html
Sent from the squirrelmail-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux