Jump to content

Problem with classes on different pc's but not webhoster


kbloem

Recommended Posts

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]

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....

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.

Archived

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

×
×
  • Create New...

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.