Problem with include on windows NT server
Closed
Office23
Posts
9
Registration date
Thursday 21 February 2008
Status
Member
Last seen
22 August 2008
-
22 Feb 2008 à 01:39
crazy_phoebe Posts 98 Registration date Wednesday 20 February 2008 Status Member Last seen 6 February 2009 - 6 Jul 2008 à 06:16
crazy_phoebe Posts 98 Registration date Wednesday 20 February 2008 Status Member Last seen 6 February 2009 - 6 Jul 2008 à 06:16
Related:
- Problem with include on windows NT server
- Bandlab download for pc windows 10 - Download - Musical production
- Blackmagic disk speed test windows - Download - Diagnosis and monitoring
- Fl studio 21 download for windows 10 - Download - Musical production
- How to make a teamspeak server - Guide
- Microsoft store download windows 10 - Download - App downloads
7 responses
Htmlgirl
Posts
12
Registration date
Thursday 21 February 2008
Status
Member
Last seen
1 August 2008
2
22 Feb 2008 à 03:44
22 Feb 2008 à 03:44
Hello Office23,
You can use the set_include_path or set_require_path. i tried this before..
Visit www.php.net for more information
You can use the set_include_path or set_require_path. i tried this before..
Visit www.php.net for more information
Itboy26
Posts
8
Registration date
Thursday 21 February 2008
Status
Member
Last seen
20 August 2008
1
22 Feb 2008 à 03:56
22 Feb 2008 à 03:56
Hi office23, welcome to the forum..
You can also make a test.. make two page, one named test1.php and another one name test2.php.
Put test2.php in the root folder and test1.php in a folder called test!
in test1.php just type
<?php
echo "Hello ";
include "test2.php";
?>
in test2.php just type
<?php
echo "World";
?>
Then open test1.php. You should get Hello world on the page
You can also make a test.. make two page, one named test1.php and another one name test2.php.
Put test2.php in the root folder and test1.php in a folder called test!
in test1.php just type
<?php
echo "Hello ";
include "test2.php";
?>
in test2.php just type
<?php
echo "World";
?>
Then open test1.php. You should get Hello world on the page
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.
include_path='.;c:\php4\pear'. <--- that's the actual error
in your php.ini setting, just change it from the location you want to include your file. Hope that makes sense. Try it and tell me if it works.
include_path='.;c:\php4\pear'. <--- that's the actual error
in your php.ini setting, just change it from the location you want to include your file. Hope that makes sense. Try it and tell me if it works.
Office23
Posts
9
Registration date
Thursday 21 February 2008
Status
Member
Last seen
22 August 2008
22 Feb 2008 à 04:18
22 Feb 2008 à 04:18
Hi Htmlgirl, i tried using the set_include_path but i don't really understand it. How should I apply this code in my actual code? It's for a project I'm working on and the deadline is three days.
Itboy26
Posts
8
Registration date
Thursday 21 February 2008
Status
Member
Last seen
20 August 2008
1
22 Feb 2008 à 04:24
22 Feb 2008 à 04:24
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.
crazy_phoebe
Posts
98
Registration date
Wednesday 20 February 2008
Status
Member
Last seen
6 February 2009
2
6 Jul 2008 à 06:16
6 Jul 2008 à 06:16
hi office 23,i have the same problem and i have solve it by using the ;set_include_path or set_require_path. it really solved the problem automatically.try it and you will be alright;-]