*Hi,* *Problem:*
*Warning*: fopen() [function.fopen <http://localhost/casificationweb/function.fopen>]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in *C:\xampp\htdocs\casificationweb\testCassificationWeb.php* on line *23* *Warning*: fopen( https://192.168.0.136:8443/cas/serviceValidate?service=http://localhost/casificationweb/testCassificationWeb.php?ticket=ST-4-scgBlQTaebsQj7Gjt2H3-cas01.example.org&ticket=ST-4-scgBlQTaebsQj7Gjt2H3-cas01.example.org) [function.fopen <http://localhost/casificationweb/function.fopen>]: failed to open stream: No such file or directory in *C:\xampp\htdocs\casificationweb\testCassificationWeb.php* on line *23* *My code * *testCassificationWeb.php<?php define('CAS_BASE','https://192.168.0.136:8443');$service = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];function authenticate() {global $service ;if (!isset($_GET['ticket'])) {header('Location: ' . CAS_BASE . '/cas/login?service=' . $service);exit() ;}$fpage = fopen (CAS_BASE . '/cas/serviceValidate?service='. preg_replace('/&/','%26',$service) . '&ticket=' . $_GET['ticket'], 'r');if ($fpage) {while (!feof ($fpage)) { $page .= fgets ($fpage, 1024); }if (preg_match('|<cas:authenticationSuccess>.*</cas:authenticationSuccess>|mis',$page)) {if(preg_match('|<cas:user>(.*)</cas:user>|',$page,$match)){return($match[1]);}}}return FALSE;}$login = authenticate();if ($login === FALSE ) {echo 'no authentify(<a href="'.$service.'"><b>B</b></a>).';exit() ;}echo 'Connexion : ' . $login . '(<a href="' . CAS_BASE . '/cas/logout"><b>disconnecte</b></a>)';?><html> <head> <title>phpCAS client</title> </head> <body> <h1>Successfull Authentication!</h1> <?php include 'script_info.php' ?> <p>the user's login is <b><?php echo phpCAS::getUser(); ?></b>.</p> <p>phpCAS version is <b><?php echo phpCAS::getVersion(); ?></b>.</p> <a href="https://192.168.0.136:8443/cas/logout <https://192.168.0.136:8443/cas/logout>">Déconnexion</a></p> </body></html>* *I would like do have solution* -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
