Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3598178
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:12:36+00:00 2026-05-18T20:12:36+00:00

I want to be able to send a parameter to a php page that

  • 0

I want to be able to send a parameter to a php page that contains a devices IMEI/MEID.

I then want the php page to take that IMEI parameter and check a list of IMEI’s to see if the IMEI sent as a parameter from my Java mobile app is contained in a database, if it is then return true.

I only know the very basics of php but I believe this should be possible?

If so can anyone point me in the right direction of what php functions I should be looking into?

And also the best way to pass the parameter from java?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:12:37+00:00Added an answer on May 18, 2026 at 8:12 pm

    Yes, it’s perfectly possible. You don’t pass parameters to php functions. Instead of that, you use HTTP protocol to execute php scripts.

    You need to execute a GET HTTP command from your mobile device like this:

    http://your.app.server.com/imei_script.php?imei=IMEI_VALUE
    

    In your PHP script, you will have something simple like:

    <?php
        // to return plain text
        header("Content-Type: plain/text"); 
        $imei = $_GET["imei"];
        // make a DB call to check if IMEI exists
        // store "true" or "false" string in $retval
        echo($retval);
    ?>
    

    Your PHP script will reside in your application server (Apache with MOD_PHP). Refer to Apache’s documentation to setup it with PHP support, and to learn where to place the script. You will have to add the DB part. There are lots of examples you can find on the internet (even in StackOverflow) to learn how to connect to a Database with PHP. They all depend on what database you connect to, so when you search (or ask in StackOverflow), make sure you specify what DB you are connecting to.

    To invoke remote HTTP commands with Java ME you can use HttpConnection interface.

    You will use something like:

    String imei = ...;
    String url = "http://your.app.server.com/imei_script.php?imei=" + imei;
    // This will remotely call your PHP script with the IMEI parameter you need
    HttpConnection c = (HttpConnection)Connector.open(url);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to be able to send a parameter to a php page that
I want a PHP to be able to send 1 of 3 images, depending
I want to be able to send e-mail from my own domain (Domain.com) over
I want to be able to capture the exception that is thrown when a
I want to be able to send JSON as opposed to the standard QueryStrings
I want to be able to send the text on the clipboard, in Windows,
I want to be able to send already-signed-in-users somewhere else when they go to
I want to be able to send a password reset email using django.contrib.auth.views.password_reset but
I want to be able to send updates (in news activity) to users who
I want to be able to do: For Each thing In things End For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.