Zeus web server - CHAPTER 13 CASE STUDY: USING PHP FOR

CHAPTER 13 CASE STUDY: USING PHP FOR AN XML APPLICATION 407 if (strlen($sql) > 0) { mysql_query($sql) or die(mysql_error()); } header(’Location: index.php?’ . $current . ‘=’ . $parent); ?> The $current variable contains the previous navigation level, while $parent contains the id of that entry. I ve now worked through the code that builds the site navigation. The remainder of the application handles the weather details. The mk_weather.php, weather.xsl, and addweather.php scripts deal with the weather details. The application uses the same approach as it did with the navigation. The mk_weather.php script generates the weather XML, which weather.xsl transforms into XHTML. The addweather.php page allows users to add new weather details. mk_weather.php The mk_weather.php page generates the XML document containing current weather details. It uses the following template: hot There are three possibilities for the structure of the XML document that the application generates: 1. There is no current weather report. 2. The values in the querystring change and cause an error. 3. There is a current weather report. I ll work through each scenario.
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.

Leave a Reply