Skip to content

Instantly share code, notes, and snippets.

@Jul10l1r4
Created January 26, 2018 01:08
Show Gist options
  • Save Jul10l1r4/f167f1b5dd84628e0e6d3190d35199e8 to your computer and use it in GitHub Desktop.
Save Jul10l1r4/f167f1b5dd84628e0e6d3190d35199e8 to your computer and use it in GitHub Desktop.
<?php
// ↓↓↓↓↓↓↓↓ Esse é o caminho do php ↓↓←←← E este é o que eu desejo executar
exec("/usr/bin/php /var/www/html/chat/msg.php");
// Ele irá disparar o arquivo, executará tal código no terminal
//atenção, uma vez que executado precisa de cautela em saber qual processo desejas fechar, para o servidor
//, precisa ser disparado apenas uma vez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment