Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: compress_output vs mod_deflate
Post: compress_output vs mod_deflate

If Apache's "mod_deflate" is installed, is there any advantage to setting "compress_output" to TRUE in Codeigniter?
3,349 Views
1 Replies
05-22-2015, 07:18 AM
marksalvatore
    Thread: Diacritical marks are truncated via Active Record
Post: RE: Diacritical marks are truncated via Active Rec...

Solved! I changed my db config from char_set utf8 to utf8mb4. Here's a solid summary of the issue and solution: http://stackoverflow.com/questions/279170/utf-8-all-the-way-through Code: --...
23,584 Views
0 Replies
05-07-2015, 07:27 AM
marksalvatore
    Thread: Mcrypt is installed, but error implies it's not.
Post: RE: Mcrypt is installed, but error implies it's no...

That worked! Problem solved! Big thanks!
75,683 Views
0 Replies
12-02-2014, 12:08 PM
marksalvatore
    Thread: Mcrypt is installed, but error implies it's not.
Post: RE: Mcrypt is installed, but error implies it's no...

Thanks Rufnex, but I know that article well. That's a method to get the MAMP interface to display the versions of PHP you already have on your machine. MAMP only shows two at a time. Anyway, what I ne...
75,683 Views
0 Replies
12-02-2014, 08:37 AM
marksalvatore
    Thread: Mcrypt is installed, but error implies it's not.
Post: RE: Mcrypt is installed, but error implies it's no...

After more testing it looks like MAMP simply doesn't "see" the background process. Since MAMP doesn't see it, the OS-installed version of php (5.5.14) picks up the call and runs with it. That OS-insta...
75,683 Views
0 Replies
12-02-2014, 08:05 AM
marksalvatore
    Thread: Mcrypt is installed, but error implies it's not.
Post: RE: Mcrypt is installed, but error implies it's no...

I think we found the problem. It appears that my web server runs a different version of php, then the version that runs as a background process. From the command line: php --info PHP Version => 5.5.1...
75,683 Views
0 Replies
12-02-2014, 05:59 AM
marksalvatore
    Thread: Mcrypt is installed, but error implies it's not.
Post: RE: Mcrypt is installed, but error implies it's no...

Does anyone know how to verify which version of php is accessed when a background php process is called? I've been assuming that the version the web server is running is the same as the version ac...
75,683 Views
0 Replies
12-01-2014, 07:31 AM
marksalvatore
    Thread: Mcrypt is installed, but error implies it's not.
Post: RE: Mcrypt is installed, but error implies it's no...

I wish you were right about that. In my first post, I was running PHP 5.6.2. In the second post, slax0r suggested running an earlier version of PHP, so I took his advice and installed PHP 5.5.18 (cli)...
75,683 Views
0 Replies
11-29-2014, 11:46 AM
marksalvatore
    Thread: Diacritical marks are truncated via Active Record
Post: RE: Diacritical marks are truncated via Active Rec...

Yes. Actually, at the start of this thread I show that the character string, containing the diacritical mark, is complete in the $values array, just before inserting $values in the database. So it...
23,584 Views
0 Replies
11-29-2014, 08:25 AM
marksalvatore
    Thread: Mcrypt is installed, but error implies it's not.
Post: RE: Mcrypt is installed, but error implies it's no...

Whoa, I just realized something! Ugh... I can't believe I didn't think of this before, but mcrypt *must* be working, since I'm able to log into the application. The login process uses the session ...
75,683 Views
0 Replies
11-29-2014, 08:18 AM
marksalvatore
    Thread: Diacritical marks are truncated via Active Record
Post: RE: Diacritical marks are truncated via Active Rec...

Yes, the problem still exists. In the meantime, I created a hack, that updates the field that might contain a diacritical mark , by using the driver class, like this: $conn = new mysqli($hostname, ...
23,584 Views
0 Replies
11-28-2014, 04:12 PM
marksalvatore
    Thread: Mcrypt is installed, but error implies it's not.
Post: RE: Mcrypt is installed, but error implies it's no...

php -v: PHP 5.5.18 (cli) (built: Oct 20 2014 16:18:57) php -m: includes mcrypt in the list of extensions var_dump(function_exists('mcrypt_encrypt')): bool(true) The link your provided is ...
75,683 Views
0 Replies
11-28-2014, 03:16 PM
marksalvatore
    Thread: Mcrypt is installed, but error implies it's not.
Post: RE: Mcrypt is installed, but error implies it's no...

No, the problem is still not solved. The output of print_r(mcrypt_list_modes()) is: Array ( [0] => cbc [1] => cfb [2] => ctr [3] => ecb [4] => ncfb [5] => nofb [6] => ofb [7] => stream )
75,683 Views
0 Replies
11-28-2014, 01:16 PM
marksalvatore
    Thread: Diacritical marks are truncated via Active Record
Post: RE: Diacritical marks are truncated via Active Rec...

I verified that there is only one "Userinfo" class defined. If there were more than one class with that name, wouldn't CI complain under version 2.2 as well? But what's interesting to note, is tha...
23,584 Views
0 Replies
11-27-2014, 09:53 AM
marksalvatore
    Thread: Diacritical marks are truncated via Active Record
Post: RE: Diacritical marks are truncated via Active Rec...

Yes, the first letter of the class is uppercase. Our CI application has been in production for a few years now so it's stable. The first time we've run into problems we couldn't resolve via a google s...
23,584 Views
0 Replies
11-27-2014, 07:16 AM
marksalvatore
    Thread: Diacritical marks are truncated via Active Record
Post: RE: Diacritical marks are truncated via Active Rec...

During the CI 3 install, I received a fatal error: Fatal error: Cannot redeclare class UserInfo My UserInfo class is not seen as "redeclared" in CI 2, so why is it so in CI 3?
23,584 Views
0 Replies
11-26-2014, 05:18 PM
marksalvatore
    Thread: Diacritical marks are truncated via Active Record
Post: RE: Diacritical marks are truncated via Active Rec...

I inserted that line before the update() and before the insert(), but the string still truncates in both cases. I'll try it with CI 3 now, to see if the results are different.
23,584 Views
0 Replies
11-26-2014, 04:09 PM
marksalvatore
    Thread: Diacritical marks are truncated via Active Record
Post: RE: Diacritical marks are truncated via Active Rec...

Ubuntu 12.04.5 Apache/2.2.22 PHP 5.3.10-1ubuntu3.15 with Suhosin-Patch (cli) (built: Oct 29 2014 12:19:04) MySQL 5.1.73a CI 2.2 The same problem occurs in my development environment: OS X ...
23,584 Views
0 Replies
11-26-2014, 03:03 PM
marksalvatore
    Thread: Diacritical marks are truncated via Active Record
Post: RE: Diacritical marks are truncated via Active Rec...

Unfortunately, I verified that my database is also set to encoding = "utf8". And I tried your suggestion of 'dbcollat' => '', but that didn't make a difference either. Could this be a legitimate bug?
23,584 Views
0 Replies
11-26-2014, 10:38 AM
marksalvatore
    Thread: Diacritical marks are truncated via Active Record
Post: RE: Diacritical marks are truncated via Active Rec...

So the diacritical marks truncate the 'name' string when using this db call: $values['name'] = "Erlösten"; $this->db->insert($this->_table, $values); And with this db call: $sql = "UP...
23,584 Views
0 Replies
11-25-2014, 06:49 PM
marksalvatore

Theme © iAndrew 2016 - Forum software by © MyBB