I have this file
server.c
int main()
{
system("cc program.c");
}
i have comiled this to binary file server
Now I can execute this using ./server at command line and everthing works
fine and program.c is compiled
But i have this test.php
<?
exec("./server");
?>
But when i call exec("./server") from a php file and open this php file in my
browser , although the server binary file is executed but program.c is not
compiled
All this files are stored in /var/www/html/
So ./server works fine but test.php does not work.
Has it got something to do with file/directory permissions
I made sure that /var/www/html has all-read, all-write, all-execute
permission but still no luck
what is wrong.
---------------------------------
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.