cooldude832 Posted October 21, 2009 Share Posted October 21, 2009 I have a class written in another file that handles my image resizing. Can I do this (php says I can't calling a non-existent class), but I know its there becuase the require doesn't fail above <?php <?php require_once("image_load.php"); ... .... function image_upload($tmp_name,$imgid){ $image = new easyImageEdit(); $image->load(UPLOADS.$tmp_name); $image->resizeToWidth(250); } ?> Quote Link to comment Share on other sites More sharing options...
trq Posted October 21, 2009 Share Posted October 21, 2009 Yes, its perfectly valid. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted October 21, 2009 Author Share Posted October 21, 2009 then why am I getting: Fatal error: Cannot instantiate non-existent class: easyimageeditor in /homepages/26/d294404313/htdocs/kseego/scripts/functions.php on line 132 Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted October 21, 2009 Author Share Posted October 21, 2009 sorry how this get in the ajax baord went to php? Quote Link to comment Share on other sites More sharing options...
trq Posted October 21, 2009 Share Posted October 21, 2009 Is the class easyimageeditor or easyImageEdit ? Make your mind up. Quote Link to comment Share on other sites More sharing options...
Gayner Posted October 21, 2009 Share Posted October 21, 2009 then why am I getting: Fatal error: Cannot instantiate non-existent class: easyimageeditor in /homepages/26/d294404313/htdocs/kseego/scripts/functions.php on line 132 Please supply us that line of code, in ur include maybe we can help! Quote Link to comment 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.