mirror of
https://github.com/php/presentations.git
synced 2026-03-23 23:22:22 +01:00
A few tweaks
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
titlesize="2em"
|
||||
navbarheight="4.1em"
|
||||
>
|
||||
<!--
|
||||
-->
|
||||
<topic>PHP</topic>
|
||||
<title>PHP</title>
|
||||
<event>AFUP</event>
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
<bullet>15 Languages</bullet>
|
||||
<bullet>Hundreds of millions of registered users</bullet>
|
||||
<bullet>Literally billions of page views per day</bullet>
|
||||
<bullet>Hundreds of engineers spread around the world</bullet>
|
||||
<bullet>Thousands of engineers spread around the world</bullet>
|
||||
</list>
|
||||
|
||||
<blurb>Merger of 24 Web Companies</blurb>
|
||||
<image filename="24.png" align="center" />
|
||||
|
||||
<blurb>Make that 27 now with FareChase, MusicMatch and Flickr</blurb>
|
||||
<blurb>Make that 30 now with FareChase, MusicMatch, Flickr, DialPad, Konfabulator and Upcoming.org</blurb>
|
||||
|
||||
</slide>
|
||||
|
||||
@@ -7,4 +7,5 @@
|
||||
<break lines="1" />
|
||||
<blurb>Debugging and Profiling, look at xdebug (xdebug.org) and apd (pecl/apd)</blurb>
|
||||
<image align="center" filename="../xdebug/komodo.png"/>
|
||||
<break lines="2" />
|
||||
</slide>
|
||||
|
||||
@@ -1,25 +1,18 @@
|
||||
<slide title="Scale">
|
||||
|
||||
<blurb>
|
||||
</blurb>
|
||||
<break lines="2" />
|
||||
|
||||
<list title="System Calls - PHP Code Changes">
|
||||
<list title="System Calls - PHP 5.1 Code Changes">
|
||||
<bullet> No more than 1 stat() per PHP file per request</bullet>
|
||||
<bullet> Get rid of realpath() in PHP's expand_filepath code</bullet>
|
||||
<bullet> Add a stat cache to PHP's expand_filepath code</bullet>
|
||||
<bullet> Don't stat if Apache has already stat'ed the file</bullet>
|
||||
<bullet> Get rid of excessive stats in the streams code</bullet>
|
||||
</list>
|
||||
|
||||
<list title="System Calls - Scripting Changes">
|
||||
<bullet> Remove ./ from include_path</bullet>
|
||||
<bullet> Remove ./ from include_path and use relative path includes</bullet>
|
||||
<bullet> Use just a single base dir in include_path</bullet>
|
||||
<bullet> No open_basedir or safe_mode</bullet>
|
||||
</list>
|
||||
|
||||
<list title="This breaks a few things">
|
||||
<bullet> include_once can be tricked with ../ or symlinks now</bullet>
|
||||
<bullet> Same goes for open_basedir checks</bullet>
|
||||
<bullet> All includes are relative to ./ or base include_path</bullet>
|
||||
</list>
|
||||
|
||||
</slide>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<blurb>
|
||||
</blurb>
|
||||
<list fontsize="6em">
|
||||
<bullet>FreeBSD 4.x</bullet>
|
||||
<bullet>FreeBSD 4.x/6.x</bullet>
|
||||
<bullet>Apache 1.3.x</bullet>
|
||||
<bullet>Plenty of homegrown C/C++ code</bullet>
|
||||
<bullet>MySQL/Oracle</bullet>
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
<slide title="XML">
|
||||
<break lines="1" />
|
||||
|
||||
<php><![CDATA[<?php chdir('presentations/slides/intro');?>]]></php>
|
||||
<!-- <php><![CDATA[<?php chdir('presentations/slides/intro');?>]]></php> -->
|
||||
|
||||
<example title="All XML handling based on libxml2" marginleft="2em" marginright="0em" result="0"><![CDATA[<?php
|
||||
$dom = new domDocument;
|
||||
$dom->load('menu.xml');
|
||||
?>]]></example>
|
||||
|
||||
<example title="menu.xml" result="1" hide="1" marginleft="2em" marginright="0em" fontsize="1.75em" rfontsize="1.5em"><![CDATA[<?php
|
||||
<example title="presentations/slides/intro/menu.xml" result="1" hide="1" marginleft="2em" marginright="0em" fontsize="1.75em" rfontsize="1.5em"><![CDATA[<?php
|
||||
$fp = fopen('menu.xml','r');
|
||||
while($line = fgets($fp)) echo str_replace(' ',' ',htmlspecialchars($line))."<br />\n";
|
||||
?>]]></example>
|
||||
|
||||
<example title="XPath" result="1" fontsize="1.5em" marginleft="2em" marginright="0em"><![CDATA[<?php
|
||||
$dom = domdocument::load('menu.xml');
|
||||
$dom = domdocument::load('presentations/slides/intro/menu.xml');
|
||||
$ctx = new domXPath($dom);
|
||||
$result = $ctx->query('/breakfast_menu/food[@itemno > 3]/price/text()');
|
||||
foreach($result as $node) {
|
||||
@@ -23,15 +23,15 @@ foreach($result as $node) {
|
||||
?>]]></example>
|
||||
|
||||
<example title="XSL" result="1" marginleft="2em" marginright="0em"><![CDATA[<?php
|
||||
$dom = domdocument::load('menu.xml');
|
||||
$domxsl = domDocument::load('menu.xsl');
|
||||
$dom = domdocument::load('presentations/slides/intro/menu.xml');
|
||||
$domxsl = domDocument::load('presentations/slides/intro/menu.xsl');
|
||||
$proc = new xsltProcessor;
|
||||
$proc->importStyleSheet($domxsl);
|
||||
echo $proc->transformToXML($dom);
|
||||
?>]]></example>
|
||||
|
||||
<example title="SimpleXML" result="1" marginleft="2em"><![CDATA[<?php
|
||||
$menu = simplexml_load_file('menu.xml');
|
||||
$menu = simplexml_load_file('presentations/slides/intro/menu.xml');
|
||||
foreach ($menu->food as $item) {
|
||||
echo $item['itemno'] . ") ";
|
||||
echo $item->price . " ... ";
|
||||
@@ -40,3 +40,4 @@ echo $proc->transformToXML($dom);
|
||||
?>]]></example>
|
||||
|
||||
</slide>
|
||||
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
<slide title="Web 2.0">
|
||||
<break lines="6" />
|
||||
<blurb fontsize="18em" align="center">Web 2.0</blurb>
|
||||
<blurb fontsize="9em" align="center">The Programmable Web</blurb>
|
||||
<break lines="6"/>
|
||||
<blurb fontsize="18em" align="center">
|
||||
Web 2.0
|
||||
</blurb>
|
||||
<blurb fontsize="9em" align="center">
|
||||
The Programmable Web
|
||||
</blurb>
|
||||
</slide>
|
||||
|
||||
Reference in New Issue
Block a user