Don't Know how to Set the include Path
| From: | Jack | Date: | Wed, 20 Feb 2002 08:02:47 +0000 |
| Subject: | Don't Know how to Set the include Path | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85510@lists.php.net to get a copy of this message | ||
Dear all
I had create a file called "contant.inc".
What i want to do is to use the require function() to point to this file,
but when i test it, it says:
"Warning: Failed opening 'constant.inc' for inclusion (include_path='') in
C:\InetPub\wwwroot\php study\General News\news.php on line 17"
Then, i go to PHP.ini from C:\winnt and find the row which got the
"include_path=". What i did is i had type in the path like this format below
:
include_path = "c:\inetpub\wwwroot\php study" ; UNIX:
"/path1:/path2" Windows: "\path2"
actually i just type the "c:\inetpub\wwwroot\php study"
but not the
;UNIX: '/path1:/path2" Windows:: "\path2", that is there by default.
Then i test again from my web, it remains the same error!!
So could someone pls tell me how i should set the include_path, would be
great if you could provide EXAMPLES!
Thx a lot
Jack
jack@nedcor.com