473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

php integration with java

how to using java class in php?

thank you
Aug 29 '07 #1
6 1568
ak1dnar
1,584 Expert 1GB
Welcome to TheScripts.com

Are you familiar with Php Documentation for java
Aug 29 '07 #2
i have java class and i don't know how to use my java class in php languange.

if may, please give me the detail process.

thank you
Aug 29 '07 #3
this is my java class:
filename : HGO.class and HGO.java

Script:
Expand|Select|Wrap|Line Numbers
  1. package nano;
  2.  
  3. import java.io.IOException;
  4. import java.net.DatagramPacket;
  5. import java.net.DatagramSocket;
  6. import java.net.InetAddress;
  7. import java.net.SocketTimeoutException;
  8. import java.util.Calendar;
  9.  
  10. public class HNOL
  11. {
  12.     public HNOL()
  13.     {
  14.         strIP = null;
  15.                 }
  16.     public String getIP()
  17.     {
  18.         return strIP;
  19.     }
  20. }
  21.  
my problem is how to use getIP() in php.

thank you
Aug 29 '07 #4
pbmods
5,821 Expert 4TB
Heya, Duit.

Please use CODE tags when posting source code. See the REPLY GUIDELINES on the right side of the page next time you post.

You'll need to use a PHP/Java Bridge, such as PHP/Java Bridge.
Aug 29 '07 #5
pbmods
5,821 Expert 4TB
Merged duplicate threads.
Aug 29 '07 #6
pbmods
5,821 Expert 4TB
Heya, Duit.

Of course, your other option is to simply use $_SERVER['REMOTE_ADDR'] if you want to get the IP address of a visitor....
Aug 29 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Joachim Boomberschloss | last post by:
Hello, I am working on a project in Python, and I"m currently looking into the possibiliy of writing some of the project"s modules in Java. Given that a large part of the code is already...
4
by: Dan | last post by:
Hello all. I am currently working on a project for several Hospitals. The application is written in Java, and the database is either Oracle or MySql, depending on the client. For a while now,...
0
by: Stylus Studio | last post by:
DataDirect XQuery(TM) is the First Embeddable Component for XQuery That is Modeled after the XQuery API for Java(TM) (XQJ) BEDFORD, Mass.--Sept. 20, 2005--DataDirect Technologies...
0
by: John | last post by:
We are doing integration with an AS400 running websphere - webservices. When the customer (AS400) calls the .Net webservice the customers java code (every other request or so) throws the following...
0
by: Rithish | last post by:
OS : RHEL3 PHP version : 5.0.2 JDK version : 1.5.0.06 I have been trying to compile PHP with JAVA support for the past week, and all I have left to do is take a noose and hang myself. Of all...
8
by: Dave Potts | last post by:
Hi, I'm just starting a development project in Python having spent time in the Java world. I was wondering what tool advice you could give me about setting up a continuous integration...
1
by: YellowfinTeam | last post by:
Marketplace: Yellowfin reporting 3.1 with BIRT Integration Yellowfin is proud to announce the release of 3.1. The major theme of this release is enhanced integration capability. We have...
3
by: stien | last post by:
Hi, I'm looking for someon who can help me with a problem with the php/java integration...It just won't work.. Here are some data to describe the software/system I'm working with:...
3
by: 2b|!2b==? | last post by:
Die-hard C++ enthusiast hear (only been recently converted - actually dragged kicking and screaming to ASP.net). I have loads of C++ libraries - what is the technology/methodolgy that provides...
5
by: Hussein B | last post by:
Hi. Please correct my if I'm wrong but it seems to me that the major continuous integration servers (Hudson, CruiseControl, TeamCity ..) don't support Python based application. It seems they...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.