MrWicked1 Posted April 17, 2006 Share Posted April 17, 2006 Why am i getting this error and how can i fix it, anyhelp would be greatly appreciated!"Fatal error: Call to undefined function left() in C:\Server\index.php on line 21" Quote Link to comment https://forums.phpfreaks.com/topic/7583-help-with-error/ Share on other sites More sharing options...
wildteen88 Posted April 17, 2006 Share Posted April 17, 2006 Prefty straight forward. PHP is looking for a function called left in your script, but it can't find it. left is not a predifined function in PHP. By looks of it is being defined in your script somewhere. Quote Link to comment https://forums.phpfreaks.com/topic/7583-help-with-error/#findComment-27631 Share on other sites More sharing options...
MrWicked1 Posted April 17, 2006 Author Share Posted April 17, 2006 ok i see the left function its in the file called "left_mem.php" in the php file that uses the left function include_once "left_mem.php";is at the top, why isent it working? Quote Link to comment https://forums.phpfreaks.com/topic/7583-help-with-error/#findComment-27680 Share on other sites More sharing options...
redbullmarky Posted April 17, 2006 Share Posted April 17, 2006 [!--quoteo(post=365517:date=Apr 17 2006, 02:07 PM:name=MrWicked1)--][div class=\'quotetop\']QUOTE(MrWicked1 @ Apr 17 2006, 02:07 PM) [snapback]365517[/snapback][/div][div class=\'quotemain\'][!--quotec--]ok i see the left function its in the file called "left_mem.php" in the php file that uses the left function include_once "left_mem.php";is at the top, why isent it working?[/quote]have you checked that 'left_mem.php' file is on the server and your 'include_once' path is correct?sometimes, depending on the error setting, you wont get an warning if the file fails to be included but will get an error if some of the functions required for your main script to run aren't found.worth a double check as i've had this problem once or twice in the past. Quote Link to comment https://forums.phpfreaks.com/topic/7583-help-with-error/#findComment-27683 Share on other sites More sharing options...
MrWicked1 Posted April 17, 2006 Author Share Posted April 17, 2006 thanks alot, guys ive figured it out, =] Quote Link to comment https://forums.phpfreaks.com/topic/7583-help-with-error/#findComment-27736 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.