Salesforce Integration | Upsert multiple records with single connection in PHP

| By Webner

When we create connection with “SforceEnterpriseClient”, we can upsert one record and then we need to recreate connection for next upsert, which eventually can result in the exception: “UnexpectedErrorFault: REQUEST_LIMIT_EXCEEDED: TotalRequests Limit exceeded.” The solution is to use “SforcePartnerClient” instead

PHP | How to call SOAP based web services from php

| By Webner

We were working on codeigniter website project. We had wsdl web services available to access our backend functionality. We had configured a WSDL Client in our php code but it was not working. Sample Code: try { $testSoapClient = new

Google Maps | Display routes to different locations from common starting point

| By Webner

Suppose in Google Maps you want to display routes to different locations from common starting point. For this we need accurate lat/long of the origin and destination addresses (only 1 origin and multiple destinations). We will use following statement to

Mysql | Maximum execution time of 360 seconds exceeded at data import time

| By Webner

In one of the project we had to import some .csv files into Mysql database. Files were of size 80mb and more. When we tried to upload the files through phpmyadmin it was resulting in timeout error – Maximum execution

Salesforce | How to access php code in salesforce apex class

| By Webner

We can access the php code in salesforce using @future(callout=true/false). The function we make for accessing the php code in apex class is of static type and does not return any value. Syntax: @future(callout=true) public static void function_Name() { //variable

Joomla- Database Error: Unable to connect to the database

| By Webner

While working with Joomla if you get an error – “Database Error: Unable to connect to the database:Could not connect to database”, check following properties in Joomla’s configuration.php file : //given values are sample data only. var $dbtype = ‘mysql’;

Moodle | Call to undefined method mysqli_native_moodle_database :: insert_records()

| By Webner

We were using insert_records() function to insert multiple records in a Moodle database table but it was not working. We checked for errors by adding following lines in config.php file of moodle: @error_reporting(E_ALL | E_STRICT); @ini_set(‘display_errors’, ‘1’); $CFG->debug = (E_ALL