Solved

Using Windows DLL on an FreeBSD server using PHP

Posted on 2007-11-13
4
256 Views
Last Modified: 2012-08-14
In the past I have purchased a DLL to add the functionality of complex PDFs to my clients application and have always been developing for a Windows platform.  I have recently been contracted to all the same functionality to a PHP web site running on a FreeBSD server.  I would love to keep the same component I've used in the past http://www.xmlpdf.com/ibex.html.  
They have a .Net and a Java version of their product.  
So,  my question is it possible to use the .Net DLL within this web application and if so, how would I go about calling the DLL and using in it.  A generic example will do.  
OR
Will I need to use the Java version of their component within this web application and if so, how would I go about calling the DLL and using in it.  A generic example will do.

I have PHP experiance but I not kept up with it over the last 4 years.  Thanks for helping.

Robert Fidler
Springfield, Missouri
0
Comment
Question by:KPMT-Technician
  • 2
4 Comments
 
LVL 21

Accepted Solution

by:
nizsmo earned 250 total points
ID: 20276908
http://www.devarticles.com/c/a/PHP/Using-the-.NET-Assembly-in-PHP/1/
This may be of help and example, not sure if this is exactly what you are wanting.

However, personally I recommend not mixing technologies, as it may get complicated and easily incompatible. Here is something free which can create pdf's in PHP:
http://www.fpdf.org/

hope this helps.
0
 
LVL 6

Expert Comment

by:baev
ID: 20278624
May be this will be helpfull:
http://www.winehq.org
0
 
LVL 5

Author Comment

by:KPMT-Technician
ID: 20280656
nizsmo - I agree with you on not mixing the technologies but kinda in a tough spot.  Looks like from your first link it is possible ONLY if on a Windows OS.

baev - That would be a great solution to getting the windows api but I don't have control over the hosting server.

Thank you both.

I'll need to look for a PHP version of the http://www.xmlpdf.com/ibex.html component.  Mainly one that will accept XML as the data source and XSL-FO as the formatting source to create the PDF.

Robert Fidler
Springfield, Missouri
0
 
LVL 6

Assisted Solution

by:baev
baev earned 250 total points
ID: 20280932
I didn't test it and it is abandoned:
http://pear.php.net/package/XML_fo2pdf

And there are some native PHP-functions:
http://php.net/manual/en/ref.pdf.php
http://www.php.net/manual/en/ref.xsl.php
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now