SunQuest
 
       Java
  Home arrow Java arrow PHP Interacting with J2ME
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVA

PHP Interacting with J2ME
By: Jason Lam
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 73
    2003-06-10

    Table of Contents:
  • PHP Interacting with J2ME
  • The Article
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    PHP Interacting with J2ME


    (Page 1 of 3 )

    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...

    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.

    More Java Articles
    More By Jason Lam


       · I really want to thank to you for the codes.they're really helpfull :)Two thums...
     

    JAVA ARTICLES

    - 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 ...
    - Generics and Limitations in Java
    - Getting Started with Java Web Development in...







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway