cvs: presentations / introduction-sheffield.xml /slides/intro hist-php3.xml hist-php4.xml hist-php5.xml hist-php51.xml hist-php52.xml
php-logo-large.png php-version5.png unicode.gif zend-powered-by.png /slides/perf ezp.css /slides/php5intro sqlite.png sqlite.xml what-else.xml
/slides/php5intro/nl cloud-filter.jpg cloud-orig.jpg domxml-load.xml enigma.jpg exif-geiranger.jpg exif.xml gd.xml lunatic.jpg mcrypt.xml memory.jpg
mysql.png mysqli.xml oo.xml pcre.xml pear.xml pecl.png pecl.xml project.xml resources-sheffield.xml shared-memory.xml simplexml-load.xml streams.xml
xml.png xml.xml

From: Date: Tue, 22 Feb 2005 15:40:45 +0000
Subject: cvs: presentations / introduction-sheffield.xml /slides/intro hist-php3.xml hist-php4.xml hist-php5.xml hist-php51.xml hist-php52.xml
php-logo-large.png php-version5.png unicode.gif zend-powered-by.png /slides/perf ezp.css /slides/php5intro sqlite.png sqlite.xml what-else.xml
/slides/php5intro/nl cloud-filter.jpg cloud-orig.jpg domxml-load.xml enigma.jpg exif-geiranger.jpg exif.xml gd.xml lunatic.jpg mcrypt.xml memory.jpg
mysql.png mysqli.xml oo.xml pcre.xml pear.xml pecl.png pecl.xml project.xml resources-sheffield.xml shared-memory.xml simplexml-load.xml streams.xml
xml.png xml.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1091@lists.php.net to get a copy of this message
derick Tue Feb 22 10:40:45 2005 EDT Added files: /presentations introduction-sheffield.xml /presentations/slides/intro hist-php3.xml hist-php4.xml hist-php5.xml hist-php51.xml hist-php52.xml php-logo-large.png php-version5.png unicode.gif zend-powered-by.png /presentations/slides/php5intro sqlite.png what-else.xml /presentations/slides/php5intro/nl cloud-filter.jpg cloud-orig.jpg enigma.jpg exif-geiranger.jpg exif.xml gd.xml lunatic.jpg mcrypt.xml memory.jpg mysql.png mysqli.xml oo.xml pcre.xml resources-sheffield.xml shared-memory.xml Modified files: /presentations/slides/perf ezp.css /presentations/slides/php5intro sqlite.xml /presentations/slides/php5intro/nl domxml-load.xml pear.xml pecl.png pecl.xml project.xml simplexml-load.xml streams.xml xml.png xml.xml Log: - Added Sheffield Introduction

