cvs: presentations / fossin06.xml /slides/extending ext11.xml /slides/intro atom_google_data.xml geoflickr.xml ossworks.xml web2_summary.xml
web2works.xml xml_eg.xml

From: Date: Fri, 24 Nov 2006 19:57:06 +0000
Subject: cvs: presentations / fossin06.xml /slides/extending ext11.xml /slides/intro atom_google_data.xml geoflickr.xml ossworks.xml web2_summary.xml
web2works.xml xml_eg.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1361@lists.php.net to get a copy of this message
rasmus Fri Nov 24 19:57:06 2006 UTC Added files: /presentations fossin06.xml /presentations/slides/intro atom_google_data.xml ossworks.xml web2_summary.xml web2works.xml Modified files: /presentations/slides/extending ext11.xml /presentations/slides/intro geoflickr.xml xml_eg.xml Log: Foss.in talk

http://cvs.php.net/viewvc.cgi/presentations/slides/extending/ext11.xml?r1=1.4&r2=1.5&diff_format=u Index: presentations/slides/extending/ext11.xml diff -u presentations/slides/extending/ext11.xml:1.4 presentations/slides/extending/ext11.xml:1.5 --- presentations/slides/extending/ext11.xml:1.4 Tue Jan 20 18:38:59 2004 +++ presentations/slides/extending/ext11.xml Fri Nov 24 19:57:06 2006 @@ -43,7 +43,11 @@ 'a' array 'o' any object 'O' specific object -'z' mixed]]></example> +'z' zval +'Z' zval-ref +'|' next arg is optional +'/' arg is separated if not a reference +'!' next arg returns null if type IS_NULL]]></example> <blurb> So, for example, a function that takes a string, an integer, and array and an http://cvs.php.net/viewvc.cgi/presentations/slides/intro/geoflickr.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/geoflickr.xml diff -u presentations/slides/intro/geoflickr.xml:1.2 presentations/slides/intro/geoflickr.xml:1.3 --- presentations/slides/intro/geoflickr.xml:1.2 Wed Sep 20 21:24:52 2006 +++ presentations/slides/intro/geoflickr.xml Fri Nov 24 19:57:06 2006 @@ -17,7 +17,7 @@ $minlon = $lon-(($y*cos($minlat)/6371) * $rad); $maxlon = $lon+(($y*cos($maxlat)/6371) * $rad); $params = array('bbox'=>"$minlon,$minlat,$maxlon,$maxlat", - 'min_upload_date'=>time()-4*24*3600); + 'min_upload_date'=>time()-30*24*3600); $photos = $flickr->photosSearch($params); if($photos['photos']) foreach($photos['photos'] as $photo) { $url = $flickr->getPhotoURL($photo); http://cvs.php.net/viewvc.cgi/presentations/slides/intro/xml_eg.xml?r1=1.5&r2=1.6&diff_format=u Index: presentations/slides/intro/xml_eg.xml diff -u presentations/slides/intro/xml_eg.xml:1.5 presentations/slides/intro/xml_eg.xml:1.6 --- presentations/slides/intro/xml_eg.xml:1.5 Thu Jul 27 17:37:28 2006 +++ presentations/slides/intro/xml_eg.xml Fri Nov 24 19:57:06 2006 @@ -30,6 +30,7 @@ <example title="SimpleXML" result="1" marginleft="2em"><![CDATA[<?php $menu = simplexml_load_file('menu.xml'); +# echo "<pre>"; print_r($menu); echo "</pre>"; foreach ($menu->food as $item) { echo $item['itemno'] . ") "; echo $item->price . " ... "; http://cvs.php.net/viewvc.cgi/presentations/fossin06.xml?view=markup&rev=1.1 Index: presentations/fossin06.xml +++ presentations/fossin06.xml <presentation template="php2" navmode="html" titlecolor="#1111aa" navbarbackground="url(images/trans-ffffff.png)" logo1="images/php-med-trans-light.gif" titlesize="2em" navbarheight="4.1em" > <topic>PHP</topic> <title>Getting Rich with PHP 5</title> <event>Foss.in</event> <location>Bangalore</location> <date>Nov 24, 2006</date> <url>http://talks.php.net/show/fossin06</url> <speaker>Rasmus Lerdorf</speaker> <email>rasmus@php.net</email> <slide>slides/intro/titlepage.xml</slide> <slide>slides/intro/ossworks.xml</slide> <slide>slides/intro/ego.xml</slide> <slide>slides/intro/web20.xml</slide> <slide>slides/intro/web2works.xml</slide> <slide>slides/intro/rich.xml</slide> <slide>slides/intro/rich2.xml</slide> <slide>slides/bm06/profit.xml</slide> <slide>slides/bm06/initial.xml</slide> <slide>slides/bm06/pg.xml</slide> <slide>slides/bm06/pg_persist.xml</slide> <slide>slides/bm06/mysql.xml</slide> <slide>slides/bm06/apc.xml</slide> <slide>slides/bm06/apc2.xml</slide> <slide>slides/intro/php5.xml</slide> <slide>slides/intro/xml_eg.xml</slide> <slide>slides/intro/rss_flickr.xml</slide> <slide>slides/intro/offline_atom_google.xml</slide> <slide>slides/intro/ws1.xml</slide> <slide>slides/intro/ws2.xml</slide> <slide>slides/intro/ws6.xml</slide> <slide>slides/intro/geoflickr.xml</slide> <slide>slides/intro/ws7.xml</slide> <slide>slides/intro/web2_summary.xml</slide> <slide>slides/intro/web2_ref.xml</slide> </presentation> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/atom_google_data.xml?view=markup&rev=1.1 Index: presentations/slides/intro/atom_google_data.xml +++ presentations/slides/intro/atom_google_data.xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?> <feed xmlns="http://www.w3.org/2005/Atom"> <id>http://groups.google.com/group/comp.lang.php</id> <title type="text">comp.lang.php Google Group</title> <subtitle type="text"> PHP, server side scripting. </subtitle> <link href="http://groups.google.com/group/comp.lang.php/feed/atom_v1_0_msgs.xml" rel="self" title="comp.lang.php feed"/> <updated>2006-11-24T18:44:38Z</updated> <generator uri="http://groups.google.com" version="1.99">Google Groups</generator> <entry> <author> <name>bill nob...@spamcop.net</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T18:44:38Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/892e1f54265784e3</id> <link href="http://groups.google.com/group/comp.lang.php/msg/892e1f54265784e3"/> <title type="text">$_FILE variables returning null when in body of page.</title> <summary type="html" xml:space="preserve"> I am a relative newbie to PHP, but not to other languages. &lt;br&gt; I wrote a test script to upload files. In the php section above &lt;br&gt; the page I get the expected content of the $_FILES array. &lt;br&gt; When I have a php section in the body, the $_FILES array &lt;br&gt; variables return nothing. &lt;br&gt; --------here is the page that is the action of the post------- </summary> </entry> <entry> <author> <name>eholz1 ewh...@gmail.com</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T17:44:10Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/1f35584342f4ed69</id> <link href="http://groups.google.com/group/comp.lang.php/msg/1f35584342f4ed69"/> <title type="text">driver not found error when trying to use PDO, PHP (5.2) and mysql</title> <summary type="html" xml:space="preserve"> Hello Newsgroup, &lt;br&gt; I have &amp;quot;installed&amp;quot; pdo using &amp;quot;pecl install pdo&amp;quot; (it intalled version &lt;br&gt; 1.0.3), &lt;br&gt; I have added the line &amp;quot;extension=pdo.so&amp;quot; to my php.ini file, but when I &lt;br&gt; try to use &lt;br&gt; the PDO db connect string &amp;quot;$db = new &lt;br&gt; PDO(&#39;msql:server=dbserver;dbna me=menagerie&#39;,$dbuser,$dbpass) ; &amp;quot; &lt;br&gt; i get a &amp;quot;driver not found&amp;quot; error. </summary> </entry> <entry> <author> <name>sahm sahm...@gmail.com</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T17:41:54Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/0b78f42b3467647b</id> <link href="http://groups.google.com/group/comp.lang.php/msg/0b78f42b3467647b"/> <title type="text">I need some help here</title> <summary type="html" xml:space="preserve"> Hi evry one &lt;br&gt; I need some help with my code &lt;br&gt; What&#39;s wrong in this code &lt;br&gt; &amp;lt;?php &lt;br&gt; header(&#39;Content-Type: text/xml&#39;); &lt;br&gt; $dom = new DOMDocument(); &lt;br&gt; $response = $dom-&amp;gt;createElement(&#39;response&#39; ); &lt;br&gt; $dom-&amp;gt;appendChild($response); &lt;br&gt; $sub_categorys = $dom-&amp;gt;createElement(&#39;sub_Categ orys&#39;); &lt;br&gt; $response-&amp;gt;appendChild($sub_ca tegorys); </summary> </entry> <entry> <author> <name>Erwin Moller since_humans_read_this_I_am_spammed_too_m...@spamyourself.com</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T17:35:34Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/f5587eb524101fe9</id> <link href="http://groups.google.com/group/comp.lang.php/msg/f5587eb524101fe9"/> <title type="text">Re: the script wont work and i cant find anything wrong please help</title> <summary type="html" xml:space="preserve"> &amp;lt;snip&amp;gt; &lt;br&gt; This approach id possibly vunarable to SQL-injection. &lt;br&gt; That is bad. &lt;br&gt; NEVER trust data coming from GET, POST or COOKIE. &lt;br&gt; Possibly you have magic quotes enabled in php.ini, but you should at least &lt;br&gt; check for that. &lt;br&gt; It is much better to set up your applicatie right from the start than fixing &lt;br&gt; it afterward (after some funny guy gave the command to delete the database </summary> </entry> <entry> <author> <name>Pedro Graca hex...@dodgeit.com</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T17:17:02Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/01668d64dc1373ad</id> <link href="http://groups.google.com/group/comp.lang.php/msg/01668d64dc1373ad"/> <title type="text">Re: treat large string like file</title> <summary type="html" xml:space="preserve"> Mark wrote: &lt;br&gt; Index into the whole chunk? &lt;br&gt; $two_chars = substr($whole_chunk, 17655, 2); &lt;br&gt; switch ($two_chars) { &lt;br&gt; case &#39;C3&#39;: $three_chars = substr($whole_chunk, 17657, 3); &lt;br&gt; break; &lt;br&gt; case &#39;--&#39;: $three_chars = &#39;---&#39;; &lt;br&gt; break; &lt;br&gt; default: $three_chars = substr($whole_chunk, 17655, 3); </summary> </entry> <entry> <author> <name> lhen...@gmail.com</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T16:58:57Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/a6eb92c1054ef10b</id> <link href="http://groups.google.com/group/comp.lang.php/msg/a6eb92c1054ef10b"/> <title type="text">Array length in SimpleXML</title> <summary type="html" xml:space="preserve"> This is idiotic, but I can&#39;t figure this out: &lt;br&gt; I can do this: &lt;br&gt; $xml = new SimpleXMLElement(&#39;&amp;lt;items&amp;gt; &lt;br&gt; &amp;lt;item&amp;gt;&amp;lt;name&amp;gt;Lee&amp;lt;/name&amp;gt;&amp;lt;count&amp;gt;1 &amp;lt;/count&amp;gt;&amp;lt;/item&amp;gt; &lt;br&gt; &amp;lt;item&amp;gt;&amp;lt;name&amp;gt;Bill&amp;lt;/name&amp;gt;&amp;lt;count&amp;gt; 5&amp;lt;/count&amp;gt;&amp;lt;/item&amp;gt;&amp;lt;/items&amp;gt;&#39;); &lt;br&gt; foreach ($xml-&amp;gt;item as $item) { &lt;br&gt; echo $item-&amp;gt;name, &#39;&amp;lt;br /&amp;gt;&#39;; &lt;br&gt; But I can&#39;t figure how to tell I have 2 items. The obvious: </summary> </entry> <entry> <author> <name>Oliver Heins o...@sopos.org</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T16:39:13Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/6cc2e81bfb6452cb</id> <link href="http://groups.google.com/group/comp.lang.php/msg/6cc2e81bfb6452cb"/> <title type="text">session management hangs firefox on mac</title> <summary type="html" xml:space="preserve"> Hello, &lt;br&gt; I have a somewhat strange problem. The firefox browser on a mac (tested &lt;br&gt; 1.5.0.4) hangs after the third or fourth call in a session. This &lt;br&gt; happens both with cookies enabled and by passing the session via links. &lt;br&gt; It seems that this happens while starting the session, after commenting &lt;br&gt; session_start() out, firefox behaves just fine. A recent 2.0 is also </summary> </entry> <entry> <author> <name>Jerry Stuckle jstuck...@attglobal.net</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T16:22:40Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/08666e96fb95fc01</id> <link href="http://groups.google.com/group/comp.lang.php/msg/08666e96fb95fc01"/> <title type="text">Re: playing music across pages</title> <summary type="html" xml:space="preserve"> Gnarl, &lt;br&gt; Listen to the others. You completely ignore what the user might have &lt;br&gt; going on their own machine. &lt;br&gt; For instance, what happens if I&#39;m carrying on a conversation? Or &lt;br&gt; listening to a radio show? Or other music? &lt;br&gt; When that happens to me, I leave the site immediately, never to return. &lt;br&gt; I don&#39;t even stop long enough to see what it has to say. </summary> </entry> <entry> <author> <name>Pedro Graca hex...@dodgeit.com</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T16:17:03Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/86d92e4692b9211b</id> <link href="http://groups.google.com/group/comp.lang.php/msg/86d92e4692b9211b"/> <title type="text">Re: the script wont work and i cant find anything wrong please help</title> <summary type="html" xml:space="preserve"> &amp;lt;snip&amp;gt; &lt;br&gt; &amp;lt;snip&amp;gt; &lt;br&gt; Check the return value of mysql_* calls. &lt;br&gt; Where I snipped add &lt;br&gt; if (!$r) { &lt;br&gt; // There was an error &lt;br&gt; // for simplicity sake, I&#39;ll just print it and exit &lt;br&gt; exit(&#39;Error in query (&#39; . $query . &#39;): &#39; . mysql_error()); &lt;br&gt; } &lt;br&gt; Add similar code after *all* relevant mysql_* calls. &lt;br&gt; When you run the script and there is an error, the script itself will </summary> </entry> <entry> <author> <name>Schroeder, AJ a...@qg.com</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T16:08:37Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/a8a80d4f8b556ed3</id> <link href="http://groups.google.com/group/comp.lang.php/msg/a8a80d4f8b556ed3"/> <title type="text">snmprealwalk questions</title> <summary type="html" xml:space="preserve"> Hello group, &lt;br&gt; I am using snmprealwalk() to scan for interface types and descriptions on &lt;br&gt; some Cisco routers. What I am doing is two calls to walk the routers; one &lt;br&gt; walk for ifDescr.x and the other for locIfDescr.x so that I get the &lt;br&gt; interface index and our user defined descriptions. &lt;br&gt; That returns back two arrays which I then combine into one array with a </summary> </entry> <entry> <author> <name>Kim André Akerø kiman...@NOSPAMbetadome.com</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T16:06:48Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/d109c746697b1a69</id> <link href="http://groups.google.com/group/comp.lang.php/msg/d109c746697b1a69"/> <title type="text">Re: 2 documentroots set up possible</title> <summary type="html" xml:space="preserve"> This is actually more of an Apache configuration issue, and doesn&#39;t &lt;br&gt; have anything to do with PHP. However, your httpd.conf (or wherever the &lt;br&gt; virtual host configuration for your hostname(s) are in your Apache &lt;br&gt; configuration files) has to have something like this for your virtual &lt;br&gt; host: &lt;br&gt; &amp;lt;VirtualHost 192.168.0.1:80&amp;gt; </summary> </entry> <entry> <author> <name>Sandman m...@sandman.net</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T15:39:44Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/6dd8b1f0a9387e50</id> <link href="http://groups.google.com/group/comp.lang.php/msg/6dd8b1f0a9387e50"/> <title type="text">Re: Advice about fetching user information</title> <summary type="html" xml:space="preserve"> In article &amp;lt;4566ebf8$0$336$e4fe5...@news. xs4all.nl&amp;gt;, &lt;br&gt; Erwin Moller &lt;br&gt; &amp;lt;since_humans_read_this_I_am_s pammed_too_m...@spamyourself.c om&amp;gt; &lt;br&gt; wrote: &lt;br&gt; Ok, thanks for the info. I will think about it. :) </summary> </entry> <entry> <author> <name>Sandman m...@sandman.net</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T15:38:20Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/e26ab2be28a78f7f</id> <link href="http://groups.google.com/group/comp.lang.php/msg/e26ab2be28a78f7f"/> <title type="text">Re: Advice about fetching user information</title> <summary type="html" xml:space="preserve"> In article &amp;lt;79udm2dclimq6ambad1kdo5mu8j8q c1...@4ax.com&amp;gt;, &lt;br&gt; Yes, I apologize, I tested it the wrong way. My mistake. Sorry. &lt;br&gt; Doing it the same way as your way: &lt;br&gt; 1. Fetching 1000 members, randomly chosen, one at a time: &lt;br&gt; 0.254 seconds &lt;br&gt; 2. Fetching all 1000 members in one really big IN(): &lt;br&gt; 0.007 seconds </summary> </entry> <entry> <author> <name>howa howac...@gmail.com</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T15:37:47Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/c9c2c1388b966449</id> <link href="http://groups.google.com/group/comp.lang.php/msg/c9c2c1388b966449"/> <title type="text">Re: Why ini_set( &quot;short_open_tag&quot;, 1 ) didn&#39;t work?</title> <summary type="html" xml:space="preserve"> Erwin Moller 寫道: &lt;br&gt; Thanks. </summary> </entry> <entry> <author> <name>Sandman m...@sandman.net</name> <email>comp.lang.php@googlegroups.com</email> </author> <updated>2006-11-24T15:22:11Z</updated> <id>http://groups.google.com/group/comp.lang.php/msg/69ff6a0e8355d237</id> <link href="http://groups.google.com/group/comp.lang.php/msg/69ff6a0e8355d237"/> <title type="text">Re: Advice about fetching user information</title> <summary type="html" xml:space="preserve"> In article &amp;lt;q9vdm2lgir1co34ijp82utfg30ond in...@4ax.com&amp;gt;, &lt;br&gt; Yes, I could - potentially, prefetch that list and then fetch member &lt;br&gt; info and then print the list. Sure. BUt there needs to be onlyh one &lt;br&gt; instance of member information being printed outside of this scope to &lt;br&gt; throw this off as a *solution* to my problem. </summary> </entry> </feed> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/ossworks.xml?view=markup&rev=1.1 Index: presentations/slides/intro/ossworks.xml +++ presentations/slides/intro/ossworks.xml <slide title="Open Source"> <break lines="2" /> <blurb fontsize="7em">Why do people contribute?</blurb> <break lines="2" /> <image filename="Oxytocin.jpg" align="right" marginright="2em" /> <list fontsize="5em"> <bullet>Self-interest</bullet> <bullet>Self-expression</bullet> <bullet>Hormones</bullet> <bullet>Improve the World</bullet> </list> <break lines="13" /> <blurb fontsize="4em" align="right" marginright="3em">Nature's Trust Hormone</blurb> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/web2_summary.xml?view=markup&rev=1.1 Index: presentations/slides/intro/web2_summary.xml +++ presentations/slides/intro/web2_summary.xml <slide title="Final Thoughts"> <break lines="5" /> <list marginleft="1em" fontsize="7em"> <bullet>Avoid Participation Gimmicks</bullet> <bullet>Get their Oxytocin flowing</bullet> <bullet>Solve *One* Problem</bullet> <bullet>Clean and Intuitive UI</bullet> <bullet>APIs</bullet> <bullet>Make it work!</bullet> </list> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/web2works.xml?view=markup&rev=1.1 Index: presentations/slides/intro/web2works.xml +++ presentations/slides/intro/web2works.xml <slide title="Rich Web Apps"> <break lines="2" /> <blurb fontsize="7em">Why do users contribute?</blurb> <break lines="2" /> <image filename="Oxytocin.jpg" align="right" marginright="2em" /> <list fontsize="5em"> <bullet>Self-interest</bullet> <bullet>Self-expression</bullet> <bullet>Hormones</bullet> <bullet>Improve the World</bullet> </list> <break lines="13" /> <blurb fontsize="4em" align="right" marginright="3em">Nature's Trust Hormone</blurb> </slide>
« previous php.pres (#1361) next »