TAILIEUCHUNG - PHP and MySQL Web Development - P156

PHP and MySQL Web Development - P156: PHP and MySQL Web Development teaches the reader to develop dynamic, secure, commercial Web sites. Using the same accessible, popular teaching style of the first edition, this best-selling book has been updated to reflect the rapidly changing landscape of MySQL and PHP. | Solution Components 747 We have implemented caching to meet the conditions at points 2 to cache images for 24 hours and product data which contains prices for one hour. We have chosen to ignore point want items on the main page to link to detailed pages on our site and only link to Amazon when complete. This is the way shopping cart applications usually work and the way that sample third-party applications linked from Amazon s site all work. This leads us to believe that Amazon is not terribly bothered by breaches of this condition. Feel free to make a different decision. An Amazon Web Services staffer indicated that they are aware of the situation and may review the condition in the future. Parsing XML The first interface Amazon offers to its Web Services is via XML over HTTP. This interface accepts a normal HTTP request and returns an XML document. To use this interface we will need to parse the XML response Amazon sends us. We will do this by using PHP s XML library which is based on the expat parser written by James Clark. This is the same XML parser used by Mozilla. It is a SAX parser. If you want to read more about the PHP XML library you can look at the PHP Manual or the expat documentation at http xml . Using SOAP with PHP The other interface offering the same Web Services is SOAP. To access them using SOAP we will need to use one of the various PHP SOAP libraries. At the time of writing there were three notable PHP SOAP libraries PHP-SOAP PEAR SOAP and NuSOAP. PHP-SOAP is a C extension to PHP and will probably become the official SOAP extension. At the time of writing it was still under development. PEAR SOAP is a set of PHP class files in PEAR that enable you to create SOAP clients and servers. NuSOAP is a set of PHP classes that also enable you to create SOAP clients and servers. We have decided to use NuSOAP as it is the library that has the most documentation. It also seems to be the library used by the majority of .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.