Hello,
im on a windows NT server, and somehow, when i use the include methode include('../functions.php');
it doesn't find the functions.php page!!
i have a file name post.php, it's in a folder, and i need to include the functions file to it.. i also tried a relative path which doesn't work either.
Some people told me to try the code below since im on a windows NT server
Code:
include('C:\hshome\host-user\xfzo.com\functions.php')
but i got these warning messages
Warning: main('C:\hshome\host-user\xfzo.com\functions.php') [function.main]: failed to open stream: No such file or directory in 'C:\hshome\host-user\xfzo.com\posts.php'on line 4
Warning: main() [function.include]: Failed opening 'C:\hshome\host-user\xfzo.com\functions.php' for inclusion (include_path='.;c:\php4\pear') in C:\hshome\host-user\xfzo.com\shoutbox\posts.php on line 4
What should i do?
Configuration: Windows XP Internet Explorer 6.0
Hi office23, welcome to the forum..
|
Office23, you should specify that you are using php as your programming language in your thread title. Otherwise people won't be able to determine if you're talking about it. The warning message you got from php already told you the error.
|
According to that error message, you can only include files that are in the same directory(folder) as your script or in c:\php4\pear unless you change it from your php.ini as mentioned by Jamescracker. If you don't have access to php.ini, just ask your host provider to change it or just put the file that you need to include in the same directory. As long as it doesn't affect your script, it's fine. |