Skip to content

Tag: php

Run test in phpunit with specific php version

I have installed multiple PHP versions on my Mac and want to run unit-tests against a specific PHP version (or against multipls versions) Here’s the php versions I have: My test case looks like this: When I run the test I get this response: How can I run the tests with the php version 5.2.17? Update: I …

Content length for code igniter view

Is it possible to get the length of the data that will be sent to browser when a view file is loaded? For example, I would like to know the content length that should be sent to browser. Since the data sent can also be an array, it might increase the length of the HTML content. It is unlikely that

MySQL COMPRESS vs PHP gzcompress

I am developing a PHP application where large amounts of text needs to be stored in a MySQL database. Have come across PHP’s gzcompress and MySQL’s COMPRESS functions as possible ways of reducing the stored data size. What is the difference, if any, between these two functions? (My current thought…

Confused with oledb and odbc

I heard about oledb and odbc, and I know both are database programming interfaces. I am trying to establish an oledb connection with the php script. I have mysql server 2012 running on my computer. I know how to create an odbc connection with pdo in php like PDO::OLEDB_ATTR_USE_ENCRYPTION,PDO::OLEDB_ATTR_USE_…