• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A PHP Error was encountered

#1
Hi

I'm new using codeIgniter and sometimes I see the following error.   [CodeIgniter version 3.0.0]

A PHP Error was encountered

Severity: Core Warning

Message: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/apc.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/apc.so: cannot open shared object file: No such file or directory

Filename: Unknown

Line Number: 0

Backtrace:



This is the code (very simple)

in config/routes.php
PHP Code:
$route['default_controller'] = 'main'


in Main.php \controllers\Main.php
PHP Code:
<?php
defined
('BASEPATH') OR exit('No direct script access allowed');

class 
Main extends CI_Controller
{
    public function 
index()
    {        
        
$this->home();
    }
    private function 
home()
    {
        
$this->load->view('header.php');
        
$this->load->view('homepage.php');
        
$this->load->view('footer.php');
    }


in homepage.php \views\homepage.php
PHP Code:
<?php
echo "<p>This is the home page</p>";
?>

header.php \views\header.php
PHP Code:
<?php 
  echo 
"<h1>Header Here</h1>"
?>

footer.php \views\footer.php
PHP Code:
<?php 
 
echo "<h4>Footer Here</h4>"
?>
Reply

#2
As I see, the problem is with your APC library and not with CodeIgniter
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.