RE: [PHP] Don't Know how to Set the include Path
| From: | Rick Emery | Date: | Wed, 20 Feb 2002 14:41:48 +0000 |
| Subject: | RE: [PHP] Don't Know how to Set the include Path | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85530@lists.php.net to get a copy of this message | ||
Do you need to use an include path? Why not just use the include()
function?
Also, what are the contents of constant.inc? Perhaps the problem lies
there.
-----Original Message-----
From: Jack [mailto:jack@nedcor.com]
Sent: Wednesday, February 20, 2002 2:03 AM
To: php-general@lists.php.net
Subject: [PHP] Don't Know how to Set the include Path
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php