Stalingrad Posted April 6, 2008 Share Posted April 6, 2008 Hey. =] I was programming in PHP, and everything was fine. All of a sudden I got this error: Fatal error: Call to undefined function startit() in /file information/ on line 5 It was working fine, and yes, I do have that function included, and everything is spelled correctly. Does anybody know why I am getting this, and how I can fix it? Please and Thank You! =] Quote Link to comment https://forums.phpfreaks.com/topic/99840-help-please/ Share on other sites More sharing options...
doni49 Posted April 6, 2008 Share Posted April 6, 2008 maybe PHP can't find the file that contains the function? Is the include file in the same folder? P.S. Just to make sure the file really is being included, try adding an echo statement to the included file: echo "This Page DID load"; If you see that string, then it loaded. If you don't then you know it's a problem with being able to find the file. Quote Link to comment https://forums.phpfreaks.com/topic/99840-help-please/#findComment-510619 Share on other sites More sharing options...
wildteen88 Posted April 6, 2008 Share Posted April 6, 2008 Make sure you are calling the function after you have defined it. It may be helpful if you provide some code too. Quote Link to comment https://forums.phpfreaks.com/topic/99840-help-please/#findComment-510622 Share on other sites More sharing options...
Stalingrad Posted April 6, 2008 Author Share Posted April 6, 2008 Okay. I put: echo "This page DID work"; in the included file, and it showed up. Oh, and I only get this error in the Register and Login pages; the other pages that I included the same file and functions on worked fine. Also; Thank you to both of you. =] Quote Link to comment https://forums.phpfreaks.com/topic/99840-help-please/#findComment-510626 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.