php and java
Posted: Sat Nov 25, 2006 2:32 am
feyd | Please use
when i open this php file on the browser i get nothing. just an empty page. the exec command works with system file commands like ls, cat...
i have tried using other php command like passthru but i still get the same result
any ideas or suggestions? your help is appreciated
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hi,
i am kind of newbie in php. i am trying to run java program from php whithout having to instal php/java bridge on linux
bascally i am using the following commandsCode: Select all
<?php
$r1 = exec("javac hello.java");
$r2 = exec("java hello");
echo $r1;
echo $r2;
?>when i open this php file on the browser i get nothing. just an empty page. the exec command works with system file commands like ls, cat...
i have tried using other php command like passthru but i still get the same result
any ideas or suggestions? your help is appreciated
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]