Skip to content

Instantly share code, notes, and snippets.

@tzkmx
Last active July 13, 2021 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzkmx/8de6b48abc6979d32a671f76c58d1a61 to your computer and use it in GitHub Desktop.
Save tzkmx/8de6b48abc6979d32a671f76c58d1a61 to your computer and use it in GitHub Desktop.
Test branch path on Request URI

El universo se disolverá en un mar de entropía infinita tibia

No se necesita duplicar todo un script de PHP para solo comentar una funcion que no queremos que se llame.

<?php
if(preg_match('/NoMail\.php$/', $_SERVER['REQUEST_URI'])) {
echo "No Mail Sent\n";
} else {
echo "Mail Sent\n";
}
echo "OK\n";
<?php
require 'registerOrder.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment