Jump to content


Photo

Help with Error


  • Please log in to reply
4 replies to this topic

#1 MrWicked1

MrWicked1
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 17 April 2006 - 06:13 AM

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"

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 17 April 2006 - 08:04 AM

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.

#3 MrWicked1

MrWicked1
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 17 April 2006 - 01:07 PM

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?

#4 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 17 April 2006 - 01:27 PM

[!--quoteo(post=365517:date=Apr 17 2006, 02:07 PM:name=MrWicked1)--][div class=\'quotetop\']QUOTE(MrWicked1 @ Apr 17 2006, 02:07 PM) View Post[/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.
"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!

#5 MrWicked1

MrWicked1
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 17 April 2006 - 04:03 PM

thanks alot, guys ive figured it out, =]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users