problen with include file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

problen with include file

Post by pelegk2 »

i have this include file :

Code: Select all

require("../myWhere.php");
for some reason when i call this function(that before was written inside the page that i call from -was working ok!)
but know when i call it i get the message that :
Fatal error: Call to undefined function: mywhere() in C:\Program Files\Apache Group\Apache2\htdocs\compliant\view_compl2.php on line 151
why?
thanks in advance
peleg
User avatar
Dr Evil
Forum Contributor
Posts: 184
Joined: Wed Jan 14, 2004 9:56 am
Location: Switzerland

Post by Dr Evil »

Make sure:

1 you have the correct address for your included file (here you are going up one level, is this correct ?)
2 have the function properly set up in that file
3 call the correctly written function on line 151

you can also post your code here for us to look
Post Reply