Integrating Java with PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sheikhmdirfan
Forum Newbie
Posts: 22
Joined: Tue Jan 20, 2009 12:21 am

Integrating Java with PHP

Post by sheikhmdirfan »

Hello Everyone

Greetings!!!


I am using a Windows PC having XAMPP installed on it.

I want to run java code and classes through php.

How can i do it and do i need to change any settings..

Please show an example if possible...

Thanks in advance...
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Integrating Java with PHP

Post by requinix »

Any reason you can't convert the Java code into PHP code?
AlanG
Forum Contributor
Posts: 136
Joined: Wed Jun 10, 2009 1:03 am

Re: Integrating Java with PHP

Post by AlanG »

Why? You should use JSP. Mixing languages is a bad idea most of the time.
sheikhmdirfan
Forum Newbie
Posts: 22
Joined: Tue Jan 20, 2009 12:21 am

Re: Integrating Java with PHP

Post by sheikhmdirfan »

I have to make use of certain java libraries . thats why
AlanG
Forum Contributor
Posts: 136
Joined: Wed Jun 10, 2009 1:03 am

Re: Integrating Java with PHP

Post by AlanG »

sheikhmdirfan wrote:I have to make use of certain java libraries . thats why
Are they custom libraries or standard ones? If their custom, can you not rewrite them in PHP, and if their standard is there an equivalent in PHP?

What libraries are they?

If you really really really need to use Java, then you should look into JSP.
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: Integrating Java with PHP

Post by Mark Baker »

Post Reply