Jump to content


How to run a php script from Java

  • Please log in to reply
1 reply to this topic

#1 pop-eye

  • Members
  • PipPip
  • Member
  • 10 posts
  • LocationNew York, NY

Posted 28 July 2006 - 07:39 PM

I need to run a PHP script from inside a java code. I do not need the user to click on any image or text or botton to load it. There is some java processing and than to run a PHP script passing some variable like "phpcode1.php?var1='xyz'" where the var1 was defined and created inside the Java script.
Thanks for your help.
The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge. Stephen Hawking

#2 sanfly

  • Members
  • PipPipPip
  • Advanced Member
  • 344 posts
  • LocationNew Zealand

Posted 29 July 2006 - 11:37 PM

you can use php to put variables into javascript, but not the other way around to the best of my knowledge.

Perhaps if you explain in a bit more detail, perhaps with some sample code, we can help to figure out a work-around.
If you're not part of the solution, you're part of the precipitate

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users