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]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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