http://cvs.php.net/diff.php/presentations/slides/perf/ezp.css?r1=1.10&r2=1.11&ty=u Index: presentations/slides/perf/ezp.css diff -u presentations/slides/perf/ezp.css:1.10 presentations/slides/perf/ezp.css:1.11 --- presentations/slides/perf/ezp.css:1.10 Mon Nov 1 06:00:58 2004 +++ presentations/slides/perf/ezp.css Tue Feb 22 10:40:44 2005 @@ -79,6 +79,11 @@ font-size: 40pt; } +ul.small div li.pres_bullet +{ + font-size: 20pt; +} + div.small_blurb { font-size: 24px; } http://cvs.php.net/diff.php/presentations/slides/php5intro/sqlite.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/php5intro/sqlite.xml diff -u presentations/slides/php5intro/sqlite.xml:1.1 presentations/slides/php5intro/sqlite.xml:1.2 --- presentations/slides/php5intro/sqlite.xml:1.1 Sat Jul 5 18:29:44 2003 +++ presentations/slides/php5intro/sqlite.xml Tue Feb 22 10:40:44 2005 @@ -6,11 +6,12 @@ <list marginleft="1em" marginright="2em" fontsize="4em"> <bullet>Bundled with PHP 5</bullet> - <bullet>Fast and easy interface to 'flatfiles'</bullet> + <bullet>Fast and easy interface to 'flat files'</bullet> <bullet>SQL 99 subset</bullet> - <bullet>No deamon required</bullet> + <bullet>No daemon required</bullet> <bullet>Enabled by default</bullet> <bullet>Callbacks for normal functions and aggregation functions</bullet> </list> - +<break lines="4"/> + <image align="center" filename="sqlite.png"/> </slide> http://cvs.php.net/diff.php/presentations/slides/php5intro/nl/domxml-load.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/php5intro/nl/domxml-load.xml diff -u presentations/slides/php5intro/nl/domxml-load.xml:1.2 presentations/slides/php5intro/nl/domxml-load.xml:1.3 --- presentations/slides/php5intro/nl/domxml-load.xml:1.2 Fri Jul 4 14:46:18 2003 +++ presentations/slides/php5intro/nl/domxml-load.xml Tue Feb 22 10:40:44 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>DOMXML load</title> + <title>DOM - not so cool</title> <example fontsize="1.5em"><![CDATA[<?php @@ -24,6 +24,6 @@ echo "{$title} was written by {$author}\n"; } } -? >]]></example> +?>]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/php5intro/nl/pear.xml?r1=1.3&r2=1.4&ty=u Index: presentations/slides/php5intro/nl/pear.xml diff -u presentations/slides/php5intro/nl/pear.xml:1.3 presentations/slides/php5intro/nl/pear.xml:1.4 --- presentations/slides/php5intro/nl/pear.xml:1.3 Sun Jul 13 15:31:36 2003 +++ presentations/slides/php5intro/nl/pear.xml Tue Feb 22 10:40:44 2005 @@ -2,33 +2,35 @@ <slide fontsize="6em"> <title>PEAR</title> - <image align="right" filename="pear.png" /> <list marginleft="0em" fontsize="3.5em"> <bullet>PHP Extension and Application Repository</bullet> <bullet>Commandline tool for maintenance</bullet> <bullet>Dependency checking</bullet> </list> - <example fontsize="1.1em"><![CDATA[[derick@kossu derick]$ sudo pear -v install Net_DIME -downloading Net_DIME-0.3.tgz ... -...done: 6,740 bytes -install ok: Net_DIME 0.3]]></example> - - <example fontsize="1.1em"><![CDATA[[derick@kossu derick]$ sudo pear list-upgrades -Available Upgrades (beta): -========================== -Package Version Size -DB 1.4.0 60kB -HTML_QuickForm 3.0Beta2 60kB -Net_SMTP 1.2.3 6.1kB]]></example> - - <example fontsize="1.1em"><![CDATA[[derick@kossu derick]$ sudo pear list-all | head -6 -All packages: + <example fontsize="1.1em"><![CDATA[derick@kossu:~$ sudo pear install PHPUnit +downloading PHPUnit-1.2.2.tgz ... +Starting to download PHPUnit-1.2.2.tgz (21,058 bytes) +........done: 21,058 bytes +install ok: PHPUnit 1.2.2]]></example> +<break/> + <example fontsize="1.1em"><![CDATA[derick@kossu:~$ sudo pear list-upgrades +Available Upgrades (stable): +============================ +Package Local Remote Size +Archive_Tar 1.1 (stable) 1.2 (stable) 14.5kB +DB 1.6.2 (stable) 1.6.8 (stable) 91kB +HTTP 1.2.2 (stable) 1.3.4 (stable) 4.5kB +Mail 1.1.3 (stable) 1.1.4 (stable) 14.3kB +Net_Socket 1.0.1 (stable) 1.0.5 (stable) 4.1kB +XML_Parser 1.2.0 (stable) 1.2.4 (stable) 10.7kB]]></example> +<break/> + <example fontsize="1.1em"><![CDATA[derick@kossu:~$ sudo pear list-all | head -6 +ALL PACKAGES: ============= -Package Latest Local -apd 0.4p2 -bcompiler 0.4 0.4 -PHPDoc 0.1.0 0.1.0 ]]></example> - +PACKAGE LATEST LOCAL +APC 2.0.4 2.0.4 +Cache 1.5.4 +Cache_Lite 1.4.0]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/php5intro/nl/pecl.png?r1=1.1&r2=1.2&ty=u Index: presentations/slides/php5intro/nl/pecl.png http://cvs.php.net/diff.php/presentations/slides/php5intro/nl/pecl.xml?r1=1.3&r2=1.4&ty=u Index: presentations/slides/php5intro/nl/pecl.xml diff -u presentations/slides/php5intro/nl/pecl.xml:1.3 presentations/slides/php5intro/nl/pecl.xml:1.4 --- presentations/slides/php5intro/nl/pecl.xml:1.3 Sat Aug 23 04:08:25 2003 +++ presentations/slides/php5intro/nl/pecl.xml Tue Feb 22 10:40:44 2005 @@ -6,24 +6,28 @@ <list marginleft="0em" fontsize="3.5em"> <bullet>PHP Extension Code Library</bullet> - <bullet>Shared extensions</bullet> <bullet>Makes use of the 'pear' tool</bullet> - <bullet>Future home for all extensions</bullet> + <bullet>Home for C-based extensions</bullet> </list> <break /> - <example fontsize="1.4em"><![CDATA[[derick@kossu nl]$ sudo pear -v install http://files.derickrethans.nl/xdebug-1.2.0.tgz -downloading xdebug-1.2.0.tgz ... -...done: 58,608 bytes -28 source files, building + <example fontsize="1.4em"><![CDATA[derick@kossu:~$ sudo pear install xdebug +downloading xdebug-1.3.2.tgz ... +Starting to download xdebug-1.3.2.tgz (153,629 bytes) +.................................done: 153,629 bytes +52 source files, building running: phpize -PHP Api Version : 20020918 -Zend Module Api No : 20020429 -Zend Extension Api No : 20021010 -building in /var/tmp/pear-build-root/xdebug-1.2.0 -running: /tmp/tmpXOqy3A/xdebug-1.2.0/configure -running: make -xdebug.so copied to /tmp/tmpXOqy3A/xdebug-1.2.0/xdebug.so -install ok: xdebug 1.2.0]]></example> +Configuring for: + PHP Api Version: 20020918 + Zend Module Api No: 20020429 + Zend Extension Api No: 20021010 +building in /var/tmp/pear-build-root/xdebug-1.3.2 +running: /tmp/tmpsNXgzn/xdebug-1.3.2/configure + +.... compiling ... + +Build process completed successfully +Installing '/var/tmp/pear-build-root/install-xdebug-1.3.2//usr/local/lib/php/ext ensions/no-debug-non-zts-20020429/xdebug.so' +install ok: xdebug 1.3.2]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/php5intro/nl/project.xml?r1=1.5&r2=1.6&ty=u Index: presentations/slides/php5intro/nl/project.xml diff -u presentations/slides/php5intro/nl/project.xml:1.5 presentations/slides/php5intro/nl/project.xml:1.6 --- presentations/slides/php5intro/nl/project.xml:1.5 Sat Aug 23 04:08:25 2003 +++ presentations/slides/php5intro/nl/project.xml Tue Feb 22 10:40:44 2005 @@ -5,12 +5,13 @@ <blurb> </blurb> <list fontsize="4em"> <bullet>Open Source: Apache like BSD-style license</bullet> - <bullet>732 developers</bullet> + <bullet>950 developers</bullet> <bullet>~25 active (on PHP source)</bullet> - <bullet>Documentation in 26 languages</bullet> - <bullet>PHP 4.0.0 since May 2000</bullet> - <bullet>PHP 5.0.0beta1 in June 2003</bullet> - <bullet>PHP 4.3.3 in August 2003</bullet> + <bullet>Documentation in 30 languages</bullet> + <bullet>PHP 4 since May 2000</bullet> + <bullet>PHP 4.3.10 in December 2004</bullet> + <bullet>PHP 5 since July 2004</bullet> + <bullet>PHP 5.0.3 in December 2004</bullet> </list> </slide> http://cvs.php.net/diff.php/presentations/slides/php5intro/nl/simplexml-load.xml?r1=1.4&r2=1.5&ty=u Index: presentations/slides/php5intro/nl/simplexml-load.xml diff -u presentations/slides/php5intro/nl/simplexml-load.xml:1.4 presentations/slides/php5intro/nl/simplexml-load.xml:1.5 --- presentations/slides/php5intro/nl/simplexml-load.xml:1.4 Sat Aug 23 04:08:25 2003 +++ presentations/slides/php5intro/nl/simplexml-load.xml Tue Feb 22 10:40:44 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>SimpleXML load</title> + <title>SimpleXML - cool!</title> <break lines="3" /> @@ -10,7 +10,7 @@ foreach ($books as $book) { echo $book->title." was written by {$book->author}\n"; } -? >]]></example> +?>]]></example> <break lines="3" /> http://cvs.php.net/diff.php/presentations/slides/php5intro/nl/streams.xml?r1=1.3&r2=1.4&ty=u Index: presentations/slides/php5intro/nl/streams.xml diff -u presentations/slides/php5intro/nl/streams.xml:1.3 presentations/slides/php5intro/nl/streams.xml:1.4 --- presentations/slides/php5intro/nl/streams.xml:1.3 Fri Jul 4 15:31:20 2003 +++ presentations/slides/php5intro/nl/streams.xml Tue Feb 22 10:40:44 2005 @@ -11,14 +11,13 @@ <bullet>Filters (php://filter)</bullet> </list> - <break lines="2" /> <example fontsize="1.2em"><![CDATA[<?php /* This will output the contents of www.example.com entirely in uppercase */ -readfile("php://filter/read=string.toupper/resource=http://www.example.com"); +readfile("php://filter/read=string.toupper/resource=http://www.php.net"); /* This will do the same as above except it will ROT13 encode it */ readfile("php://filter/read=string.rot13/resource=http://www.example.com"); -? >]]></example> +?>]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/php5intro/nl/xml.png?r1=1.1&r2=1.2&ty=u Index: presentations/slides/php5intro/nl/xml.png http://cvs.php.net/diff.php/presentations/slides/php5intro/nl/xml.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/php5intro/nl/xml.xml diff -u presentations/slides/php5intro/nl/xml.xml:1.2 presentations/slides/php5intro/nl/xml.xml:1.3 --- presentations/slides/php5intro/nl/xml.xml:1.2 Sun Jul 13 15:31:36 2003 +++ presentations/slides/php5intro/nl/xml.xml Tue Feb 22 10:40:44 2005 @@ -16,7 +16,7 @@ <author>John Steinbeck</author> </book> </books>]]></example> - +<break/> <blurb>Expected output:</blurb> <example fontsize="1.2em"><![CDATA[The Grapes of Wrath was written by John Steinbeck http://cvs.php.net/co.php/presentations/introduction-sheffield.xml?r=1.1&p=1 Index: presentations/introduction-sheffield.xml +++ presentations/introduction-sheffield.xml <presentation template="css" navmode="html" navbarbackground="#4373b4" navbartopiclinks="0" navColor="#f1fbff" logo1="" stylesheet="presentations/slides/perf/ezp.css" backgroundfixed="1" > <topic>PHP</topic> <title>PHP Introduction</title> <event>Linux Seminar 2005</event> <location>Sheffield, UK</location> <date>March 2nd, 2005</date> <speaker>Derick Rethans</speaker> <email>dr@ez.no</email> <url>http://files.derickrethans.nl/introduction-sheffield.pdf</url> <slide>slides/ze-xdebug/title.xml</slide> <!-- Project --> <slide>slides/php5intro/nl/intro.xml</slide> <slide>slides/php5intro/nl/project.xml</slide> <!-- History --> <slide>slides/intro/hist-php3.xml</slide> <slide>slides/intro/hist-php4.xml</slide> <slide>slides/intro/hist-php5.xml</slide> <!-- Cool stuff in PHP 5 --> <slide>slides/php5intro/nl/oo.xml</slide> <!-- XML --> <slide>slides/php5intro/nl/xml.xml</slide> <slide>slides/php5intro/nl/domxml-load.xml</slide> <slide>slides/php5intro/nl/simplexml-load.xml</slide> <!-- Streams --> <slide>slides/php5intro/nl/streams.xml</slide> <slide>slides/php5intro/nl/gd.xml</slide> <slide>slides/php5intro/nl/exif.xml</slide> <slide>slides/i18nl10n/iconv-ob-buffer-multiple.xml</slide> <!-- multiple charsets and iconv conversion --> <slide>slides/php5intro/nl/mcrypt.xml</slide> <slide>slides/php5intro/nl/mysqli.xml</slide> <slide>slides/php5intro/nl/pcre.xml</slide> <slide>slides/php5intro/nl/shared-memory.xml</slide> <slide>slides/php5intro/sqlite.xml</slide> <slide>slides/php5intro/what-else.xml</slide> <!-- Pear --> <slide>slides/php5intro/nl/pear.xml</slide> <slide>slides/php5intro/nl/pecl.xml</slide> <!-- Future --> <slide>slides/intro/hist-php51.xml</slide> <slide>slides/intro/hist-php52.xml</slide> <slide>slides/php5intro/nl/resources-sheffield.xml</slide> </presentation> http://cvs.php.net/co.php/presentations/slides/intro/hist-php3.xml?r=1.1&p=1 Index: presentations/slides/intro/hist-php3.xml +++ presentations/slides/intro/hist-php3.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PHP 3</title> <list fontsize="3.5em" marginleft="-1em"> <bullet>First PHP as we know it</bullet> <bullet>Object Oriented Syntax support</bullet> <bullet>Tons of extensions for databases etc.</bullet> <bullet>Easy to add extensions</bullet> </list> <break lines="4"/> <image align="center" filename="php-logo-large.png"/> </slide> http://cvs.php.net/co.php/presentations/slides/intro/hist-php4.xml?r=1.1&p=1 Index: presentations/slides/intro/hist-php4.xml +++ presentations/slides/intro/hist-php4.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PHP 4</title> <list fontsize="3.5em" marginleft="-1em"> <bullet>Paradigm switch: execute-while-parsing to execute-after-compilation</bullet> <bullet>Zend Engine</bullet> <bullet>Support for more Web servers</bullet> <bullet>Sessions</bullet> <bullet>Output Buffering</bullet> </list> <break lines="4"/> <image align="center" filename="zend-powered-by.png"/> </slide> http://cvs.php.net/co.php/presentations/slides/intro/hist-php5.xml?r=1.1&p=1 Index: presentations/slides/intro/hist-php5.xml +++ presentations/slides/intro/hist-php5.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PHP 5</title> <list fontsize="3.5em" marginleft="-1em"> <bullet>Revamped Internals</bullet> <bullet>*Real* Object Orientation</bullet> <bullet>Improved Streams API</bullet> <bullet>Bundled SQLite</bullet> <bullet>New XML extensions based on libXML-2</bullet> <bullet>SPL - Object Iterators and more</bullet> </list> <break lines="4"/> <image align="center" filename="php-version5.png"/> </slide> http://cvs.php.net/co.php/presentations/slides/intro/hist-php51.xml?r=1.1&p=1 Index: presentations/slides/intro/hist-php51.xml +++ presentations/slides/intro/hist-php51.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PHP 5.1</title> <list fontsize="3.5em" marginleft="-1em"> <bullet>PDO</bullet> <bullet>Improved Executor</bullet> <bullet>New date/time functionality</bullet> <bullet>xmlreader/xmlwriter</bullet> </list> <break lines="4"/> <image align="center" filename="php-version5.png"/> </slide> http://cvs.php.net/co.php/presentations/slides/intro/hist-php52.xml?r=1.1&p=1 Index: presentations/slides/intro/hist-php52.xml +++ presentations/slides/intro/hist-php52.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>PHP 5.2</title> <list fontsize="3.5em" marginleft="-1em"> <bullet>Unicode support</bullet> </list> <break lines="10"/> <image align="center" filename="unicode.gif"/> </slide> http://cvs.php.net/co.php/presentations/slides/php5intro/what-else.xml?r=1.1&p=1 Index: presentations/slides/php5intro/what-else.xml +++ presentations/slides/php5intro/what-else.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Other Extensions</title> <list class="small"> <bullet>*Science*: BC Arbitrary Maths, GMP, </bullet> <bullet>*Compression*: BZip2, LZF, rar, Zip, zlib</bullet> <bullet>*Date/time*: Calendar</bullet> <bullet>*Interop*: COM/.Net, Java</bullet> <bullet>*Protocols*: Curl, IMAP, Direct-IO, FTP, IRCg, LDAP, mailparse, NIS, OpenSSL, SNMP</bullet> <bullet>*Databases*: DBM, dBase, db++, dbx, FrontBase, filePro, Hyperwave, Interbase, Informix, Ingress II, MaxDB, mSQL, MSSQL, MySQL, Oracle, Ovrimos, PDO, PostGreSQL, Sesam, SQLite, Sybase, ODBC</bullet> <bullet>*XML*: DOM, SimpleXML, SOAP, WDDX, XML-RPC, XSLT</bullet> <bullet>*Graphics*: ClibPDF, GD, Exif, mimetype, Ming, PDFLib/FDF</bullet> <bullet>*Internationalisation*: FriBiDi, Gettext, iconv, mbstring, Pspell, recode</bullet> <bullet>*Encryption*: MCrypt, MHash</bullet> <bullet>*System like functions*: Process Control, POSIX, Semaphore, Shared Memory, socket</bullet> <bullet>*Others*: mnogosearch, ncurses, Regular Expressions, POSIX, Printer, SPL, xdiff</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/php5intro/nl/exif.xml?r=1.1&p=1 Index: presentations/slides/php5intro/nl/exif.xml +++ presentations/slides/php5intro/nl/exif.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>EXIF - Retrieving Information from Images</title> <example fontsize="1.5em"><![CDATA[<?php $exif = exif_read_data('geiranger.jpg'); echo $exif['OwnerName'], "\n"; $value = split('/', $exif['ShutterSpeedValue']); echo "Shutter Speed: 1/", (int) pow(2, $value[0] / $value[1]), " sec\n"; $value = split('/', $exif['ApertureValue']); echo "Aperture: f=", round(exp(($value[0] / $value[1]) * 0.5 * log(2)), $value = split('/', $exif['FocalLength']); echo "Focal length: ", round($value[0] / $value[1], 2), " mm\n"; ?>]]></example> <break/> <image filename='exif-geiranger.jpg' align='left'/> <break lines="14"/> <example><![CDATA[Derick Rethans Shutter Speed: 1/1002 sec Aperture: f=3.2 Focal length: 5.41 mm]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/php5intro/nl/gd.xml?r=1.1&p=1 Index: presentations/slides/php5intro/nl/gd.xml +++ presentations/slides/php5intro/nl/gd.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>GD - Graphics manipulation</title> <example fontsize="1.5em"><![CDATA[<?php $i = imagecreatefromjpeg('nacreous-cloud.jpg'); imagefilter($i, IMG_FILTER_COLORIZE, 0, 0, 120); imagejpeg($i); ?>]]></example> <break lines="15"/> <image align="center" filename="cloud-orig.jpg"/> </slide> http://cvs.php.net/co.php/presentations/slides/php5intro/nl/mcrypt.xml?r=1.1&p=1 Index: presentations/slides/php5intro/nl/mcrypt.xml +++ presentations/slides/php5intro/nl/mcrypt.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>MCrypt - Encrypting Data</title> <example class="bit_larger" result="1" fontsize="1.5em"><![CDATA[<pre><?php $key = "this is a secret key"; $input = "Let us meet at 9 o'clock at the secret place."; $td = mcrypt_module_open('rijndael-256', '', 'ecb', ''); $iv = mcrypt_create_iv (mcrypt_enc_get_iv_size($td), MCRYPT_RAND); mcrypt_generic_init($td, $key, $iv); $encrypted_data = mcrypt_generic($td, $input); mcrypt_generic_deinit($td); mcrypt_module_close($td); echo chunk_split(bin2hex($encrypted_data), 64); ?> ]]></example> <image filename='enigma.jpg' align="center"/> </slide> http://cvs.php.net/co.php/presentations/slides/php5intro/nl/mysqli.xml?r=1.1&p=1 Index: presentations/slides/php5intro/nl/mysqli.xml +++ presentations/slides/php5intro/nl/mysqli.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>MySQLi - Using a Database</title> <example class="bit_larger" fontsize="1.5em"><![CDATA[<?php $mysqli = new mysqli("localhost", "my_user", "my_password", "world"); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } /* Select queries return a resultset */ if ($result = $mysqli->query("SELECT Name FROM City LIMIT 10")) { printf("Select returned %d rows.\n", $result->num_rows); /* free result set */ $result->close(); } ?>]]></example> <break/> <image filename='mysql.png' align="center"/> </slide> http://cvs.php.net/co.php/presentations/slides/php5intro/nl/oo.xml?r=1.1&p=1 Index: presentations/slides/php5intro/nl/oo.xml +++ presentations/slides/php5intro/nl/oo.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>OO</title> <list> <bullet>*REAL OO*: Objects passed by handle</bullet> <bullet>*PPP*: private, protected and public</bullet> <bullet>Contructors and *Destructors*</bullet> <bullet>*Interfaces*</bullet> <bullet>*Static* and *Abstract*</bullet> <bullet>*Overloading*: __call, __get and __set</bullet> <bullet>*Exceptions*</bullet> </list> </slide> http://cvs.php.net/co.php/presentations/slides/php5intro/nl/pcre.xml?r=1.1&p=1 Index: presentations/slides/php5intro/nl/pcre.xml +++ presentations/slides/php5intro/nl/pcre.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Perl Style Regular Expressions</title> <example class="bit_larger" fontsize="1.5em"><![CDATA[<?php preg_match('/([0-9]+)$/', $urlAlias['destination_url'], $matches); ?>]]></example> <break/> <example class="bit_larger" fontsize="1.5em"><![CDATA[<?php preg_match( '/((?<!src="|href="|url="|action="|src=|href=|url=|action=)'. 'http:\/\/|https:\/\/|ftp:\/\/|news:\/\/|'. '((?<!http:\/\/|https:\/\/)www\.))([\w\-.]+[^,.;:?!\/\s\]!"\)<>])'. '([\w#&=%+@~*_\-,;:]*)([\/\w?.#&=%+@~*_\-,;:]*?)'. '(?=[,.;:?!\]<>!")]*([^\/\w.#?&=%+@~*_\-,;:]|&gt;|$))/i', file_get_contents("http://php.net"), $matches); ?>]]></example> <break/> <image filename='lunatic.jpg' align="center"/> </slide> http://cvs.php.net/co.php/presentations/slides/php5intro/nl/resources-sheffield.xml?r=1.1&p=1 Index: presentations/slides/php5intro/nl/resources-sheffield.xml +++ presentations/slides/php5intro/nl/resources-sheffield.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Resources</title> <link fontsize="2em" marginleft="4em" leader="PHP: " href="http://www.php.net" target="_new"/> <link fontsize="2em" marginleft="4em" leader="PEAR: " href="http://pear.php.net" target="_new"/> <link fontsize="2em" marginleft="4em" leader="PECL: " href="http://pecl.php.net" target="_new"/> <link fontsize="2em" marginleft="4em" leader="SQLite: " href="http://www.sqlite.org" target="_new"/> <break/> <link fontsize="2em" marginleft="4em" leader="e-mail: " href="derick@php.net" target="_new"/> </slide> http://cvs.php.net/co.php/presentations/slides/php5intro/nl/shared-memory.xml?r=1.1&p=1 Index: presentations/slides/php5intro/nl/shared-memory.xml +++ presentations/slides/php5intro/nl/shared-memory.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Shared Memory</title> <example class="bit_larger" fontsize="1.5em"><![CDATA[<?php // Create 100 byte shared memory block with system id if 0xff3 $shm_id = shmop_open(0xff3, "c", 0644, 100); if (!$shm_id) echo "Couldn't create shared memory segment\n"; // Lets write a test string into shared memory $shm_bytes_written = shmop_write($shm_id, "my shared memory block", 0); if ($shm_bytes_written != strlen("my shared memory block")) echo "Couldn't write the entire length of data\n"; // Now lets read the string back $my_string = shmop_read($shm_id, 0, $shm_size); if (!$my_string) echo "Couldn't read from shared memory block\n"; echo "The data inside shared memory was: " . $my_string . "\n"; // Now lets delete the block and close the shared memory segment if (!shmop_delete($shm_id)) echo "Couldn't mark shared memory block for deletion."; shmop_close($shm_id); ?>]]></example> <break/> <image filename='memory.jpg' align="center"/> </slide>
« previous php.pres (#1091) next »