Undefined function in php

Posted by Bidyut on Stack Overflow See other posts from Stack Overflow or by Bidyut
Published on 2012-11-28T04:59:24Z Indexed on 2012/11/28 5:04 UTC
Read the original article Hit count: 181

Filed under:
|

I wrote three methods in a class and one is calling another, but when I call the function outside through the object, it is showing an undefined function error for the second function.

Here's my code:

function resize_image(){

}

function image_resize(){
    $a = resize_image();
}

When I run this, it shows resize_image() as undefined. Here's the error:

Fatal error: Call to undefined function resize_image() in /home/vacayge/public_html/Major/Alpha1/classes/cUserImages.php on line 2090

© Stack Overflow or respective owner

Related posts about php

Related posts about function