LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-15-2004, 01:45 AM   #1
antony_csf
Member
 
Registered: Jun 2004
Posts: 51

Rep: Reputation: 15
Help php exec, system function for compile javac or java


Can anyone have this experience to use php code to call external compiler to compile program e.g:


<?php
exec("javac $filename > error.txt");
exec("java HelloWorld > output.txt");
?>

I can compile the program on window platform but not in linux.

In window, it works.

In linux, the result the is nothing. [not compile the program and no output also]

Anyone have this experience before ??

I would like to know how to call a compiler using php [any setting on linux or apache or php]??

Thx.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make javac (java compiler) available on whole system? tisam Linux - Software 11 02-14-2005 09:11 AM
use gcc or javac for java compile? jordanGSU Programming 22 10-15-2004 09:12 AM
Help php compile javac or java system environment variable antony_csf Programming 1 06-16-2004 01:12 PM
Perl exec function in linux (and system-function) nazula Programming 1 04-19-2004 12:21 PM
Can't compile Java Swing Applet with javac chansky Programming 4 09-23-2002 04:50 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration