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:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 2:03 AM To: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php