Need Help With "Hide Progress Bar" Script

From: Date: Wed, 25 Apr 2007 13:23:20 +0000
Subject: Need Help With "Hide Progress Bar" Script
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27143@lists.php.net to get a copy of this message
Hi - I am relatively new to PHP. I tried installing the "Hide Progress Bar" script found here: http://pear.laurent-laville.org/HTML_Progress/examples/preload/hidden.html , but I get this error: *Fatal error*: Cannot instantiate non-existent class: html_progress in * /hsphere/local/home/baiganch/baiganchoka.com/prog.php* on line *21* . The script requires PEAR::HTML_Progress 1.2.2 or better which I placed in a directory on my website. Here is the script for the "Hide Progress Bar": I edited the require_once statement on Line 11 which points to the location fo the "Progress.php" file (that contains the html_progress class, but I still get the above error. Could someone please advise what I'm doing wrong? Thanks so much for your help. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 <?php/** * Simple example that hide a progress meter at end of process. *
* @version    $Id: hidden.php,v 1.2 2005/07/25 11:23:37 farell Exp $
* @author     Laurent Laville <pear@laurent-laville.org>
* @package    HTML_Progress
* @subpackage Examples */ require_once 'HTML/Progress.php'; /* user callback: job to do while the progress meter is visible */function myFunctionHandler($progressValue, &$obj ) { $obj->sleep (); // nothing to do here, except sleep a bit ...} $progress = new HTML_Progress();$progress->setAnimSpeed (100);$progress->setIncrement (10);$progress->setProgressHandler('myFunctionHandler ');?> <html> <head> <style type="text/css"> <!-- body { background-color: #CCCC99; color: #996; font-family: Verdana, Arial; } a:visited, a:active, a:link { color: yellow; } <?php echo $progress->getStyle(); ?> // --> </style> <script type="text/javascript"> <!--<?php echo $progress->getScript(); ?> //--> </script> </head> <body> <?phpecho $progress-> toHtml();$progress->run ();$progress->hide ();?> <h1>Your job is finished ! </h1> <p>The progress meter is now hidden.</p> </body> </html>

« previous php.pear.general (#27143) next »