By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,913 Members | 1,379 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,913 IT Pros & Developers. It's quick & easy.

PHP captcha class is not displaying the image

100+
P: 108
I just read a few tutorials about CAPTCHA from the net..I got the class captcha.php and a main file ..I pasted a few codes from the net but I cannot run the CAPTCHA as expected.The image is not being diaplayed....Instead I am getting the value from the alt in the image tag.

Here are my codes for the main file :
Expand|Select|Wrap|Line Numbers
  1. <?php session_start() ?>
  2. <html>
  3. <body>
  4. <form method="post" action="">
  5. <table bgcolor="#CCCCCC">
  6. <tr><td><input type="text" name="validator" id="validator" size="4" />
  7. <img src="captcha.php" alt="CAPTCHA image" align="top" /></td></tr>
  8.  
  9. <tr><th align="center"><input type="submit" value="Submit"></th></tr>    
  10. </table>
  11. </form>
  12. <?php
  13. if(isset($_POST["captcha"]))
  14. if (!empty($_POST['validator']) && $_POST['validator'] == $_SESSION['rand_code']) {
  15.     echo "Validated";
  16.     unset($_SESSION['rand_code']);
  17. }
  18. ?>
  19. </body>
  20. </html>

I tested the source of the image in the same directory as the captha.php and it works fine.

I will be highly obliged if anyone can help me in this ..Thanks
Feb 8 '10 #1
Share this Question
Share on Google+
5 Replies


Markus
Expert 5K+
P: 6,050
Sounds like your captcha.php isn't working as expected. However, without more information (maybe the class code?) we cannot help any further.
Feb 8 '10 #2

100+
P: 108
my captcha.php is like the following :


Expand|Select|Wrap|Line Numbers
  1. <?php
  2. session_start();
  3. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); 
  4. header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); 
  5. header("Cache-Control: no-store, no-cache, must-revalidate"); 
  6. header("Cache-Control: post-check=0, pre-check=0", false);
  7. header("Pragma: no-cache"); 
  8.  
  9. function _generateRandom($length=6)
  10. {
  11.     $_rand_src = array(
  12.         array(48,57) //digits
  13.         , array(97,122) //lowercase chars
  14. //        , array(65,90) //uppercase chars
  15.     );
  16.     srand ((double) microtime() * 1000000);
  17.     $random_string = "";
  18.     for($i=0;$i<$length;$i++){
  19.         $i1=rand(0,sizeof($_rand_src)-1);
  20.         $random_string .= chr(rand($_rand_src[$i1][0],$_rand_src[$i1][1]));
  21.     }
  22.     return $random_string;
  23. }
  24.  
  25. $im = @imagecreatefromjpeg("captcha.jpg"); 
  26. $rand = _generateRandom(3);
  27. $_SESSION['captcha'] = $rand;
  28. ImageString($im, 5, 2, 2, $rand[0]." ".$rand[1]." ".$rand[2]." ", ImageColorAllocate ($im, 0, 0, 0));
  29. $rand = _generateRandom(3);
  30. ImageString($im, 5, 2, 2, " ".$rand[0]." ".$rand[1]." ".$rand[2], ImageColorAllocate ($im, 255, 0, 0));
  31. Header ('Content-type: image/jpeg');
  32. imagejpeg($im,NULL,100);
  33. ImageDestroy($im);
  34. ?>
Feb 8 '10 #3

Atli
Expert 5K+
P: 5,058
Hey.

I would guess it has something to do with the imagecreatefrompng function. Try verifying that the image it creates is valid. (Something you should always try to do.)

Expand|Select|Wrap|Line Numbers
  1. header('Content-type: image/jpeg');
  2. $im = @imagecreatefromjpeg("captcha.jpg");
  3. if($im) {
  4.     // Display the CAPTCHA thing
  5. }
  6. else {
  7.     $_SESSION['captcha'] = false;
  8.     readfile('captcha-error.jpg');
  9. }
Now it will display the captcha-error.jpg image when a real captcha image can not be created. - Could be a error message, or it could even be a standard, temporary captcha that is displayed until you can fix the problem.

P.S.
You may want to check out reCAPTCHA.
Feb 9 '10 #4

