Jump to content

Archived

This topic is now archived and is closed to further replies.

MrWicked1

Help with Error

Recommended Posts

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"

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
[!--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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.