Integrate a Wordpress website (in PHP) with a Java program

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Integrate a Wordpress website (in PHP) with a Java program

Postby _Manuel_ » Mon Jan 25, 2010 11:25 pm

Hello!
I developed a website using WordPress and it encompasses some php pages.

In another place, I have a Java program accessing a MYSQL database.

Now a user is supposed to be able to fill a form of the website and send data to the java program.

I didn't select the web server I'm going to use for the Java progam, so far.

How can I procede?
_Manuel_
Forum Newbie
 
Posts: 2
Joined: Mon Jan 25, 2010 11:19 pm

Re: Integrate a Wordpress website (in PHP) with a Java program

Postby _Manuel_ » Wed Jan 27, 2010 2:46 pm

No idea?

I was thinking about creating a java webservice (eclipse can help me), but how can a php program transfer data to the webservice?
_Manuel_
Forum Newbie
 
Posts: 2
Joined: Mon Jan 25, 2010 11:19 pm

Re: Integrate a Wordpress website (in PHP) with a Java program

Postby timWebUK » Thu Jan 28, 2010 5:37 am

The web form would post the data to a database. Then the Java application would access the database.

PHP wouldn't send data to the Java application.
User avatar
timWebUK
Forum Contributor
 
Posts: 223
Joined: Thu Oct 29, 2009 6:48 am
Location: UK

Re: Integrate a Wordpress website (in PHP) with a Java program

Postby JNettles » Mon Feb 01, 2010 1:59 pm

I would recommend building the web services. If you already have your data access models written and working then go ahead and incorporate them into a web service - this will keep your models together in spot and save you from rewriting the same code in a different language. I ran into the same situation awhile back - we had a huge .NET data access layer written for a different project that we needed to utilize in PHP so we wrote web services to expose the models.

Web services can take some getting used to, but they're simple enough.
Always write your functions like they're heroin addicts - they can't do anything without an injection.
User avatar
JNettles
Forum Contributor
 
Posts: 228
Joined: Mon Oct 05, 2009 4:09 pm


Return to PHP - Theory and Design

Who is online

Users browsing this forum: No registered users and 1 guest