File: Platform/Pear/example.php

Recommend this page to a friend!
  Classes of Asher Wolfstein  >  Platform_pear  >  Platform/Pear/example.php  >  Download  
File: Platform/Pear/example.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: Platform_pear
Check whether a given PEAR package is installed
Author: By
Last change:
Date: 14 years ago
Size: 399 bytes
 

Contents

Class file image Download
<?php

$v
= phpversion();
if (
intval( substr( $v, 0, 1 ) ) >= 5 ) {
    require_once(
'class5.php' );
   
var_dump( Platform_pear_v5::check_module( 'Auth/HTTP.php' ) );
} elseif (
substr( $v, 0, 1 ) == '4' ) {
    require_once(
'class.php' );
   
var_dump( Platform_pear::check_module( 'Auth/HTTP.php' ) );
} else {
    require_once(
'proc.php' );
   
var_dump( platform_pear_check_module( 'Auth/HTTP.php' ) );
}

?>

For more information send a message to info at phpclasses dot org.