P: 2
hi brother. i have implemented what you suggested to do. By doing selector (if else) operation to get the error. But fortunately my imagecreate() function work fine.
Also i have called the captcha to another (tester) file to test the program with have the same programs codes with my main program. Captcha that ran in my tester file programs work perfectly but captcha that ran in my main program doesn't work at all.

my captcha_isi.php (my captcha) is:
Expand|Select|Wrap|Line Numbers
  1. <?php   
  2.  
  3.     // START CAPTCHA
  4.     session_start();
  5.  
  6.     header("Content-type: image/png");
  7.  
  8.     // inisialisasi bilangan acak untuk captha
  9.     $_SESSION["captcha"] = "";
  10.  
  11.     //membuat gambar dengan format png
  12.     $img = imagecreate(120, 50); // 200, 50
  13.  
  14.     // An Improvitation
  15.     if ($img) {
  16.  
  17.         imagecolorallocate($img, 69, 179, 157); 
  18.  
  19.         $font = "Allura-Regular.otf";
  20.         $fontColor = imagecolorallocate($img, 253, 252, 252); 
  21.         $ukuranFont = 15;
  22.  
  23.         $posisiFont = rand(20, 40);
  24.  
  25.         for ($i=0; $i <=5 ; $i++) {  // 5 menentukan jumlah bilangan captcha. 5 berarti 6 digit
  26.             //$angka = rand(1111, 9999);
  27.             $angka = rand(0, 9);
  28.             $_SESSION["captcha"] .= $angka;
  29.             $kemiringan =rand(10, 40); // 20, 20
  30.             imagettftext($img, $ukuranFont, $kemiringan, 8 + 15 * $i, $posisiFont, $fontColor, $font, $angka); 
  31.         }
  32.  
  33.         //menciptakan gambarnya
  34.         imagepng($img);
  35.         imagedestroy($img);
  36.  
  37.     } else {
  38.         $_SESSION["captcha"] = false;
  39.         echo("<script>");
  40.         echo("alert('Error Captcha !');");
  41.         echo("</script>");
  42.     }
  43.  
  44.     // END OF CAPTCHA
  45. ?>
  46.  
