Date: 06/26/01
- Next message: Mike Green: "Re: [phplib] Error: Non-existant class User"
- Previous message: Matt Williams: "RE: [phplib] Shared server help for PHPLIB and mySQL"
- In reply to: Brant Smith: "Re: [phplib] Shared server help for PHPLIB and mySQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 26 Jun 2001, Brant Smith wrote:
>
> I just learned I *am* in safe_mode, so I guess I can't
> use ini_set().
I don't think ini_set works in safe_mode (though I could be wrong.. if I
am file a bug for it -- ini_set(safe_mode, off) heh :)
>
> However, I was under the impression that gpc_magic_quotes
> didn't need to be on in the latest version (phplib-7.2b), is this
> true with track_vars as well? Why else would I need ini_set?
> Are there work arounds for track_vars and other needs?
>
gpc_magic_quotes should be off for phplib. MyAdmin requires them on.
this is where .htaccess ability come in handy :) track_vars is required
and is probably already on (it is on be default in php4>=4.0.4pl1 i
belive)
> I use include(prepend.php3) on all of the php files that I call. I've
> set the include pathway in prepend.php3, so that should work fine.
>
right, just make sure you add a include("/path/to/prepend.php3"); at the
start of the files. you can place your ini_set() calls there (if they
work) and thy will be executed along with everything else. You should
place the ini_set() calls *before* any phplib files are included so that
those changes are present for phplib at compile time.
>
> Fatal error: Cannot extend non existant class User in
> /nfs/WWW_pages/source/new_site/phplib-7.2b/php/local.inc on line 62
>
> Is there something else I should change in the local.inc file?
>
You can comment out the extensuion of user in local.inc, or make sure that
the line that incides user.inc in the prepend.php3 files is uncommented
(ie: the incude is actually happening)
> Ironically, I don't even care about the auth, permissions,
> sessions, or user variables (for the current job). I'm just
the demo examples do. You may at some point want to look into them, as
they can make your life easy. Auth and Perm are nifty, user is so-so
> trying to use PHPLIB as a template engine to access records
> from an existing mySQL database. Looking at the
> create.database.mysql file, I doubt I even need any of these
> databases, but I'm worried without them PHPLIB will hiccup
> and I definitely won't be able to use the sample tarballed
> pages to make sure PHPLIB works. It's a catch-22.
>
No, you won't ever need them (phplib demo tables) again. Read up on the
classes and how they work at http://phplib.netuse.de/documentation/ This
will exaplain how the DB_Sql class works as well as the Template class.
The are example subclasses there that will show you what variables to set
to enable a connection to your database.
As to writing a HOWTO for restrictive PHP hosters, pelase feel free to
write something and sent to me or to the list, we'll be happy to make
correction, point out alternative methods of configuration, etc.. Doing
some doc works is always the best way to figure out how something works,
and phplib could use some better docs. Please don't feel that inexperince
with phplib makes you unable to help out.
-n
-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- nathan hruby / digital statement nathan <email protected> http://www.dstatement.com/Public GPG key can be found at: http://www.dstatement.com/nathan-gpg-key.txt ED54 9A5E 132D BD01 9103 EEF3 E1B9 4738 EC90 801B -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Mike Green: "Re: [phplib] Error: Non-existant class User"
- Previous message: Matt Williams: "RE: [phplib] Shared server help for PHPLIB and mySQL"
- In reply to: Brant Smith: "Re: [phplib] Shared server help for PHPLIB and mySQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

