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 6048777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:30:05+00:00 2026-05-23T07:30:05+00:00

I have a codeigniter website that runs beautifully on localhost, but now that I

  • 0

I have a codeigniter website that runs beautifully on localhost, but now that I have moved it to Host gator some page requests are taking around 30 seconds to serve up, if loaded at all! The weird thing is that is seemingly random, and while waiting for the page to load, if I simply re-click the link the page will load normally. I’m not sure if this is a programming problem in my controllers (code below) or just issues on host gators end. Please plesse please someone help me out here, as I am going insane.

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Company extends CI_Controller
{
function __construct()
{
    parent::__construct();

    if (!$this->session->userdata('language')) $this->session-    >set_userdata('language', 'en');
}

function index ()
{
    $tags['title'] = 'title tag';

    $this->load->view($this->session->userdata('language').'/includes/view_header',$tags);
    $this->load->view($this->session->userdata('language').'/company/view_company');
    $this->load->view($this->session->userdata('language').'/includes/view_footer');    
}

function warranty ()
{
    $tags['title'] = 'title tag';

    $this->load->view($this->session->userdata('language').'/includes/view_header',$tags);
    $this->load->view($this->session->userdata('language').'/company/view_warranty');
    $this->load->view($this->session->userdata('language').'/includes/view_footer');        
}
}
  • 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-05-23T07:30:06+00:00Added an answer on May 23, 2026 at 7:30 am

    I suggest you to test with codeigniter profiler, It will show all the processing time like sql execution etc…

    <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
    
    class Company extends CI_Controller
    {
        function __construct()
        {
            parent::__construct();
            $this->output->enable_profiler(TRUE);
            if (!$this->session->userdata('language')) $this->session-    >set_userdata('language', 'en');
        }
    

    When enabled a report will be generated and inserted at the bottom of your pages.

    To disable the profiler you will use:

    $this->output->enable_profiler(FALSE);
    

    For more details http://codeigniter.com/user_guide/libraries/output.html

    Hope this will help you, let us know if anything there… Thanks!!

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

Sidebar

Related Questions

I am currently building a website in codeigniter that is one page site, basically
I am developing a website using Codeigniter that will have different subdomains for different
I have used PHP for awhile now and have used it well with CodeIgniter,
I'm creating website that handles great amount of images. I have decided to use
I've been developing a website locally with CodeIgniter and have tried uploading it to
I have been developing a login library for a website using CodeIgniter. The authentication
I'm re-creating a registration for my website using Codeigniter. On my previous page, I
Let's say that we have a Codeigniter installation and the way to access that
In Kohana/CodeIgniter, I can have a URL in this form: http://www.name.tld/controller_name/method_name/parameter_1/parameter_2/parameter_3 ... And then
I'm preparing a website that will send email notifications to registered users. From my

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.