Skip to content

Instantly share code, notes, and snippets.

@wildiney
Created April 18, 2022 19:04
Show Gist options
  • Save wildiney/ca6cf81590ff6c8b9b9240ce3c9f7aa3 to your computer and use it in GitHub Desktop.
Save wildiney/ca6cf81590ff6c8b9b9240ce3c9f7aa3 to your computer and use it in GitHub Desktop.
<?php
chdir('/home/wildi013/symfony4');
if(getcwd()=="/home/wildi013/symfony4"){
exec('php bin/console cache:clear',$v, $o);
echo $v;
echo $o;
} else {
echo "Error (D13)";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment