?
Solved

How to load OCX file into PHP

Posted on 2008-11-04
2
Medium Priority
?
1,227 Views
Last Modified: 2013-12-13
Dear Experts,

could you help me, i wanna ask,i had an OCX File,now i want to load this OCX files into PHP,how can i do this action?

regards

Louis
0
Comment
Question by:antonius_louis
1 Comment
 
LVL 13

Accepted Solution

by:
Xyptilon2 earned 2000 total points
ID: 22883520
Try using COM:

<?PHP

//create an instance of Windows Media Player
$oMp = new COM("WMPlayer.OCX");

//ejects the first cd-rom on the drive list
$oMp->cdromcollection->item(0)->eject();

?>

Or perhaps these pages are useful to you:
http://php.net/dotnet_load
http://ptalus.blogspot.com

Goodluck!
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

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…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses
Course of the Month17 days, 10 hours left to enroll

830 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