| | |
PHP and JAVA
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
No but you can do it the other way around. www.php.net/Java
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
•
•
•
•
Hi.
I don't know whether this is the right place asking this question or no.
I want to know, is it possible to use PHP code into JAVA code?
if yes how?
See:
http://www.caucho.com/resin-3.0/quercus/
http://www.projectzero.org/
http://www.sun.com/download/products.xml?id=45c26bc9
If you need something simple, you can just built the PHP executable on your Java Server, and then when you need to run some PHP, execute a system command within Java code that has the PHP executable execute some PHP for you. (write the command to stdin and read stdout)
eg:
http://www.wellho.net/resources/ex.p.../Discfree.java
http://www.devdaily.com/java/edu/pj/...pj010016.shtml
the command would look like:
(on linux)
PHP Syntax (Toggle Plain Text)
/usr/bin/php -r "echo 'hello from php binary';"
where "echo 'hello from php binary';" is the command sent to php.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
•
•
•
•
Thanks very much for the information, still I am confused.
I want to know it is possible to use something like the following in a .java file.
System.out.println("<?php echo "<h1> Welocme</h1>" ?>");
If they don't they you could still write your own Java code that would reparse the output from Java with the PHP interpreter before it is sent to HTTP.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
Similar Threads
- PHP and JAVA vs .NET (IT Professionals' Lounge)
- Java or PHP? (IT Professionals' Lounge)
- Can a PHP website be edited by myself? (PHP)
- I need an ide for php (PHP)
Other Threads in the PHP Forum
- Previous Thread: Would someone like to disect this class with me?
- Next Thread: Barcode or Black stripe
| Thread Tools | Search this Thread |
.htaccess alerts apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code convert cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google hack href htaccess html htmlspecialchars image include insert ip javasciptvalidation javascript joomla keywords limit link login mail matching menu methods mlm multiple mysql network object oop paypal pdf php problem query radio random recursion recursive redirect remote script search securephp server sessions shot sms source space sql subscription syntax system table tutorial tutorials update upload url validator variable video web youtube






