kbloem Posted September 7, 2010 Share Posted September 7, 2010 Hi i have a piece of php code wich includes a pagination.class.php. That file is in the same folder and when i execute it gives me a Fatal Error for undefined function doPagination(). When i upload the contents of this folder to my webhoster everything is ok so i suspect there is something wrong in my php.ini or i have to enable something. Does someone know what? I use wamp 2.0i and i tested it on 4 different workstations. I can email the files if someone wants to test. You also get a nice search function [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/212764-problem-with-classes-on-different-pcs-but-not-webhoster/ Share on other sites More sharing options...
Adam Posted September 7, 2010 Share Posted September 7, 2010 Try: include './pagination.class.php'; It may be that the include path is been overwritten and not correctly including the same directory. Quote Link to comment https://forums.phpfreaks.com/topic/212764-problem-with-classes-on-different-pcs-but-not-webhoster/#findComment-1108250 Share on other sites More sharing options...
kbloem Posted September 7, 2010 Author Share Posted September 7, 2010 Nope, it keeps giving me this error... Fatal error: Call to undefined function doPagination() in C:\wamp\www\test\result.php The folder on my home server is identical to the folder on the webserver of my hostingprovider.... Quote Link to comment https://forums.phpfreaks.com/topic/212764-problem-with-classes-on-different-pcs-but-not-webhoster/#findComment-1108252 Share on other sites More sharing options...
PFMaBiSmAd Posted September 7, 2010 Share Posted September 7, 2010 Either your include is failing due to the path or you are using short open tags in your included file. Are you developing and debugging your code on a system with error_reporting set to E_ALL and display_errors set to ON so that all the php detected errors, such as a failed include statement, will be reported and displayed? Also, don't ever use short open tags, they just waste time, every time you move code to a server that has them turned off. Quote Link to comment https://forums.phpfreaks.com/topic/212764-problem-with-classes-on-different-pcs-but-not-webhoster/#findComment-1108256 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.