Re: [phplib] Shared server help for PHPLIB and mySQL From: Brant Smith (bsmith <email protected>)
Date: 06/26/01

>
>> 2) I cannot create or edit .htaccess files. Boy that would
>> make life easy. But they will not do so.
>>
>
>Yes, as turning off gpc_magic_quotes would be a nice thing, as well as
>enabling track_vars. I think ini_set(0 was mentioned, which would work as
>well, provided you're not in a safe_mode environemnt.

I just learned I *am* in safe_mode, so I guess I can't
use ini_set().

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?

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.

I've built the databases (just cut/pasted the create.database.mysql
text into the mysql telnet utility...thanks to the tech support at my
ISP for helping me access the utility) and added the database host,
database name, username and password into local.inc. Yet I still
get an error when I try the index.php3 page in the /pages
directory of the tarball:

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?

Ironically, I don't even care about the auth, permissions,
sessions, or user variables (for the current job). I'm just
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.

I'm at a deadend!

Help!
Brant

-- 

precision custom engineering for the web http://www.antecode.com/