php

Netsuite invoke Saved Search in PHP - Example

May
08

I've created a fair amount of PHP code to create custom searches on Netsuite Platform. With introduction of 2012.2 endpoint late last year, my examples have to be rewritten using the 2012.2 PHP Tool Kit API.

Here are a few examples written with v2011.2 API.

Posted By admin read more

How to get Client IP address in PHP?

Apr
01

There are a number of array name/value pairs provided in the PHP's "predefined" $_SERVER variable, which you can use to extract client's IP address. Some of the IP related $_SERVER parameters retrieved from the web server are passed by the client in the form of HTTP header, so they can be easily spoofed.

Posted By admin read more

Trap spambots from submitting forms with honeypot and PHP

Mar
27

One of the duties of webmaster is to prevent spambots from submitting web forms. If spammers are not blocked, the data collected from the visitors will contaminated with spams and it's a real nuisance to clean out this data every so often. I have been researching ways to block spams on web forms we have on our website, and found a solution that works reasonably well.

Posted By admin read more

[SOLVED] Outlook stripping newline character - Sendgrid

Feb
21

We've recently modified our ecommerce web application, and replaced the native PHP mail functionality with a phpmailer and SMTP. It was a pretty straight forward change, and we kept the mail format to "Plain/Text" format and changed the mail host to "smtp.sendgrid.net". After the change, we've noticed that the newline "\n" wasn't interpreted correctly and the mail we received were all garbled up. After some investigation, we found 2 things that needed to be changed to correct the problem.

Posted By admin read more

How to install Zend Framework 2 skeleton application?

Feb
07

For anyone getting started with Zend Framework 2 (or ZF2), the best way to get up and running quick is by installing the Zend Skeleton Application available on github. Here is the quick and easy way to get the skeleton application installed on Linux machine. You'll install the skeleton application first, and then we'll install ZF2.

1. Change directory to where you want to install ZF2 Skeleton Application.

Posted By admin read more

[SOLVED] Sendmail to remote server for local domain ignores MX record

Oct
04

Problem: You have a contact us form hosted on your website sending an email to your local domain, but the email never leaves your web server because your mail server is hosted elsewhere. The mail works fine for all other email domains (your customers receive confirmation emails), but your own domain fails to arrive (cc'ing to yourself).

This is really mind boggling problem, and it took me a while to find a solution that works in my environment. In a nutshell, there are a number of solutions but in certain environment first few options doesn't work.

Posted By admin read more

Netsuite PHP Search Tutorials

Sep
06

To perform operations on Netsuite records and objects, it is crucial to understand search functionality provided by Netsuite. Netsuite offers basic and advanced search objects on various record types, and their operations are practically the same.

The search results are either an array if there are more than 1 record returned, or an object if there is only 1 record in its result set. As a programmer, the result set must be examined whether it's an array or an object before performing an operation on them.

Posted By admin read more

SimpleSAMLphp Implementation Tutorial

Aug
25

SimpleSAMLphp is an open-source application that implements SAML 2.0 and Shibboleth 1.3 Single Sign-On (SSO). Third party applications that require SSO integration with SAML 2.0 or Shibboleth 1.3 may use SimpleSAMLphp to simplify integration process. SimpleSAMLphp offers an administrative interface to convert SAML meta data, and also provides a link to test and integrate with other Identity Providers and Service Providers. SimpleSAMLphp also offers a programming APIs which makes it easier for 3rd party applications to implement Single Sign On.

Posted By admin read more

How to search custom fields in Netsuite with PHP

Aug
23

Netsuite allows an administrator to add custom fields and custom records via GUI. Custom fields are business specific attributes defined by the company to tailor Netsuite. When a custom field is created in Netsuite, the administrator will assign an ID of the custom field and this ID becomes internal ID of the custom field. To show internal ID on Netsuite GUI, it must be turned on by going to Home -> Set Preferences -> General -> Defaults, and checking "Show Internal IDs" checkbox.

Posted By admin read more

Netsuite Custom Record to store external form data

Jul
24

Netsuite allows you to create a Custom Record to store table of data collected from an external form. For example, you may create an email opt-in form on your external website, and submit the form to Netsuite. The submitted data will be processed by a Suitelet, and stored as a Custom Record in Netsuite. The form must be able to process concurrent users, and hence Suitelet is favored over SuiteTalk (Web Service).

Posted By admin read more

Pages

Subscribe to RSS - php