w Firefox jest ok za to w IE mam komunikat:
Fatal error: Cannot instantiate non-existent class: passgen in /passgen/index.php on line 3
o co w tym chodzi?
<?php class passGen { var $size; var $password; // ------------------------------------------------ function passGen($size=0){ $this->size = $size; } // ------------------------------------------------ function password($return_letters=1, $return_numbers=1){ $letters = 'abcdefghijklmnopqrstuvwxyz'; $numbers = '0123456789'; $passString = ''; $option = $return_letters . $return_numbers; for($i = 0; $i < $this->size; $i++){ switch($option){ case '01': break; case '10': break; case '11': break; } $this->password[$i] = $c; $passString .= $c; } } // ------------------------------------------------ function images($path, $extension, $preImage='', $width='', $height='', $css=''){ $images=''; for($i = 0; $i < $this->size; $i++){ $images .= '<img'; if($css != ''){ $images .= ' class="'. $css .'"'; } $images .= ' src="'. $path .'/'. $preImage . $this->password[$i] .'.'. $extension .'" width="'. $width .'" height="'. $height .'" alt="" border="0">'; } return $images; } // ------------------------------------------------ function verify($input, $hash){ else { return false; } } // ------------------------------------------------ } ?>
<img src="C:/obrazki/obrazek.jpg">
<img src="file:///C:/obrazki/obrazek.jpg">