my file where the captcha is used and then will be called in to either my tester program file or my main program file :
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2.  
  3.     $(document).ready(function(){
  4.         $("#expand").click(function(){
  5.             $("#bodyfilter").slideToggle(500);
  6.         });
  7.     });
  8.  
  9.     function jadiKeterangan(){
  10.         $("#jadiKeterangan").html("Keterangan"); // untuk mengubah text pada header kolom status surat
  11.     }
  12. </script>
  13.  
  14. <?php  
  15.     //session_start();
  16.     // MENAMPILKAN ALERT SALAH NOREG
  17.     if (isset($_GET["noregx"])) {
  18.         if ($_GET["noregx"] == "salah") {
  19.             $salahNoreg = "<div class='alert'>Nomor Registrasi Atau Nomor Surat Masuk Tidak Terdaftar !</div>";
  20.         }
  21.     }
  22. ?>
  23.  
  24. <form name="frm" action="?mod=<?php echo($_GET["mod"]); ?>" method="post">
  25.     <div class="panelcontainer" style="width: 100%;">
  26.         <h3><?php echo $salahNoreg; ?><div style="display: block; float: left;"><div style="clear: both;"></div>FILTER DATA PENCARIAN</div>
  27.         <input type="button" value="+" style="float: right; display: block; font-weight: bold;  width:40px;"  id="expand" /><div style="clear: both;"></div></h3>
  28.         <div class="bodypanel" id="bodyfilter">
  29.             <table border="0px" cellspacing='0' cellpadding='0' width='100%'>
  30.                 <tr>
  31.                     <td width='20%'>Nomor Register</td>
  32.                     <td width='10px'>:</td>
  33.                     <td><input type="text" name="noreg_sm" value="<?php echo($_POST["noreg_sm"]); ?>" required="required"/></td>
  34.                 </tr>
  35.                 <tr>
  36.                     <td></td>
  37.                     <td></td>
  38.                     <td><p style="color:red; font-size:10px;">* Nomor Register Wajib Diisi</p></td>
  39.                 </tr>
  40.                 <tr>
  41.                     <td width='20%'>Nomor Surat Masuk</td>
  42.                     <td width='10px'>:</td>
  43.                     <td><input type="text" name="no_surat_sm" value="<?php echo($_POST["no_surat_sm"]); ?>" required="required"/></td>
  44.                 </tr>
  45.                 <tr>
  46.                     <td></td>
  47.                     <td></td>
  48.                     <td><p style="color:red; font-size:10px;">* Nomor Surat Masuk Wajib Diisi</p></td>
  49.                 </tr>
  50.                 <tr>
  51.                     <td width='20%'><img src="captcha_isi.php" alt="gambar" title="Captcha"></td>
  52.                     <!--<td width='20%'><img src="<?php //echo("captcha_isi.php");?>" alt="gambar"></td>-->
  53.                     <td width='10px'>:</td>
  54.                     <td><input type="text" maxlength="6" name="captcha_track" class="captcha" value="" required="required"/></td>
  55.                 </tr>
  56.                 <tr>
  57.                     <td></td>
  58.                     <td></td>
  59.                     <td><p style="color:red; font-size:10px;">* Captcha Wajib Diisi</p></td>
  60.                 </tr>                
  61.             </table>
  62.             <div class="kelang"></div>
  63.             <table border="0px" cellspacing='0' cellpadding='0' width='40%'>
  64.                 <tr>
  65.                     <td width='33%'><input type="submit" name="submit" value='Filter' style="width: 100%;" /></td>
  66.                     <td width='33%'><input type="reset" value='Reset' style="width: 100%;" /></td>
  67.                     <!--<td width='33%'><button  style="width: 100%;" onclick="document.location.href='?mod='"/>Kembali</button></td>-->
  68.                     <td width='33%'><input type="button" class="btnkembali" value="Kembali" style="width: 100%;" onclick="window.location.href='?mod='"/></td>
  69.                 </tr>
  70.             </table>
  71.         </div>
  72.     </div>
  73. </form>
  74. <div class="kelang"></div>
  75. <div class="panelcontainer" style="width: 100%;">
  76.     <h3>DAFTAR SURAT KELUAR YANG DITERIMA</h3>
  77.     <div class="bodypanel table-responsive" style="padding: 2px;">
  78.         <table border="0px" cellspacing='0' cellpadding='0' width='100%' class="listingtable">
  79.             <thead>
  80.             <tr class="headertable">
  81.                 <th>No.</th>
  82.                 <th>No. Registrasi</th>
  83.                 <th>No. Surat Masuk</th>
  84.                 <th>Tgl Surat Masuk</th>
  85.                 <th>Tgl Surat Diterima</th>
  86.                 <th>Perihal Surat Masuk</th>
  87.                 <th>Skpd Pengirim</th>
  88.                 <!--<th>Status Surat Masuk</th>-->
  89.                 <th>Status Surat Balasan</th> 
  90.                 <th id="jadiKeterangan">Posisi Surat Balasan</th> 
  91.             </tr>
  92.             </thead>
  93.             <tbody>
  94.             <?php  
  95.  
  96.                 // CHECKING IS THE INPUT ARE ALREADY FILLED ?
  97.                 // CAPTCHA VALIDATOR
  98.                 //session_start();
  99.                 // END CAPTCHA
  100.                 if (isset($_POST["submit"]) && ($_POST["noreg_sm"] != "" && $_POST["no_surat_sm"] != "" && ($_SESSION["captcha"] == $_POST["captcha_track"]))) {
  101.  
  102.  
  103.                         //WHILE LOOP STARTED
  104.                         $no = 1;
  105.                         while ($data = mysql_fetch_assoc($sqlQuery2)) {                                                                    
  106.                     ?>
  107.                         <tr>
  108.                             <td align="center"><?php echo $no++;?></td>
  109.                             <td align="center"><?php echo $data["noreg_sm"]; ?></td>
  110.                             <td align="center"><?php echo $data["no_surat_sm"];?></td>
  111.                             <td align="center"><?php echo $data["tgl_sm"];?></td>
  112.                             <td align="center"><?php echo $data["tgl_terima_sm"];?></td>
  113.                             <td align="center"><?php echo $data["perihal_sm"];?></td>
  114.                             <td align="center"><?php echo $data["skpd_pengirim"];?></td>
  115.  
  116.                             <td align="center"><?php echo konversiStatusSK($data["status_sk"]);?></td>
  117.                             <?php
  118.                                 if ($data["status_sk"] > 2) {
  119.                             ?>
  120.                                     <script>jadiKeterangan();</script>
  121.                                     <td align="center"><?php echo $data["no_surat_sk"]; ?></td>
  122.                             <?php
  123.                                 }else{
  124.                             ?>
  125.                                     <td align="center"><?php echo $data["lvl_tujuan_sk"];?></td> 
  126.                             <?php
  127.                                 }// END OF ELSE IF FOR CHECKING STATUS SK
  128.                             ?>
  129.                         </tr>
  130.             <?php
  131.                         } // END OF WHILE LOOP
  132.                 } // END OF IF CHECK INPUT FILLED IN UP OR NOT YET
  133.             ?>
  134.  
  135.             </tbody>
  136.         </table>
  137.     </div>
  138. </div>
  139.  
  140.  
  141.  

