Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > Pear
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-20-2007, 6:34 PM   #1
Annand Ramsahai
 
Annand Ramsahai's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Need Help With "Hide Progress Bar" Script

Hi - I am relatively new to PHP. I tried installing the "Hide Progress Bar"
script found here:
http://pear.laurent-laville.org/HTML...ad/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>

 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Advertisements
Old 05-20-2007, 6:34 PM   #2
Mark Wiesemann
 
Mark Wiesemann's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Need Help With "Hide Progress Bar" Script

Hi,

Annand Ramsahai wrote:
> Hi - I am relatively new to PHP. I tried installing the "Hide Progress Bar"
> script found here:
> http://pear.laurent-laville.org/HTML...ad/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.


And where is this directory? Obviously PHP can't find the file and
therefore doesn't know about the HTML_Progress class.

HTML/Progress/ either needs to a subdirectory of the directory where
your script is placed, or better, it should be in your include_path
setting.

Regards,
Mark

--
http://www.markwiesemann.eu
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 05-20-2007, 6:34 PM   #3
Mark Wiesemann
 
Mark Wiesemann's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Need Help With "Hide Progress Bar" Script

Hi,

Annand Ramsahai wrote:
> Hi Mark - thanks for your response.
>
> The path to the HTML_Progress is: http://www.anchoka.com/pear/HTML
> And the script is located: http://www.baiganchoka.com/prog.php
>
> In the script (prog.php) I changed the "equire_once" statement to point
> to http://www.baiganchoka.com/pear/HTML/Progress.php.


1. Please use "Reply All".

2. That won't work this way. You need to modify your include_path, e.g.
by adding this line of code before the require_once() call:
set_include_path('./pear/' . DIRECTORY_SEPARATOR . get_include_path());

Regards,
Mark

--
http://www.markwiesemann.eu
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 05-20-2007, 6:34 PM   #4
Annand Ramsahai
 
Annand Ramsahai's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Need Help With "Hide Progress Bar" Script

I'm sorry, but I have to ask this question. I tried finding it on my own
and searching online how to find it, but I couldn't find it. I have a web
hosting account on a linux system. Where is the "include_path" located?

Thanks,
Annand


On 4/25/07, Mark Wiesemann <wiesemann@php.net> wrote:
>
> Hi,
>
> Annand Ramsahai wrote:
> > Hi Mark - thanks for your response.
> >
> > The path to the HTML_Progress is: http://www.anchoka.com/pear/HTML
> > And the script is located: http://www.baiganchoka.com/prog.php
> >
> > In the script (prog.php) I changed the "equire_once" statement to point
> > to http://www.baiganchoka.com/pear/HTML/Progress.php.

>
> 1. Please use "Reply All".
>
> 2. That won't work this way. You need to modify your include_path, e.g.
> by adding this line of code before the require_once() call:
> set_include_path('./pear/' . DIRECTORY_SEPARATOR . get_include_path());
>
> Regards,
> Mark
>
> --
> http://www.markwiesemann.eu
>


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 05-20-2007, 6:34 PM   #5
Ryan Sims
 
Ryan Sims's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default RE: [PEAR] Re: Need Help With "Hide Progress Bar" Script

From: http://www.google.com/search?q=php+include+path ...

First link: http://www.modwest.com/help/kb5-98.html ...

'Edit your /etc/php.ini file. Inside that file is a directive section for
"Paths and Directories." By default it is set to ".:/usr/local/lib/php". You
can change that value to whatever you like...'

Or, if you're with a webhost that disallows you changing up your config
files:

'Use the function ini_set(). For example if you wanted to set your PHP
include_path to ".:../:./include:../include" then you would do this in your
PHP code:

ini_set("include_path", ".:../:./include:../include");'



The first is preferable, but if your host considers you not knowledgable
enough to handle your Apache configs, the second will suffice at the top of
your script. Just make sure you aren't at the mercy of some predefined
open_basedir configuration and you should be good to go.

Ryan Sims
Systems Analyst
GrooveSource.com
5927 W. Lawrence
Unit 2W
Chicago, IL 60630
USA
Phone: +1.773.474.79.18
Fax: +1.773.539.85.69


> -----Original Message-----
> From: Annand Ramsahai [mailto:aramsahai@gmail.com]
> Sent: Wednesday, April 25, 2007 11:01 AM
> To: Mark Wiesemann
> Cc: PEAR General
> Subject: [PEAR] Re: Need Help With "Hide Progress Bar" Script
>
> I'm sorry, but I have to ask this question. I tried finding it on my own
> and searching online how to find it, but I couldn't find it. I have a web
> hosting account on a linux system. Where is the "include_path" located?
>
> Thanks,
> Annand
>
>
> On 4/25/07, Mark Wiesemann <wiesemann@php.net> wrote:
> >
> > Hi,
> >
> > Annand Ramsahai wrote:
> > > Hi Mark - thanks for your response.
> > >
> > > The path to the HTML_Progress is: http://www.anchoka.com/pear/HTML
> > > And the script is located: http://www.baiganchoka.com/prog.php
> > >
> > > In the script (prog.php) I changed the "equire_once" statement to

> point
> > > to http://www.baiganchoka.com/pear/HTML/Progress.php.

> >
> > 1. Please use "Reply All".
> >
> > 2. That won't work this way. You need to modify your include_path, e.g.
> > by adding this line of code before the require_once() call:
> > set_include_path('./pear/' . DIRECTORY_SEPARATOR . get_include_path());
> >
> > Regards,
> > Mark
> >
> > --
> > http://www.markwiesemann.eu
> >

 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags: , , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Featured Websites




All times are GMT +1. The time now is 6:17 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98