Re: [phplib] PHPLib installing From: nathan r. hruby (nhruby <email protected>)
Date: 04/20/01

on 4/20/01 9:12 AM, Bas van Schooten at bas <email protected> wrote:

>> What are the errors you are getting? Did you restart Apache? (when using
>> php as an apache module you need to restart it for changes in php.ini and/or
>> httpd.conf to take effect..) Are the permissions correct on your phplib
>> directory?
>
> I did restart Apache, and everything. I use SourceWell
> (http://sourcewell.berlios.de) who needs phplib. Do you always
> specifically need to require a certain part of PHPLib in your script to
> get it to work? Or when it's in the include path, it should find it
> itself? Or it can't find page_open(), or something like: "Fatal error:
> SourceWell_Session is not a class in page.inc on line 18" whenever I do
> a workaround...
>
> Cheers, Bas.

- edit in php3.ini (php.ini for php4)
  include_path = "/path/to/phplib/php:/other/stuff/here"
  # Note for windows that needs to be "<driveLetter>:\path\to\phplib"

  auto_prepend_file = "prepend.php3"

Now phplib is globally accessible to all php scripts on your server, calling
page_open() should work fine.

SourceWell most likely has it's own phplib subclasses, sou you'll need to
make sure whatever file that sets that up is included as well (probably in
the config file?)or else you'll get errors like "SourceWell_Session is not a
class..."

Things to check:
- make sure php3 is actually reading it's .ini file, do a phpinfo() and
check to see what the path to php.ini file is and make sure that's the
php.ini you're using. This one gets me all the time.

- make sure you're editing the correct php.ini file, you said you have php3
and php4 installed, are you sure sourcewell is being assed to php3 and not
php4? Check your AddType lines in your httpd.conf file to make sure the
file type that sourceWell is (either .php3 or .php) is defined as a valid
type for php3, else you're editing the wrong .ini file.

- Read the docs at http://phplib.netuse.de/documentation/ and follow them
closely, they do work and do make sense, you just need to carefully step
through them.

-n

-- 
......
nathan hruby - nhruby <email protected>
computer support specialist
department of drama and theatre
http://www.drama.uga.edu/
......

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>