Tag Archives: PHP

New Version of the PHP_ToolKit 2012.2

Netsuite has recently released a new version of their php toolkit (version 2012.2). It looks like they did a pretty big rewrite of a lot of the code. For those of you familiar with the old version of the toolkit, … Continue reading

Posted in Netsuite PHPToolkit | Tagged , , , , , | 5 Comments

Netsuite API Raw XML Request

Recently someone asked me if I could send them a copy of the XML that gets sent back and forth when you make a Netsuite API call. This could be useful if you want to implement the Netsuite API in … Continue reading

Posted in Beginning with the PHPToolkit, Netsuite PHPToolkit | Tagged , , , , , | 1 Comment

Netsuite API Testing Script

Although I have posted many code samples on this site, I have rarely included a fully functional script. Often login information or execution code was not included since it wasn’t relevant to the particular post. However, here is a complete … Continue reading

Posted in Beginning with the PHPToolkit | Tagged , , , , , , | Leave a comment

Netbeans PHPUnit Code Completion

By default, Netbeans dosen’t do code completion for PHPUnit classes even though it includes support for PHPUnit. Thankfully, adding in the code completion support is very easy. Simply go to Tools>Options>PHP>General and then click “Add Folder” under the Global Include … Continue reading

Posted in PHP | Tagged , , , , | Leave a comment

PHPUnit require_once(PHP/CodeCoverage… Error on Ubuntu

When trying to install PHPUnit on Ubuntu 11.10, I received the following error: PHP Warning: require_once(PHP/CodeCoverage/Filter.php): failed to open stream: No such file or directory in /usr/bin/phpunit on line 38 PHP Fatal error: require_once(): Failed opening required ‘PHP/CodeCoverage/Filter.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in … Continue reading

Posted in PHP | Tagged , , , , , | Leave a comment

Retrieving and Displaying Netsuite Address Information

Adam Haeder requested to see some sample code for accessing address information via the Netsuite Webservices API. So here it is:

Posted in Netsuite PHPToolkit, PHP | Tagged , , , , , , | 1 Comment

PHP Output Buffering (with HTML)

Over the past year I have made heavy use of PHP output buffering. Although it serves no function purpose, it can make for much more readable code; I have found it particlarly useful for outputting HTML from methods. Consider the … Continue reading

Posted in Html, PHP, Uncategorized | Tagged , , , , | Leave a comment

Symfony including extra libraries or classes

I had a need lately to include an external library of php classes in a Symfony project. On option was dumping them into the lib folder, but I didn’t want to do that. At first I tried placing a script … Continue reading

Posted in 1.4, PHP, Symfony | Tagged , , , , | 1 Comment

Netsuite Webservices and Multiple Item Sales Orders

By request, here is a post on creating a sales order record with Netsuite PHPToolkit with more than one item: Its not all that intuitive, but that’s Netsuite Web-services for you…

Posted in Netsuite PHPToolkit, PHP | Tagged , , , , | 3 Comments

Create Netsuite Customer with Addresses

Figuring out how to do address arrays on a Netsuite Customer can be rather complicated so I thought I would share some sample code:

Posted in Netsuite PHPToolkit | Tagged , , , | 10 Comments