?
Solved

Using Windows DLL on an FreeBSD server using PHP

Posted on 2007-11-13
4
Medium Priority
?
293 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 21

Accepted Solution

by:
nizsmo earned 750 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 7

Expert Comment

by:Dmitrii
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 7

Assisted Solution

by:Dmitrii
Dmitrii earned 750 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

765 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