Welcome Guest, Not a member yet? Register   Sign In
Codeigniter and php.ini problems in 1and1
#1

[eluser]thewiredman[/eluser]
Hello there,
I'm having a hard time to upload multiple files with Codeigniter in 1and1 hosting due to the directives in the php.ini
According to 1and1 FAQ you can create a php.ini and change the directives in any directory you want.

After I've uploaded a php.ini file to my root directory:
Code:
php_value upload_max_filesize "32M"
php_value post_max_size "34M"
php_value max_execution_time "600"
php_value max_input_time "600"

I still can't upload a file bigger than 20Mb which is the maximum size set by the hosting ,I've passed a variable with the ini_get values from my controller

Code:
function myaccount()
    {
            $data['title'] = " Accounts ";
            $data['state'] = " normal ";
            $data['php_values'] = ini_get("post_max_size") ." - " ini_get("upload_max_filesize");
            $this->load->view("myaccounts",$data);
    
    }

to my view and show them in the browser,
Code:
<?php echo $php_values;?>
but that variable returns the original configuration of the php.ini.

However if I run a standalone php file asking for the same information, I get the updated values I uploaded in my php.ini in the root directory.

Is there something I'm missing with codeigniter and its configuration?

Thanks for your help.


Messages In This Thread
Codeigniter and php.ini problems in 1and1 - by El Forum - 09-24-2008, 10:47 AM
Codeigniter and php.ini problems in 1and1 - by El Forum - 09-24-2008, 02:24 PM
Codeigniter and php.ini problems in 1and1 - by El Forum - 09-24-2008, 03:49 PM
Codeigniter and php.ini problems in 1and1 - by El Forum - 09-24-2008, 04:04 PM
Codeigniter and php.ini problems in 1and1 - by El Forum - 09-26-2008, 08:46 AM
Codeigniter and php.ini problems in 1and1 - by El Forum - 09-29-2008, 06:28 AM
Codeigniter and php.ini problems in 1and1 - by El Forum - 05-08-2009, 09:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB