Can any one help how to compile a cpp file using php script...
I had used the "``" quotes to execute the shell command in php script.
I first moved the file uploaded from the client ( at /tmp ) to
./tmp/<tempname>.cpp.
Then I tried to compile as
$returnValue = `gcc -o ./tmp/<tempname> ./tmp/<tempname>.cpp` ;
but this give me an error as "permission denied" when I echoed $returnValue as
echo( $returnValue ) ;
But the same kit worked well in Debian but fails in Fedora Core 4....
I don't know the reason behind it can somebody point it out?
all files and folders in my current directory has 'apache' as its
group and when I echoed the value of whoami as
echo( `whoami` ) ;
I got "apache" in Fedora Core 4 and "www-data" in Debian and so
changed the group accordingly.
But still I'm unable to make it run in Fedora Core 4...
--
I love walking in the rain, Coz no one can see me crying..