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

  • SEARCH
  • Home
  • 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 6629415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:15:25+00:00 2026-05-25T22:15:25+00:00

When I upload my fully working codeigniter app on live server it did not

  • 0

When I upload my fully working codeigniter app on live server it did not find any controller and cotroller action.

For example:

my local url is:

localhost/myapp/index.php/testcontroller/testaction

Yes, It works fine, But when I upload the same thing and url becomes:

livesite.com/index.php/testcontroller/testaction

It does not work. Shows error that cant fine the controller. I am wondering why it is happening so while it is working on local server.
Kindly help

controller code:

<?php
class Ajaxification extends CI_Controller{
    public function __construct() {
        parent::__construct();
        $this->load->database();$this->load->model('MAjaxification');
    }
    public function Index(){

    }
    public function getUserDetail(){
        $this->load->model('MAjaxification');
        $uid = $_REQUEST['uid'];
        echo $this->MAjaxification->getUserdetail($uid);
       // echo "A test response";
    }
    public function getRandomUser(){
       $top = $_REQUEST['top'];
       $left = $_REQUEST['lef'];
      // $this->load->model('MAjaxification');
     //  print_r($this->MAjaxification->getRandomDonoers());*/
        $this->db->select("users.sno,users.full_name,users.userid,users.email,users.pic");
        $this->db->from('users');
        $this->db->join('donors','users.userid=donors.userid');
        $this->db->order_by('rand()');
        $this->db->limit(51);
        $res= $this->db->get();

        foreach ($res->result() as $row)
        {
          ?> <div style="border:0px solid black; width: 31px; height: 29px; float: left;">
        <a onclick="getUserinfoDetail('<?=$row->userid?>')" href="javascript:void(0)"><img width="40" height="40" src="../profile_pix/<?=$row->pic; ?>" /></a>
    </div><?php
        }

    }

    private function countUsers(){
        $this->db->select("users.sno,users.pic");
        $this->db->from('users');
        $this->db->join('donors','users.userid=donors.userid');
        $res = $this->db->get();
        return $res->num_rows();
    }
    function getRandUser($f=1,$t){
       $index = rand($f, $t);
       return $index;
    }
    public function testme(){
        echo "This is a test";
    }
}
?>
  • 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-25T22:15:26+00:00Added an answer on May 25, 2026 at 10:15 pm

    I never worked with Codeigniter, but if it is similar to Kohana, you have to setup the base_url.
    [EDIT]
    Check this post from CodeIgniter forum: https://github.com/EllisLab/CodeIgniter/wiki/Automatic-configbase-url

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

Sidebar

Related Questions

I'm trying to upload an application to the iPhone App Store, but I get
I am using Codeigniter and I am trying to upload multiple files into a
I am working on an image upload script and ran into this problem. Using
I am using move_uploaded_file to upload files in cakephp, this was working for a
I have a simple file uploader, which thanks to stackoverflow is now fully working,
I am using plupload to do an upload of multiple files to my server.
I am trying to use the paperclip plugin in my rails app to upload
So I'm working on a web app where a user will need to: provide
I am trying to upload a file or stream of data to our web
I want to upload and then process a file in a Ruby on Rails

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.