No se necesita duplicar todo un script de PHP para solo comentar una funcion que no queremos que se llame.
Last active
July 13, 2021 22:12
-
-
Save tzkmx/8de6b48abc6979d32a671f76c58d1a61 to your computer and use it in GitHub Desktop.
Test branch path on Request URI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(preg_match('/NoMail\.php$/', $_SERVER['REQUEST_URI'])) { | |
echo "No Mail Sent\n"; | |
} else { | |
echo "Mail Sent\n"; | |
} | |
echo "OK\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'registerOrder.php'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment