Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8305061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:59:43+00:00 2026-06-08T17:59:43+00:00

I am using a Pagination class that I found on Codecanyon that works wonders

  • 0

I am using a Pagination class that I found on Codecanyon that works wonders on a virtual host ( XAMPP ). I just uploaded it to the server the site is for, and almost the whole class is rendered as plain text where it’s included, instead of being used, so to speak.

The whole site is PHP based, and works perfectly, but this little class is simply printed as text. I really can’t figure out why, and I am in desperate need to find a solution to this as quickly as possible.

Here are the first plain text that is shown from the class;

phrase=array(); $this->setCurrentPage($currentPage); 
$this->setTotalResults($totalResults); 
$this->setResultsPerPage($resultsPerPage); 
$this->setLanguage($language); 

.. and on it goes to the end of the class file.

This is the first lines in the class’ constructor ( and the $this-> key is omitted in the plain text.. (?). Here is the first lines of the constructor itself;

function __construct($currentPage,$totalResults,$resultsPerPage=25,$language='en',$pathToLanguageFile='../language/') 
    {
        $this->phrase=array();

        $this->setCurrentPage($currentPage);
        $this->setTotalResults($totalResults);

Here is a link to the class posted by the author on codecanyon; http://codecanyon.net/item/scrolling-pagination-class/113230

I’m sure it’s some server setting that does this, but which/where/why?

(I’m not posting the whole pagination class, since it has been bought, and the license obstructs me from doing this, although I can’t imagine it’s the class’ fault)

I would be immensely appreciative for any help and/or pointers.
Thank you.

EDIT
Silly me did not notice that “< ?” was the first line of the file instead of “< ?php”.
Thank you for the comments, and I am truly sorry for the unnecessary question.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:59:44+00:00Added an answer on June 8, 2026 at 5:59 pm

    The tag ‘< ?’ was at the first line of the file, instead of ‘< ?php’.
    That was the cause of it all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using codeigniter and its pagination class. It works perfectly and it looks
I am creating MVC3 Site and using pagination (using PagedList;) in that to display
I'm new in CodeIgniter and read user guide from website. Using pagination class, pagination
I am using following class to show a grid like appearance with pagination on
I have a controller function that displays all records, I am using the pagination
I am using a Pagination class very similar to the one used in the
I am using Displaytag framework for pagination & exporting purpose. In that i am
I'm using a pagination method for displaying search results returned from my database. I'm
I've have already implemented pagination using the following code: public Paginacao<Anuncio> consultarPaginado(int pagina, Integer
I am trying to introduce pagination using the backbone.js paginator plugin 's requestPager .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.