13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

820 Chapter 33 Connecting to <strong>Web</strong> Services with XML <strong>and</strong> SOAP<br />

Table 33.1 Continued<br />

Filename Type Description<br />

cachefunctions.php Functions Contains functions to carry out the caching<br />

required by Amazon<br />

cartfunctions.php Functions Contains shopping cart–related functions<br />

categoryfunctions.php Functions Contains functions that help retrieve <strong>and</strong> display<br />

a category<br />

utilityfunctions.php Functions Contains a few utility functions used<br />

throughout the application<br />

You also need the nusoap.php file we mentioned previously because it is required in<br />

these files. NuSOAP is in the chapter33 directory on the CD-ROM at the back of the<br />

book, but you might like to replace it with a newer version from http://sourceforge.net/<br />

projects/nusoap/ if a new version is released.<br />

Let’s begin this project by looking at the core application file index.php.<br />

Core Application<br />

The application file index.php is shown in Listing 33.3.<br />

Listing 33.3<br />

index.php—The Core Application File<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!