Categories > TinyButStrong general >

problem about DOCUMENT_ROOT

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Thuc
Date: 2005-10-25
Time: 04:41

problem about DOCUMENT_ROOT

I have problem in
require($_SERVER[DOCUMENT_ROOT"]. '/cnx_mysql.php');

The server said:

...unkown

Help me, pls;
By: Skrol29
Date: 2005-10-25
Time: 10:11

Re: problem about DOCUMENT_ROOT

In which folder is placed the file cnx_mysql.php on your server (or pc) ?

This file, referenced in the Example scripts, is supposed to set the MySQL connection. You can bypass this cnx_mysql.php file by setting the connection direcly in the mains script.
By: Thuc
Date: 2005-10-26
Time: 06:45

Re: problem about DOCUMENT_ROOT

Hi, Mr Skrol29
1. this comman $_SERVER[DOCUMENT_ROOT"] is not work in my computer.
  May you sent me ascript for test it

2. In Testi monial, Your code is very short, clever. But I am a beginer in PHP so I can not understanding in Comman: $TBS->CacheAction(...)
    May you teach me about this. OK?
Sent me a simple script about $TBS->CacheAction...

Thank you!
By: Skrol29
Date: 2005-10-26
Time: 18:41

Re: problem about DOCUMENT_ROOT

Hi Thuc,

1.

The correct string is:
   $_SERVER["DOCUMENT_ROOT"]
not:
   $_SERVER[DOCUMENT_ROOT"]
but you probably have fixed that already.
I need the exact error message in order to help you more.


2.

Is answered in a next thread.