Solved

Using Windows DLL on an FreeBSD server using PHP

Posted on 2007-11-13
4
288 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 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 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 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
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.

707 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