2007

Table Of Contents
Name-Value Pair API Developer Guide and Reference April 2007 99
NVP API Web Samples
Samples Using PHP
Samples Using PHP
This section contains information for configuring and running the NVP API Web Samples
Using PHP.
Required Software
The following software is required:
You must install and configure PHP with the Apache HTTP Server.
Download and Unzip the Samples
The latest version of the Web Samples are available at
https://www.paypal.com/IntegrationCenter/ic_nvp.html.
1. Download the zipfile distribution.
2. Unzip the zipfile to any directory of you choose.
Installing the Samples
Copy the sample folder, php_nvp_samples, to the docroot of the Apache HTTP Server. By
default docroot is in
datadir/htdocs.
Running the Samples
First, make sure that you have installed the required software and the samples.
You can run the samples by entering the following address in a web browser:
http://name_of_Apache_HTTP_Server:port/php_nvp_samples/index.html
T
ABLE C.4 Required Software
Software Version Download Location
PHP with CURL extension
enabled
4.4.2 or greater http://www.php.net/downloads.php
Apache HTTP Server 1.3.17 or greater http://httpd.apache.org/