Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using Windows DLL on an FreeBSD server using PHP

Posted on 2007-11-13
4
Medium Priority
?
300 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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.
Suggested Courses

604 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