my tester file is :
Expand|Select|Wrap|Line Numbers
  1. <?php 
  2. error_reporting(0);
  3.  
  4. ob_start(); ?>
  5. <?php 
  6.     session_start();
  7.  
  8.     include("../../php/koneksi.php"); 
  9.     include("../../php/fungsi.php"); 
  10.  
  11.     date_default_timezone_set("Asia/Jakarta"); 
  12.  ?>
  13.  
  14. <!DOCTYPE html>
  15. <html xmlns="http://www.w3.org/1999/xhtml">
  16. <head>
  17.     <meta charset="utf-8" />
  18.     <meta name="viewport" content="width=device-width, initial-scale=1">
  19.     <title>:: TATA NASKAH DINAS ELEKTRONIK BADAN KEPEGAWAIAN DAERAH DAN PENGEMBANGAN SDM PEMERINTAH KOTA MEDAN ::</title>
  20.     <link rel="shortcut icon" href="image/favicon no sharpen.ico" />
  21.  
  22.     <script type="text/javascript" src="../../js/jquery-1.7.2.min.js"></script>
  23.     <script type="text/javascript" src="../../js/jquery.alphanum-master/jquery.alphanum.js"></script>
  24.     <script type="text/javascript" src="../../js/jquery-ui-1.8.19.custom.min.js"></script>
  25.     <script src="../../js/jquery.alerts.js"></script>
  26.     <script type="text/javascript" src="../../js/jquery.dataTables.js"></script>
  27.     <script type="text/javascript" src="../../ckeditor/ckeditor.js"></script>
  28.     <script type="text/javascript" src="../../ckfinder/ckfinder.js"></script>    
  29.  
  30.     <link rel="stylesheet" href="../../js/alert/jquery.alerts.css" />
  31.     <link rel="stylesheet" href="../../css/jquery-ui-1.10.3.custom.min.css" />
  32.     <link rel="stylesheet" href="../../css/demo_table_jui.css" type="text/css" media="all" />
  33.     <link rel="stylesheet" href="../../css/customv1.css" type="text/css" media="all" />   
  34.     <link rel="stylesheet" href="../../custom/css/menubar.css" type="text/css" />
  35.  
  36.     <link href="../../bootstrap/css/bootstrap.css" rel="stylesheet" />
  37.     <link href="../../bootstrap/css/bootstrap-theme.min.css" rel="stylesheet" />
  38.  
  39.     <script src="../../bootstrap/js/bootstrap.bundle.js"></script>
  40.     <script src="../../bootstrap/js/bootstrap.bundle.min.js"></script>
  41.     <script src="../../bootstrap/js/bootstrap.js"></script>
  42.     <script src="../../bootstrap/js/bootstrap.min.js"></script>
  43.  
  44.     <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
  45.     <link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>    
  46.     <link rel="stylesheet" href="custom/login/bootstrap.min.css" type="text/css" /><!--CHECKED-->
  47.  
  48.     <script src="../../custom/login/bootstrap.min.js"></script> 
  49.  
  50. </head>
  51. <body role="document" id="web_body">
  52.  
  53.     <div id="main-wrapper">
  54.  
  55.             <div id="header"><?php include("../widget/header_new.php"); ?></div>
  56.  
  57.             <div class="line"></div>
  58.  
  59.     <div id="menubar">
  60.  
  61.     </div>
  62.  
  63.     <div id="running_text" style=''>
  64.  
  65.         <?php 
  66.       //      include("isi/widget/running_text.php"); //FILE TIDAK ADA
  67.         ?>
  68.  
  69.     </div>
  70.  
  71.  
  72.         <div id="main-body">
  73.  
  74.             <?php include("tracking_surat.php"); ?> <!-- WHERE THE CAPTCHA IS USED -->
  75.  
  76.         </div>
  77.     <div style="clear: both;"></div>
  78. </div>
  79.  
  80. <div id="main-bottom">
  81.         <div id="footer"><?php include("isi/widget/footer.php"); ?></div>
  82.  
  83.         <script src="js/includes/jsHandler.js"></script>
  84.             <script>
  85.                 window.onload = function(){ return start('<?php echo basename($_SERVER['REQUEST_URI'], '?' . $_SERVER['QUERY_STRING']);?>'); };
  86.                 window.onbeforeunload = function(){ return end(); };
  87.                 window.onclose = function(){ return end(); };
  88.             </script>
  89.             <script>
  90.           (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  91.           (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  92.           m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  93.           })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  94.  
  95.           ga('create', 'UA-87083023-1', 'auto');
  96.           ga('send', 'pageview');
  97.  
  98.         </script>
  99.     </div>
  100.  
  101.  
  102.     <script>                
  103.       (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  104.       (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  105.       m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  106.       })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  107.  
  108.       ga('create', 'UA-87083023-1', 'auto');
  109.       ga('send', 'pageview');
  110.  
  111.     </script>
  112.  
  113. </body>
  114. </html>
  115. <?php ob_end_flush(); ?>
  116.  
