Home arrow Java arrow PHP Interacting with J2ME
JAVA

PHP Interacting with J2ME


Did you know that you can use PHP to interact with J2ME to work with mobile devices? If you didn't, read on to learn how...

Author Info:
By: Jason Lam
Rating: 5 stars5 stars5 stars5 stars5 stars / 95
June 10, 2003
TABLE OF CONTENTS:
  1. · PHP Interacting with J2ME
  2. · The Article
  3. · Conclusion

print this article
SEARCH DEVARTICLES

PHP Interacting with J2ME
(Page 1 of 3 )

Why PHP with J2ME?
You my have noticed in last year or two there has been an increasing boom in technology in the area of mobile handsets and mobile software development.  Wireless technology is not only becoming more commonplace, but also more affordable.  To support this even further, a survey released by IDC projected revenues in wireless gaming alone will generate approximately 72.2 million by 2007.  Along side with mobile gaming there will be an ever-increasing demand for mobile applications.

This is all fine and dandy, but what does it have to do with PHP?  Not only will there be thousands of new wireless applications, but many existing applications of today will also be enhanced/modified to work with mobile handsets.  In most cases it would make sense to keep the current technology and architecture and simply have it interface with the new mobile technology.

This possibly means that sites already written in PHP now need to interact with mobile technology. One of the more popular emerging technologies is J2ME.  J2ME is provided by Sun Microsystems and stands for Java 2 Platform Micro Edition.  To learn more about J2ME and Java general, visit http://java.sun.com

J2ME produces small Java applications or games called midlets.  A very simple comparison would go like this: midlets are to WML what Java applets are to HTML.  Though midlets do not run directly inside WML, you would access/download a midlet through a WML capable browser.  You also have the option to directly upload the midlet to your mobile handset via a PC and cable connector.

There are a few options available when considering how to communicate from PHP to J2ME:

  • HTTP Simple Fetch
  • HTTP GET/POST
  • Web Services
  • Fetching Images

Requirements
This article uses both J2ME and PHP.  You will need the J2ME development kit from http://wireless.java.sun.com. You will also need a basic Apache and PHP web server setup.  Apache can be obtained from http://www.apache.org.  Please consult theses sites for installation instructions.  Once you’ve successfully installed the software, continue with the article.


blog comments powered by Disqus
JAVA ARTICLES

- Java Too Insecure, Says Microsoft Researcher
- Google Beats Oracle in Java Ruling
- Deploying Multiple Java Applets as One
- Deploying Java Applets
- Understanding Deployment Frameworks
- Database Programming in Java Using JDBC
- Extension Interfaces and SAX
- Entities, Handlers and SAX
- Advanced SAX
- Conversions and Java Print Streams
- Formatters and Java Print Streams
- Java Print Streams
- Wildcards, Arrays, and Generics in Java
- Wildcards and Generic Methods in Java
- Finishing the Project: Java Web Development ...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials