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

With PHP4 you can use ini_set() at the beginning of every file to handle
many of the things which should be handled with the php initialization
settings. I have used, e.g., ini_set("include_path",
".:/home/httpd/php_includes"). Perhaps this may help.

Brant wrote:

> Questions for the gurus!
>
> Yes, I'm a newbie at PHPLIB and PHP in general. So please
> be nice. :-)
>
> I've done a ton of research and it seems that PHPLIB has
> the best set of tools for what I need to do (templates
> and database connection).
>
> Unfortunately, I'm hosted on a shared server that is
> very restricted in it's configuration. This is my
> situation. Workarounds?
>
> 1) I cannot change any php or server configuration file.
> This is the domain of the ISP and they have been clear
> that they will not change for little old me.
>
> I've added the prepend file as an include to each php
> file and I've modified the include_path in local.inc
> to the appropriate pathway (I hope). Still, I'm getting
> errors related mostly to the database not being set up.
> Are there other workarounds or ways to test PHPLIB that
> don't involve the database?
>
> 2) I cannot create or edit .htaccess files. Boy that would
> make life easy. But they will not do so.
>
> 3) I do not have telnet access to create mysql databases
> and tables. I have a mysql database and I've been able to
> use a poorly functioning phpMyAdmin to create the tables
> but I can't edit them table structure once created. I
> can add, edit and delete records with no problem via php
> and have done so. My "helpful" ISP said that I should be
> able to create/modify tables from a PHP script, but I've
> never done this and don't know how.
>
> 4) I don't need cookies or user protection/authentication.
> All I need is the template engine, plus the elements that
> connect to a database for adding, editing, deleting and
> searching/viewing records.
>
> Thoughts and suggestions would be great.
>
> In other words, assume I have NO control over my php
> and mySQL set-up except through the php files themselves.
> This might be helpful for others since such a set-up should
> work no matter the configuration (assuming there is a
> solution).
>
> Thanks,
> Brant
>
> P.S. Please respond to me directly via email since I
> read the list only through web archives to keep my mail
> load down. If you feel that your reply would help others,
> post to the list AND send it to me directly. Thanks for
> understanding.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>

--
Mike Green
SaeSolved::
http://www.saesolved.com
http://www.everypeople.net
http://www.sitewidgets.com
http://www.widgetchuck.com

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