Tag Archives: PHP

Drupal – Sharing data across fields in the same row with Views Custom Field

We have talked about the Views Custom Field module previously. If you have no idea what is it for, you can take a look @ Drupal – Custom PHP code for Views Field.

Sometimes we may need to get a full node using Views Custom Field. For example, i want to get the number of images of a node. Continue reading Drupal – Sharing data across fields in the same row with Views Custom Field

Drupal – Send SOAP Request by NuSOAP

In PHP, we can use cURL library for generating SOAP request.
PHP – Send a SOAP Request by cURL

Except using the cURL library, we can also use the NuSOAP. The NuSOAP provides much more convenient way to create the SOAP request and it can be used in Drupal. The following example is base on the Blog post written be Eric London.
Executing a SOAP call from Drupal using nusoap Continue reading Drupal – Send SOAP Request by NuSOAP

Drupal – Override the php.ini

I was working for a Drupal website which i wanted to increase its maximum file upload size. This value is determined by the php.ini configuration file.

Unfortunately, the server hosting does not provide the SSH access so i can’t edit the php.ini. Therefore i have to let Drupal override the php.ini settings. There is 2 ways for Drupal to override the php.ini settings. Continue reading Drupal – Override the php.ini