skipif.inc 234 B

1234567891011121314151617
  1. <?php
  2. if (substr(php_sapi_name(), 0, 3) == "cgi") {
  3. exit;
  4. }
  5. if (substr(PHP_OS, 0, 3) == 'WIN') {
  6. die ("skip not for Windows");
  7. }
  8. include dirname(__FILE__)."/include.inc";
  9. if (!get_cgi_path()) {
  10. die("skip CGI not found");
  11. }
  12. ?>