Heroku | How to create/deploy your Php/CakePHP app (Ubuntu)

| By Webner

1.  Sign up: First, go to Heroku.com and click “sign up” to get your free Heroku account. 2.  Install the Heroku Toolbelt: The Heroku Toolbelt contains the Heroku client, a command-line tool for creating and managing Heroku apps. Install Heroku

PHP | Encoding Spanish Characters with json_encode

| By Webner

You may face a problem with Spanish characters in PHP while trying to use json_encode. After json_encode it doesn’t give any result and no any error either. For solving this use utf8_encode instead of json_encode. $result = utf8_encode ($value) Webner

Salesforce password expires and it needs to be changed in code everytime

| By Webner

Problem: We’re integrating Salesforce to a third-party e-commerce site using our custom cakephp app. In the app we’ve written code which uses Salesforce API to connect to Salesforce using Salesforce account username and password and then makes use of API

Codeigniter | How to remove index.php from URLs

| By Webner

Problem: The default URL for Codeigniter contains index.php in it. How to remove that from URL? For example: How do we change http://localhost/workspace/pagination_demo/index.php/Home/ to http://localhost/workspace/pagination_demo/Home/ Solution: Steps: 1.  Go to application- config folder inside your project: 2.   Open config.php file: This

Error Code: 3. Error writing file ‘/tmp/MYMI5iqH’ (Errcode: 28)

| By Webner

Problem Recently in a website we were developing in Codeigniter PHP Framework, some of the urls stopped working and started throwing 500 internal server error. On investigation we found a MySQL query which was causing the problem .Query is simple