gcc - How to compile c code in php - linux environment -


i using fedora 14 , gcc compiler compile c code. using php(lampp) trying call helloworld. trying following code

exec('gcc hello.c', $x,$y); echo $x; //line 4 echo "<br/>>>> ";  echo $y;    notice: array string conversion in /opt/lampp/htdocs/learning/index.php on line 4 array >>> 1 

any idea how compile , output. plz :)

i did the

 $compilecode=shell_exec("gcc -o hello hello.c 2>&1");  output:  failed create /var/cache/ccache/tmp (permission denied) in echo.  

what permission issue.

yum remove cache did trick


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -