cvs: presentations /slides/phpperform ondemand1.xml ondemand_ex1.xml ondemand_procon.xml
| From: | Derick Rethans | Date: | Sun, 03 Nov 2002 15:32:31 +0000 |
| Subject: | cvs: presentations /slides/phpperform ondemand1.xml ondemand_ex1.xml ondemand_procon.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-487@lists.php.net to get a copy of this message | ||
derick Sun Nov 3 10:32:31 2002 EDT
Modified files:
/presentations/slides/phpperform ondemand1.xml ondemand_ex1.xml
ondemand_procon.xml
Log:
- Added ondemand slides
Index: presentations/slides/phpperform/ondemand1.xml
diff -u presentations/slides/phpperform/ondemand1.xml:1.2
presentations/slides/phpperform/ondemand1.xml:1.3
--- presentations/slides/phpperform/ondemand1.xml:1.2 Sat Nov 2 04:01:46 2002
+++ presentations/slides/phpperform/ondemand1.xml Sun Nov 3 10:32:31 2002
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<slide fontsize="6em">
- <title>Creating pages on demand 1</title>
+ <title>Creating pages on demand</title>
<blurb> </blurb>
<blurb> </blurb>
Index: presentations/slides/phpperform/ondemand_ex1.xml
diff -u presentations/slides/phpperform/ondemand_ex1.xml:1.1
presentations/slides/phpperform/ondemand_ex1.xml:1.2
--- presentations/slides/phpperform/ondemand_ex1.xml:1.1 Wed Oct 30 14:17:08 2002
+++ presentations/slides/phpperform/ondemand_ex1.xml Sun Nov 3 10:32:31 2002
@@ -1,5 +1,36 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<slide fontsize="6em">
- <title>On demand - example 1</title>
+ <title>On demand - example</title>
+ <blurb fontsize="5em">Facts:</blurb>
+ <list fontsize="5em">
+ <bullet type="none">Url: http://yoursite.com/news/000001.html</bullet>
+ <bullet type="none">Path: /home/httpd/news/</bullet>
+ </list>
+
+ <blurb> </blurb>
+ <blurb> </blurb>
+ <blurb fontsize="5em">Set up a 404 error handler:</blurb>
+
+ <example fontsize="2.5em"><![CDATA[<Directory /home/httpd/news>
+ ErrorDocument 404 /generate-news.php
+</Directory>]]></example>
+
+ <blurb> </blurb>
+ <blurb fontsize="5em">generate-news.php:</blurb>
+ <example fontsize="1.4em"><![CDATA[<?php
+ $id = basename($_SERVER['REDIRECT_URL'], '.html');
+
+ /* Generate the HTML */
+ include "/home/httpd/news/generator.php";
+ $html = generate_html($data);
+
+ /* Show the page */
+ echo $html;
+
+ /* Store the page for later use */
+ $fp = fopen(sprintf("/home/httpd/news/%06d.html", $id), "w");
+ fputs($fp, $html);
+ fclose($fp);
+?>]]></example>
</slide>
Index: presentations/slides/phpperform/ondemand_procon.xml
diff -u presentations/slides/phpperform/ondemand_procon.xml:1.1
presentations/slides/phpperform/ondemand_procon.xml:1.2
--- presentations/slides/phpperform/ondemand_procon.xml:1.1 Wed Oct 30 14:17:08 2002
+++ presentations/slides/phpperform/ondemand_procon.xml Sun Nov 3 10:32:31 2002
@@ -1,5 +1,15 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<slide fontsize="6em">
- <title>Creating pages on demand 2</title>
+ <title>On demand: Pros and Cons</title>
+ <list effect="slide" fontsize="5em">
+ <bullet type="none">Pros:</bullet>
+ <bullet>No wasted resources on generating</bullet>
+ <bullet>No stale content</bullet>
+ </list>
+
+ <list effect="slide" fontsize="5em">
+ <bullet type="none">Cons:</bullet>
+ <bullet>None :-)</bullet>
+ </list>
</slide>