Hi,
I am currently using PHP on windows. I use a wamp server and codeblocks.
I already set the path from environment variable to compile a c file on cmd.
since i am very new to php so i dn't knw why my code is not working
php code
if(isset($_POST['compiler']))
{
$source=dirname(__FILE__).'/new/'.$_FILES['uploadedfile']['name'];
echo $source;
//mainfilename=test1
$outputname=substr_replace($_FILES['uploadedfile']['name'], 'exe', strpos($_FILES['uploadedfile']['name'], '.')+1);
$destination=dirname(__FILE__).'/new/'.$outputname;
echo $destination;