Re: [PHPLIB] Some suggestions From: Narinda Reeders (narindar <email protected>)
Date: 12/09/99

Hi Bachir

thankyou for all your suggestions, I am also trying to get PHPLIB working at an
ISP with PHP CGI and no way of changing track vars, magic quotes etc...

I would be extremely grateful for your solution.

Also, I am having another problem. As I can't set the include path, the
'require("db_mysql.inc");' statement in prepend.php3 is not working. Here is the
problem:
The file index.php3 has the statement 'include("php3/prepend.php3")';
In prepend.php3 is the statement 'include("db_mysql.inc")'.
I get the error "cannot access db_mysql.inc" because it is still looking in the
root directory where index.php3 is.

This would be fixed if I could set the include path to the php3 directory but as
yet I don't beleive that it is possible. Is there any other way around this?

thanks for your assistance

cheers

Narinda.

Hamdouni El Bachir wrote:

> Hi,
> I have just registred to this list, so i will first introduce what i'm
> working on.( an apologize for my english )
> I work on a e-business site, we used php/fi before and want to migrate
> to php3, and take this oportunity to rebuild the structure of the site.
>
> - Our ISP (Rapidsite) use the CGI version, but i succeeded to install
> phplib though. It's not a very beautifull method but it works, so for
> thos who want to know it send me a mail, i don't want to let this method
> in the mailling list because they won't appreciate it. Later when i will
> rewrite "session.inc" for thos who can't change the track_vars option.
> - i suggest to choose $allowcache="no", to be sure that the browser will
> get the good page.
> - for uniqid if you use the CGI version, you can use the time and the
> process id , this will make it really unique (in the same machine). In
> the mod_php i don't know if there is something like process id but for
> the parsed page?
> - don't use page_close after a $sess->delete!! this will insert a record
> with the same id again, even if delete has deleted it. And i have a
> probleme deleting the cookie by $sess->delete, because page_open calls
> $sess->start and this sends it's cookie and even if $sess->delete sends
> the delete cookie in the statement order, actually the order is
> reversed!!!! the cookie persists whith the old value.
>
> that's all folks
> bachir
> -
> PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> the body, not the subject, of your message.

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.