this is my main programs :
Expand|Select|Wrap|Line Numbers
  1. <?php 
  2. //error_reporting(E_ALL & ~E_NOTICE); // edited on 10-09-2019 E_ALL & ~E_NOTICE means reporting all errors except notice
  3. //
  4. error_reporting(0);
  5.  
  6. ob_start(); ?>
  7. <!--<!?php
  8. register_shutdown_function(function(){
  9.     $err    = error_get_last();
  10.     if($err != null){
  11.         var_dump($err);
  12.     }
  13. });
  14. ?>-->
  15. <?php 
  16.     session_start();
  17.  
  18.     include("php/koneksi.php"); 
  19.     include("php/fungsi.php"); 
  20.  
  21.     date_default_timezone_set("Asia/Jakarta"); 
  22.  ?>
  23.  
  24. <!DOCTYPE html>
  25. <html xmlns="http://www.w3.org/1999/xhtml">
  26. <head>
  27.     <meta charset="utf-8" />
  28.     <meta name="viewport" content="width=device-width, initial-scale=1">
  29.     <title>:: TATA NASKAH DINAS ELEKTRONIK BADAN KEPEGAWAIAN DAERAH DAN PENGEMBANGAN SDM PEMERINTAH KOTA MEDAN ::</title>
  30.     <link rel="shortcut icon" href="image/favicon no sharpen.ico" />
  31.  
  32.     <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
  33.     <script type="text/javascript" src="js/jquery.alphanum-master/jquery.alphanum.js"></script>
  34.     <script type="text/javascript" src="js/jquery-ui-1.8.19.custom.min.js"></script>
  35.     <script src="js/jquery.alerts.js"></script>
  36.     <script type="text/javascript" src="js/jquery.dataTables.js"></script>
  37.     <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
  38.     <script type="text/javascript" src="ckfinder/ckfinder.js"></script>    
  39.  
  40.     <link rel="stylesheet" href="js/alert/jquery.alerts.css" />
  41.     <link rel="stylesheet" href="css/jquery-ui-1.10.3.custom.min.css" />
  42.     <link rel="stylesheet" href="css/demo_table_jui.css" type="text/css" media="all" />
  43.     <link rel="stylesheet" href="css/customv1.css" type="text/css" media="all" />   
  44.     <link rel="stylesheet" href="custom/css/menubar.css" type="text/css" />
  45.  
  46.     <link href="bootstrap/css/bootstrap.css" rel="stylesheet" />
  47.     <link href="bootstrap/css/bootstrap-theme.min.css" rel="stylesheet" />
  48.  
  49.     <script src="bootstrap/js/bootstrap.bundle.js"></script>
  50.     <script src="bootstrap/js/bootstrap.bundle.min.js"></script>
  51.     <script src="bootstrap/js/bootstrap.js"></script>
  52.     <script src="bootstrap/js/bootstrap.min.js"></script>
  53.  
  54.     <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
  55.     <link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>    
  56.     <link rel="stylesheet" href="custom/login/bootstrap.min.css" type="text/css" /><!--CHECKED-->
  57.  
  58.     <script src="custom/login/bootstrap.min.js"></script> 
  59.  
  60. </head>
  61. <body role="document" id="web_body">
  62.  
  63.     <div id="main-wrapper">
  64.  
  65.             <div id="header"><?php include("isi/widget/header_new.php"); ?></div>
  66.  
  67.             <div class="line"></div>
  68.  
  69.     <div id="menubar">
  70.         <?php
  71.  
  72.         ?>
  73.     </div>
  74.  
  75.     <div id="running_text" style=''>
  76.  
  77.         <?php 
  78.       //      include("isi/widget/running_text.php"); //FILE TIDAK ADA
  79.         ?>
  80.  
  81.     </div>
  82.  
  83.  
  84.         <div id="main-body">
  85.         <?php
  86.  
  87.             if(!isset($_SESSION["id_pengguna"]) && $_GET["mod"] <> "daftar_pengguna" && $_GET["mod"] <> "tracking_surat"){ 
  88.  
  89.                 include("isi/panel/login_new.php");      
  90.  
  91.             }elseif(!isset($_SESSION["id_pengguna"]) && $_GET["mod"] == "tracking_surat"){
  92.                 //TRACKER
  93.                 include("isi/panel/tracking_surat.php"); // WHERE THE CAPTCHA IS USED 
  94.  
  95.             }else if(!isset($_SESSION["id_pengguna"]) && $_GET["mod"] == "daftar_pengguna"){
  96.  
  97.                 include("isi/panel/daftar_pengguna.php");
  98.  
  99.             }else{
  100.  
  101.                 switch($_GET["mod"]){                
  102.                         case "test" :
  103.                             include("test.html");
  104.                             break;
  105.                         case "info" :
  106.                             include("isi/widget/info.php");
  107.                             break;
  108.  
  109.  
  110.                         case "input_tanggal_libur":
  111.                             include("isi/panel/input_tanggal_libur_nasional.php");
  112.                             break;                        
  113.                 }
  114.  
  115.         ?>
  116.         </div>
  117.     <div style="clear: both;"></div>
  118. </div>
  119.  
  120. <div id="main-bottom">
  121.         <div id="footer"><?php include("isi/widget/footer.php"); ?></div>
  122.  
  123.         <script src="js/includes/jsHandler.js"></script>
  124.             <script>
  125.                 window.onload = function(){ return start('<?php echo basename($_SERVER['REQUEST_URI'], '?' . $_SERVER['QUERY_STRING']);?>'); };
  126.                 window.onbeforeunload = function(){ return end(); };
  127.                 window.onclose = function(){ return end(); };
  128.             </script>
  129.             <script>
  130.           (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  131.           (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  132.           m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  133.           })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  134.  
  135.           ga('create', 'UA-87083023-1', 'auto');
  136.           ga('send', 'pageview');
  137.  
  138.         </script>
  139.     </div>
  140.  
  141.     <script>                
  142.       (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  143.       (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  144.       m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  145.       })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  146.  
  147.       ga('create', 'UA-87083023-1', 'auto');
  148.       ga('send', 'pageview');
  149.  
  150.     </script>
  151.  
  152. </body>
  153. </html>
  154. <?php ob_end_flush(); ?>
  155.  
1 Week Ago #5

P: 2
Please help me to solve this. i have tried everything that i can do. but the main program file still not showing the captcha.
I would appreciate for any of your help.
Thank you !
1 Week Ago #6

Post your reply

Sign in to post your reply or Sign up for a free account.