answersLogoWhite

0


Best Answer

In the output stream (i.e. using echo), output an "embed" tag (or if using older HTML, the "applet" tag). Note that the Java will run on the client, not on the server, meaning that PHP variables, etc, will not be available to it.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

You can't. PHP is Server side. Java is embedded Client side within HTML.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you embed a Java program in PHP webpage?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you embed PHP code in C code?

PHP and C are two different programming languages that cannot directly interact with eachother. You can have a program made with C call a PHP script, using its output (an indirect interaction), but there's no way to "embed" PHP into C code.


What has the author Deepak Vohra written?

Deepak Vohra has written: 'Ruby on Rails for PHP and Java developers' -- subject(s): Ruby (Computer program language), Java (Computer program language), Web site development, PHP (Computer program language)


How do you load an access database over HTML?

With VB.NET or C#, both from Visual Studio from Microsoft, into an ASP.NET webpage. You can also do it with JAVA or PHP with the appropiate libraries.


What are Perl PHP and Java Servlet's?

Perl, php and Java are all examples of programming languages.


Example of dynamic webpage and its source code?

There are many programming languages in which you can write dynamic web pages - python, PHP, java, etc. A very simple example is given in the PHP tutorial for beginners - see related links.


How can you embed an ftp account login system to a webpage?

There are many different ways to "embed" a FTP interface on a webpage. One method is to use a server-side language, such as PHP or ASP. Both languages allow calls to FTP ports to alter, add, or delete files (and more, of course). Using a server-side language means pages would have to be reloaded every time a user would want to do something on a connection, making it a waste of bandwidth if your on a limit. A better alternative is to use an application object, built with something like Flash or Java. Flash is more expensive but is quite user-friendly, as Java is hard to learn but absolutely free to develop with.


How do you create an area of a webpage to display PHP results?

PHP code blocks start with <?php and end with ?>.


What is a PHP course?

After Apache concludes that is a PHP record, it offers it to the PHP translator. When PHP gets the record it peruses it and executes any PHP code it can discover. After it is finished with the record, the PHP mediator gives the yield of the code, assuming any, back to Apache. At the point when Apache gets the yield once again from PHP, it sends that yield back to a program which renders it to the screen.we can begin building up our first PHP/Java application: a flower specialist shopping basket application that shows six bunches of roses and their comparing costs. The application is a PHP content that executes a Java meeting bean, which will be the "motor" of the application on the grounds that the outcomes will be given by a Java class named flower Bean.PHP Tutorial : Javatpoint


What is the difference between PHP and struts?

STRUTs is a framework of technology of java based on JSP/Java Servlets PHP is another server scripting language


How do you give href toanother php page?

Here is the code below to redirect a webpage using php: <?php header('Location: url of the webpage'); // example: header('Location: index.php') exit; // exit after redirection is very important as php executes code line by line ?>


How do you read pdf file in php?

You have to embed it or include it inside a special framework. You can find many ways by searching for "PDF in PHP" in a search engine.


What is the difference between PHP and JSP?

They are different technologies - JSP stands for Java Server Pages, where PHP means PHP: Hypertext Preprocessor... Basically, they do the same thing - generate webpages, but JSP scripts are programmed in Java, and PHP scripts in PHP, which are completely different scripting languages. PHP is usually used in small to medium-sized projects, where Java tends to be percieved as a more "enterprisey" (aimed at large projects).