RE: [PEAR] Re: Need Help With "Hide Progress Bar" Script
| From: | Ryan Sims | Date: | Wed, 25 Apr 2007 16:36:24 +0000 |
| Subject: | RE: [PEAR] Re: Need Help With "Hide Progress Bar" Script | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27153@lists.php.net to get a copy of this message | ||
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
> >