<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-14455063</id><updated>2012-01-29T12:53:28.649+01:00</updated><title type='text'>DownInTheFlood.com</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-14455063.post-5353001011100919415</id><published>2011-09-03T16:36:00.003+02:00</published><updated>2011-09-03T18:02:51.969+02:00</updated><title type='text'>Gettin' A Grip On 'Audacity', a digital audio editor &amp; recording application ...</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;it took me around three attempts before i managed to get something done with &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;Audacity&lt;/span&gt;, &lt;i&gt;a free digital audio editor and recording application&lt;/i&gt;.&lt;br /&gt;&lt;br/&gt;here's a few interesting pages for starters:&lt;/span&gt;&lt;ul&gt;&lt;br /&gt;&lt;li style="color:#0000CD;font-family:trebuchet ms;font-size:13px;list-style-type:circle;"&gt;&lt;a href="http://audacity.sourceforge.net/" target="_blank" style="color:#AB0000;text-decoration:underline;font-weight:normal;"&gt;http://audacity.sourceforge.net/&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li style="color:#0000CD;font-family:trebuchet ms;font-size:13px;list-style-type:circle;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Audacity" target="_blank" style="color:#AB0000;text-decoration:underline;font-weight:normal;"&gt;http://en.wikipedia.org/wiki/Audacity&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li style="color:#0000CD;font-family:trebuchet ms;font-size:13px;list-style-type:circle;"&gt;&lt;a href="http://wiki.audacityteam.org/wiki/Category:Tutorial" target="_blank" style="color:#AB0000;text-decoration:underline;font-weight:normal;"&gt;http://wiki.audacityteam.org/wiki/Category:Tutorial&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li style="color:#0000CD;font-family:trebuchet ms;font-size:13px;list-style-type:circle;"&gt;&lt;a href="http://wiki.audacityteam.org/wiki/Audacity_Wiki_Home_Page" target="_blank" style="color:#AB0000;text-decoration:underline;font-weight:normal;"&gt;http://wiki.audacityteam.org/wiki/Audacity_Wiki_Home_Page&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;as &lt;i&gt;Audacity&lt;/i&gt; freely admits on one of it's wiki pages:&lt;br/&gt;&lt;br /&gt;&lt;cite&gt;Recording voice, music, or sound effects can be fun and easy. However, if you want to get the best transfer of a tape or LP to your computer, or record your garage band, you'll find that recording can be more difficult than it first appears, unless you arm yourself with a little basic knowledge. The pages listed &lt;a href="http://wiki.audacityteam.org/wiki/Recording_Tips" target="_blank" style="color:#AB0000;text-decoration:underline;font-weight:normal;"&gt;here&lt;/a&gt; are currently a work in progress, providing many useful tips.&lt;/cite&gt;&lt;br /&gt;&lt;br/&gt;one library required to work with the &lt;i&gt;Audacity&lt;/i&gt; software is the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;LAME MP3 encoder&lt;/span&gt;. more details can be found among the following links:&lt;/span&gt;&lt;ul&gt;&lt;br /&gt;&lt;li style="color:#0000CD;font-family:trebuchet ms;font-size:13px;list-style-type:circle;"&gt;&lt;a href="http://audacity.sourceforge.net/help/faq?s=install&amp;i=lame-mp3" target="_blank" style="color:#AB0000;text-decoration:underline;font-weight:normal;"&gt;http://audacity.sourceforge.net/help/faq?s=install&amp;i=lame-mp3&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li style="color:#0000CD;font-family:trebuchet ms;font-size:13px;list-style-type:circle;"&gt;&lt;a href="http://lame.buanzo.com.ar/" target="_blank" style="color:#AB0000;text-decoration:underline;font-weight:normal;"&gt;http://lame.buanzo.com.ar/&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;i downloaded the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;Lame for Audacity on Windows.exe&lt;/span&gt; file &amp;amp; installed &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;LAME&lt;/span&gt; on my computer. then i went to &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;edit&lt;/span&gt; --&amp;gt; &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;preferences&lt;/span&gt; --&amp;gt; &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;file format&lt;/span&gt; or &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;file type&lt;/span&gt;, clicked the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;search for library&lt;/span&gt; button to look for the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;lame_enc.dll&lt;/span&gt; file which the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;windows installation program&lt;/span&gt; had just created in my &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;Lame For Audacity&lt;/span&gt; folder.&lt;br /&gt;&lt;br/&gt;now i should be about ready to go ... here's a couple of screenshots again to support this article:&lt;br /&gt;&lt;br/&gt;with step one i start the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;Audacity program&lt;/span&gt; ...&lt;br /&gt;&lt;br/&gt;&lt;img src="http://www.downintheflood.com/iTunes/audacity_01.jpg" border="0"/&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&amp;amp; this is what the blank audio editor looks like at start-up:&lt;br /&gt;&lt;br/&gt;&lt;img src="http://www.downintheflood.com/iTunes/audacity_02.jpg" border="0"/&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;there are two important settings i would check first: one is the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;loudspeaker setting&lt;/span&gt;, i set this so i could listen to the sound on my computer while recording (i.e. transfering music from a cassette tape to my computer):&lt;br /&gt;&lt;br/&gt;&lt;img src="http://www.downintheflood.com/iTunes/audacity_03.jpg" border="0"/&gt;&lt;br/&gt;&lt;br /&gt;the second one is the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;microphone setting&lt;/span&gt; (the screenshot shows my current setting):&lt;br /&gt;&lt;br/&gt;&lt;img src="http://www.downintheflood.com/iTunes/audacity_04.jpg" border="0"/&gt;&lt;br/&gt;&lt;br /&gt;now i follow with a series of screenshots from the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;preference settings&lt;/span&gt;:&lt;br /&gt;&lt;br/&gt;&lt;img src="http://www.downintheflood.com/iTunes/audacity_05.jpg" border="0"/&gt;&lt;br/&gt;&lt;br /&gt;the first tab allows me to set the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;audio input/output settings&lt;/span&gt;:&lt;br /&gt;&lt;br/&gt;&lt;img src="http://www.downintheflood.com/iTunes/audacity_06.jpg" border="0"/&gt;&lt;br/&gt;&lt;br /&gt;at the second tab i set the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;sound quality&lt;/span&gt;:&lt;br /&gt;&lt;br/&gt;&lt;img src="http://www.downintheflood.com/iTunes/audacity_07.jpg" border="0"/&gt;&lt;br/&gt;&lt;br /&gt;with the third tab i can set the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;file format&lt;/span&gt; (also mentioned above in connection with the installation of the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;LAME library&lt;/span&gt;):&lt;br /&gt;&lt;br/&gt;&lt;img src="http://www.downintheflood.com/iTunes/audacity_08.jpg" border="0"/&gt;&lt;br/&gt;&lt;br /&gt;the fourth tab lets me adjust the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;file size&lt;/span&gt;:&lt;br /&gt;&lt;br/&gt;&lt;img src="http://www.downintheflood.com/iTunes/audacity_09.jpg" border="0"/&gt;&lt;br/&gt;&lt;br /&gt;i use the fifth tab to set the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;default folder&lt;/span&gt; for my temporary files created by &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;Audacity&lt;/span&gt;:&lt;br /&gt;&lt;br/&gt;&lt;img src="http://www.downintheflood.com/iTunes/audacity_10.jpg" border="0"/&gt;&lt;br/&gt;&lt;br /&gt;the sixth tab is used to activate or de-activate various &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;tool parameters&lt;/span&gt;:&lt;br /&gt;&lt;br/&gt;&lt;img src="http://www.downintheflood.com/iTunes/audacity_11.jpg" border="0"/&gt;&lt;br/&gt;&lt;br /&gt;with the seventh tab i can set &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;keyboard combinations&lt;/span&gt; (i've only shown a few here):&lt;br /&gt;&lt;br/&gt;&lt;img src="http://www.downintheflood.com/iTunes/audacity_12.jpg" border="0"/&gt;&lt;br/&gt;&lt;br /&gt;while finally the eighth tab allows me to set &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;mouse click types&lt;/span&gt; for various functions to use with the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;Audacity Audio Editor&lt;/span&gt;:&lt;br /&gt;&lt;br/&gt;&lt;img src="http://www.downintheflood.com/iTunes/audacity_13.jpg" border="0"/&gt;&lt;br/&gt;&lt;br /&gt;i think for the moment that's about it ...&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Good Luck!&lt;br /&gt;&lt;br/&gt;tom.paine&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-5353001011100919415?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/5353001011100919415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=5353001011100919415' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/5353001011100919415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/5353001011100919415'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2011/09/gettin-grip-on-audacity-digital-audio.html' title='&lt;i style=&quot;font-family:Trebuchet MS;color:#AB0000;&quot;&gt;Gettin&apos; A Grip On &apos;Audacity&apos;, a digital audio editor &amp;amp; recording application ...&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-40177168586809521</id><published>2011-08-30T12:58:00.014+02:00</published><updated>2011-09-03T12:39:04.417+02:00</updated><title type='text'>My Simple iTunes Overview</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;before i start working with &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; i visit the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;download section&lt;/span&gt; of &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;Apple - iTunes&lt;/span&gt;. this can be found at this link: &lt;a href="http://www.apple.com/itunes/download/" style="color:#AB0000;text-decoration:underline;font-weight:normal" target="new"&gt;http://www.apple.com/itunes/download/&lt;/a&gt;. generally &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; will automatically detect my &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;operating system&lt;/span&gt; as well as my &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;location&lt;/span&gt; &amp;amp; recommend a download for such:&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_49.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_49.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;(i usually untick the fields &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;Email me ...&lt;/span&gt; &amp;amp; &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;Keep me up to date ...&lt;/span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_50.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_50.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;once i downloaded &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;Apple - iTunes&lt;/span&gt; &amp;amp; start the installation, this will include &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;Apple - QuickTime&lt;/span&gt; &amp;amp; a program that will keep my &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes version&lt;/span&gt; up to date. for this the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes program&lt;/span&gt; will inform me from time to time that a new &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes version&lt;/span&gt; is available &amp;amp; gives me the choice to install the update now or at a later stage.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;here are some examples (with images in german) of how i work with iTunes:&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;once i start &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; the initial screen looks like this (click on the thumbnail to view larger image):&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_01.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_01.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;in the next step i open a folder containing a music file to &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;drag&lt;/span&gt; onto the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; screen:&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_02.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_02.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_03.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_03.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;the music file now shows on my &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes music player&lt;/span&gt; (this file has the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;m4a&lt;/span&gt; file extension &amp;amp; i want to convert this file to &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;mp3&lt;/span&gt;). the next few images show how to set the kbit/s value for the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;mp3 conversion&lt;/span&gt;:&lt;/span&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;select &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;edit&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_04.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_04.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;select &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;preferences&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_05.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_05.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;select &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;import settings&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_06.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_06.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;select a &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;pre-defined&lt;/span&gt; or &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;user-defined&lt;/span&gt; value&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_07.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_07.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;select the  &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;desired value&lt;/span&gt; from the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;drop-down menu&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_08.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_08.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;if i select &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;user-defined&lt;/span&gt;, i can select other &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;kbit/s values&lt;/span&gt; than the ones &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;pre-defined&lt;/span&gt; from the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;drop-down menu&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_09.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_09.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;the image below shows the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;kbit/s values&lt;/span&gt; available from this &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;drop-down menu&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_10.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_10.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;make the selection &amp;amp; click &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_11.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_11.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;while the first steps used the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;general tab&lt;/span&gt; from the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;preferences&lt;/span&gt; selection, for the next step i click the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;advanced tab&lt;/span&gt;. in order to know where my mp3 files will be stored i need to set the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;default folder&lt;/span&gt; for those files as shown in the examples below:&lt;/span&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;select &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;change&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_12.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_12.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;select  a folder from the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;drop-down menu&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_13.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_13.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;now i shall create a &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;playlist&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;select &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;file&lt;/span&gt; --&amp;gt; &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;new playlist&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_14.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_14.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;among the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;playlist menu&lt;/span&gt; a &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;new playlist&lt;/span&gt; will show &amp;amp; i have the choice to ...&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_15.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_15.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;edit the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;playlist name&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_16.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_16.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;i click the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;music folder&lt;/span&gt; at the top &amp;amp; &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;drag&lt;/span&gt; my music file to my &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;new playlist&lt;/span&gt; for further processing:&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_17.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_17.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;if i wish to &lt;i&gt;burn&lt;/i&gt; music to a &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;mp3&lt;/span&gt; or &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;audio&lt;/span&gt; CD, i can &lt;i&gt;only&lt;/i&gt; do so from a &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;playlist&lt;/span&gt;. this can also be the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;playlist&lt;/span&gt; named &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;recently added&lt;/span&gt;, it doesn't have to be the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;new playlist&lt;/span&gt; i just created.&lt;br/&gt;&lt;br /&gt;in order to start the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;burn process&lt;/span&gt; i &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;right-click&lt;/span&gt; on the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;playlist&lt;/span&gt; i wish to transfer to a CD &amp;amp; select &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;burn playlist to medium&lt;/span&gt; from the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;drop-down menu&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_18.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_18.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;with the next step &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; asks me if i wish to create a &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;mp3&lt;/span&gt; or &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;audio&lt;/span&gt; CD&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_19.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_19.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;for my example i select &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;mp3&lt;/span&gt; CD. &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; then checks the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;playlist&lt;/span&gt; to see if all the songs will fit onto the CD, else display a message, or if the CD is writeable &amp;amp; blank.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_20.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_20.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;to view or change the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;information&lt;/span&gt; of a music file i highlight the track/s &amp;amp; &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;right-click&lt;/span&gt;. then i select &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;information&lt;/span&gt; from the menu. in case of more than one track it will ask if i want to change the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;information&lt;/span&gt; for more than one track.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_21.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_21.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;once i confirmed &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; will display the available &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;ID3-tags&lt;/span&gt; i may be able to alter or change.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_22.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_22.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;after i changed the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;track information iTunes&lt;/span&gt; will display the changes for each track and/or album.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_23.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_23.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;to convert a track to the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;mp3 format&lt;/span&gt; i have pre-set (as described above), i mark the track, &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;right-click&lt;/span&gt; &amp;amp; select &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;create mp3 version&lt;/span&gt; from the menu.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_24.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_24.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;now &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; converts the song to &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;mp3&lt;/span&gt; &amp; stores the file in my &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes folder&lt;/span&gt;. i can follow the progression of the conversion on the screen.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_25.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_25.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;then i can click the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;music tab&lt;/span&gt; on the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;menu&lt;/span&gt; at the left. the song appears there twice. one file is my &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;original&lt;/span&gt;, the second one is the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;mp3 file&lt;/span&gt; i just created.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_26.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_26.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;if i want to remove the files from the player i highlight the songs i wish to remove &amp;amp; &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;press delete&lt;/span&gt;. &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; then asks me if i really want to remove the files from the mediathek, which i confirm.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_27.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_27.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;should the files also be stored in my &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;default iTunes folder&lt;/span&gt; the program asks me if i want to move the files to the wastebin, in this case i select the button &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;to keep the files&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_28.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_28.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;for my next example i have inserted a audio CD into my CD/DVD-drive. &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; now connecs with the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;Gracenote Database&lt;/span&gt; to search for the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;album &amp;amp; tracks details&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_29.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_29.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;once the search has been completed the program asks me if i wish to add the CD to my mediathek. in general i select &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;no&lt;/span&gt; since i first wish to check my &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;default settings&lt;/span&gt; as described above.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_30.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_30.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;now my CD/DVD-drive is also listed in the menu on the left with the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;album title&lt;/span&gt;. the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;track details&lt;/span&gt; are listed on the right. sometimes it happens that the name of a track is spelled incorrectly, i can still correct it here (as described above).&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_31.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_31.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;if i wish to convert the CD to &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;mp3&lt;/span&gt; i can either &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;right-click&lt;/span&gt; on the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;CD title&lt;/span&gt; &amp;amp; select &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;import CD&lt;/span&gt; or alternatively simply click the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;import CD&lt;/span&gt; button at the bottom right side of the player.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_32.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_32.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;to select all the songs of the CD for some reason i can click the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;edit&lt;/span&gt; tab at the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;top menu&lt;/span&gt;, then click &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;select all&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_33.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_33.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;i have decided that i don't want to &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;import&lt;/span&gt; all the songs from the CD, but only a few. again i &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;click&lt;/span&gt; the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;edit&lt;/span&gt; tab at the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;top menu&lt;/span&gt; &amp;amp; click &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;select none&lt;/span&gt; from the menu.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_34.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_34.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;now i tick the  &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;check box&lt;/span&gt;  to the left of the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;titlename&lt;/span&gt; for those songs i &lt;i&gt;do&lt;/i&gt; wish to convert to &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;mp3&lt;/span&gt; ...&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_35.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_35.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;and click the  &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;import CD&lt;/span&gt; button at the bottom right side of the player. the progression of the conversion is displayed in the field above the track details. in addition an orange symbol shows next to the track currently being converted.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_36.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_36.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;once the conversion of a track is completed a green symbol is being displayed next to the track.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_37.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_37.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;after &lt;i&gt;all&lt;/i&gt; my selected tracks have been converted a green symbol is being displayed next to each converted track &amp;amp; a sound rings to draw my attention to the completion.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_38.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_38.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;should i wish to convert another track i can simply &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;right-click&lt;/span&gt; that track &amp;amp; select &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;create mp3 version&lt;/span&gt; from the menu.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_39.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_39.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;again the progression of the conversion can be followed as detailed above.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_40.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_40.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;when i now click the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;music tab&lt;/span&gt; on the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;left menu&lt;/span&gt; again &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; will display the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;album title&lt;/span&gt; with &lt;i&gt;only&lt;/i&gt; the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;converted tracks&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_41.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_41.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;if i click the playlist &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;recently added&lt;/span&gt; on the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;left menu&lt;/span&gt; it will also display the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;converted tracks&lt;/span&gt; ...&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_42.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_42.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;&amp;amp; i have the choice to &lt;i&gt;burn&lt;/i&gt; these tracks onto a CD (audio or mp3).&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_43.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_43.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_44.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_44.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;again i click the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;music tab&lt;/span&gt; on the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;menu&lt;/span&gt; at the left to see the &lt;i&gt;all&lt;/i&gt; music files currently still shown with my player. if i want to remove the files from the player i highlight the songs i wish to remove &amp;amp; &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;press delete&lt;/span&gt;. &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; then asks me if i really want to remove the files from the mediathek, which i confirm.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_45.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_45.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_46.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_46.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;should the files also be stored in my &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;default iTunes folder&lt;/span&gt; the program asks me if i want to move the files to the wastebin, in this case i select the button &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;to keep the files&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_47.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_47.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;now &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; shows only the CD that is still in my CD/DVD-drive.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;a href="http://www.downintheflood.com/iTunes/iTunes_48.jpg" target="img"&gt;&lt;img src="http://www.downintheflood.com/iTunes/th/iTunes_48.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;this is just a relatively brief overview about some &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;iTunes&lt;/span&gt; features. what i haven't shown here is that if a track has been renamed or deleted &amp;amp; i wish to play it an &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;exclamation mark&lt;/span&gt; shows up to the left of the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;titlename&lt;/span&gt;, which means that the file could not be found.&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;br /&gt;&lt;table border="0" cellspacing="3" cellpadding="3" align="center"&gt;&lt;br /&gt;&lt;tr&gt;&lt;td colspan="4"&gt;&lt;font style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;&lt;u&gt;Recommended Reading:&lt;/u&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;&lt;iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFF33&amp;fc1=AB0000&amp;lc1=0000CD&amp;t=downinthefloo-20&amp;o=1&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;ref=tf_til&amp;asins=0789747871" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFF33&amp;fc1=AB0000&amp;lc1=0000CD&amp;t=downinthefloo-20&amp;o=1&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;ref=tf_til&amp;asins=0470878711" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFF33&amp;fc1=AB0000&amp;lc1=0000CD&amp;t=downinthefloo-20&amp;o=1&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;ref=tf_til&amp;asins=0071630244" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFF33&amp;fc1=AB0000&amp;lc1=0000CD&amp;t=downinthefloo-20&amp;o=1&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;ref=tf_til&amp;asins=0321569342" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;&lt;iframe src="http://rcm-de.amazon.de/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFF33&amp;fc1=AB0000&amp;lc1=0000CD&amp;t=downinthefl04-21&amp;o=3&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;ref=tf_til&amp;asins=3815837057" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;iframe src="http://rcm-de.amazon.de/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFF33&amp;fc1=AB0000&amp;lc1=0000CD&amp;t=downinthefl04-21&amp;o=3&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;ref=tf_til&amp;asins=3527706038" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;iframe src="http://rcm-de.amazon.de/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFF33&amp;fc1=AB0000&amp;lc1=0000CD&amp;t=downinthefl04-21&amp;o=3&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;ref=tf_til&amp;asins=3939685291" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;iframe src="http://rcm-de.amazon.de/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFF33&amp;fc1=AB0000&amp;lc1=0000CD&amp;t=downinthefl04-21&amp;o=3&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;ref=tf_til&amp;asins=3940285447" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;br/&gt;Hope you enjoy your time using &lt;i&gt;iTunes&lt;/i&gt;!&lt;br /&gt;&lt;br/&gt;tom.paine&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-40177168586809521?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/40177168586809521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=40177168586809521' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/40177168586809521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/40177168586809521'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2011/08/my-simple-itunes-overview.html' title='&lt;i style=&quot;font-family:Trebuchet MS;color:#AB0000;&quot;&gt;My Simple iTunes Overview&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-5357475691017976253</id><published>2010-05-31T12:18:00.004+02:00</published><updated>2010-05-31T12:49:58.459+02:00</updated><title type='text'>PHP: Amazon Store Manager / Freekrai.net</title><content type='html'>&lt;span style="color: rgb(0, 0, 205);font-family:trebuchet ms;font-size:13px;"&gt;today i would like to mention a small problem with the &lt;i&gt;Amazon Store Manager&lt;/i&gt; script available from &lt;a href="http://www.freekrai.net/projects/our-products/asm2" target="_blank" style="color: rgb(171, 0, 0); font-family: Courier New,Courier; font-size: 15px; font-weight: bold;"&gt;Freekrai.net&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;information in the &lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;readme.txt&lt;/span&gt; file reads: &lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;This program has been created by Roger Stringer and works with PHP4&lt;/span&gt;. since the introduction of the &lt;i&gt;Amazon Product Advertising&lt;/i&gt; Service (formerly known as &lt;i&gt;Amazon Web Services&lt;/i&gt; or &lt;i&gt;Amazon E-Commerce Service&lt;/i&gt; [ECS], calls to amazon's server require a signed request. the &lt;i&gt;Signature function&lt;/i&gt; &lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;hmac&lt;/span&gt;, however, only works with php5.&lt;br /&gt;&lt;br /&gt;another requirement is that the &lt;i&gt;php function&lt;/i&gt; &lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;allow url fopen&lt;/span&gt; must be set to &lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;On&lt;/span&gt;. to accomplish this simply create a &lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;php.ini&lt;/span&gt; file with the following line in it:&lt;br /&gt;&lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;allow_url_fopen = On;&lt;/span&gt;&lt;br /&gt;and save it to the store's root directory.&lt;br /&gt;&lt;br /&gt;there is another small error in the &lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;aws4class.php5&lt;/span&gt; file:&lt;br /&gt;find&lt;br /&gt;&lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;$ValueStringArray[] = "Timestamp=" .gmdate("Y-m-d\TH:i:s\Z");&lt;/span&gt;&lt;br /&gt;(should be on line 258) and change it to&lt;br /&gt;&lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;$ValueStringArray[] = "Timestamp=" .gmdate("Y-m-d\TH:i:s.000\Z");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;should the script still not work you might have to follow the instructions about &lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;Troubleshooting&lt;/span&gt; in the &lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;readme.txt&lt;/span&gt; file&lt;br /&gt;replacing&lt;br /&gt;&lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;RewriteEngine On&lt;/span&gt;&lt;br /&gt;with&lt;br /&gt;&lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;Options +FollowSymlinks&lt;br /&gt;RewriteEngine on&lt;br /&gt;RewriteBase /AmazonStoreManager4/&lt;/span&gt;&lt;br /&gt;in the &lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;.htaccess&lt;/span&gt; file, where in this example &lt;span style="color: rgb(171, 0, 0); font-weight: bold;font-family:Courier New,Courier;font-size:15px;"  &gt;/AmazonStoreManager4/&lt;/span&gt; is the scripts root directory.&lt;br /&gt;&lt;br /&gt;these are all the basic changes i made to get the script to work.&lt;br /&gt;&lt;br /&gt;enjoy!&lt;br /&gt;&lt;br /&gt;tom.paine&lt;br /&gt;&lt;br /&gt;&lt;hr style="border: 1px dashed ; color: rgb(171, 0, 0);"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-5357475691017976253?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/5357475691017976253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=5357475691017976253' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/5357475691017976253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/5357475691017976253'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2010/05/php-amazon-store-manager-freekrainet.html' title='&lt;i style=&quot;font-family:Trebuchet MS;color:#AB0000;&quot;&gt;PHP: Amazon Store Manager / Freekrai.net&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-1292902292850069524</id><published>2010-05-16T17:33:00.008+02:00</published><updated>2010-05-16T18:21:02.824+02:00</updated><title type='text'>Software: Windows Install Clean Up</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;did you ever experience a problem while trying to install an &lt;span style="font-style:italic"&gt;iTunes update&lt;/span&gt;? i had this problem getting this error message that something was wrong with the &lt;span style="font-style:italic"&gt;Windows Installation Package&lt;/span&gt;. first i thought it had something to do with my &lt;span style="font-style:italic"&gt;QuickTime Registration Key&lt;/span&gt; for &lt;span style="font-style:italic"&gt;QuickTime Pro&lt;/span&gt;; however, it took me a while to sit down and try find out why this message always came up.&lt;br /&gt;&lt;br/&gt;one day i un-installed (or tried to un-install) every &lt;span style="font-style:italic"&gt;Apple application&lt;/span&gt; on my computer (including the &lt;span style="font-style:italic"&gt;Safari&lt;/span&gt; Browser). i stumbled across a problem trying to un-install the &lt;span style="font-style:italic"&gt;Apple Software Update&lt;/span&gt;. when i checked the properties i found out that the folder where it was looking for a .msi file was empty.&lt;br /&gt;&lt;br/&gt;some time ago i downloaded the &lt;span style="font-style:italic"&gt;Windows Install Clean Up&lt;/span&gt; tool from &lt;span style="font-style:italic"&gt;Microsoft&lt;/span&gt;, but never used it. searching the internet again for details on this issue i came across this article on the &lt;span style="font-style:italic"&gt;Apple support&lt;/span&gt; site: &lt;a href="http://support.apple.com/kb/HT1926" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;http://support.apple.com/kb/HT1926&lt;/a&gt;. it has a link to the &lt;span style="font-style:italic"&gt;Windows Install Clean Up&lt;/span&gt; software: &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;290301" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;290301&lt;/a&gt;. there's a warning at the &lt;span style="font-style:italic"&gt;Microsoft&lt;/span&gt; site about the use of this tool. however, there's not much to go wrong. i followed the instructions from the &lt;span style="font-style:italic"&gt;Apple support page&lt;/span&gt;, starting the &lt;span style="font-style:italic"&gt;Windows Install Clean Up&lt;/span&gt; program a window opens that lists all the programs installed. next i selected &lt;span style="font-style:italic"&gt;Apple Software Update&lt;/span&gt; and pushed the remove button.&lt;br /&gt;&lt;br/&gt;then i re-installed &lt;span style="font-style:italic"&gt;iTunes&lt;/span&gt; &amp; &lt;span style="font-style:italic"&gt;QuickTime&lt;/span&gt; and the &lt;span style="font-style:italic"&gt;Safari&lt;/span&gt; Browser without any problems and any error messages. what i found interesting was that the &lt;span style="font-style:italic"&gt;Apple Software Update&lt;/span&gt; folder was now in a different place than where the system required it before for the &lt;span style="font-style:italic"&gt;iTunes update&lt;/span&gt;. Problem solved!&lt;br /&gt;&lt;br/&gt;enjoy!&lt;br /&gt;&lt;br/&gt;tom.paine&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-1292902292850069524?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/1292902292850069524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=1292902292850069524' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/1292902292850069524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/1292902292850069524'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2010/05/software-windows-install-clean-up.html' title='&lt;i style=&quot;font-family:Trebuchet MS;color:#AB0000;&quot;&gt;Software: Windows Install Clean Up&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-2575122338322205601</id><published>2010-05-02T16:25:00.004+02:00</published><updated>2010-05-02T17:38:38.977+02:00</updated><title type='text'>PHP: Calin Uioreanu's amazon script</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;&lt;span style="font-style:italic;"&gt;Amazon Web Services&lt;/span&gt; is a neverending story from transition to transition, that is:&lt;br/&gt;&lt;br /&gt;it started of as &lt;span style="font-style:italic;"&gt;Amazon Web Services&lt;/span&gt;, then became &lt;span style="font-style:italic;"&gt;Amazon E-Commerce Service&lt;/span&gt; and is currently named &lt;span style="color:#AB0000;font-style:italic;"&gt;Amazon Product Advertising&lt;/span&gt;.&lt;br/&gt;&lt;br /&gt;in the process of keeping the various scripts i've either written myself or downloaded from different sites over the years running, i took up the amazon script from &lt;span style="color:#AB0000"&gt;php9.com by Calin Uioreanu&lt;/span&gt; the other day. the website no longer seems to exist and through some new channels now available i was able to contact and inform him about the improvements i had been able to make to the script, which unfortunately i did not document. &lt;span style="font-style:italic;"&gt;unfortunately&lt;/span&gt; because when Calin Uioreanu came back to me he replied that he had only little time now to &lt;span style="font-style:italic;"&gt;play&lt;/span&gt; with it. he suggested that if i had a &lt;span style="font-style:italic;"&gt;blog&lt;/span&gt; perhaps i could show the steps it took to get the script running again.&lt;br/&gt;&lt;br /&gt;well, in the end i added a whole lot of other stuff to the script, that's why it's so hard for me to tell which changes i made just to get the basic script running. i'll try though to show just these steps.&lt;br/&gt;&lt;br /&gt;persons long familiar and in touch with &lt;span style="font-style:italic;"&gt;Amazon Web Services&lt;/span&gt; will know that the new version requires a &lt;span style="color:#AB0000;font-style:italic;"&gt;SecretAccessKey&lt;/span&gt; in addition to the &lt;span style="color:#AB0000;font-style:italic;"&gt;AWSAccessKeyID&lt;/span&gt; that was already required in the past. the user can obtain them by registering with &lt;a href="http://aws.amazon.com/" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;aws.amazon.com&lt;/a&gt;. somewhere along the line there's something about fees being charged; however for our purpose to get this script going again it's still free of charge.&lt;br/&gt;&lt;br /&gt;once the user has registered with &lt;span style="color:#AB0000;font-style:italic;"&gt;aws.amazon.com&lt;/span&gt; and obtained the two keys mentioned above we place them into a separate file named &lt;span style="color:#AB0000;font-style:italic;"&gt;#_aws_keys.inc.php5&lt;/span&gt; (for example) like this:&lt;br/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;&amp;lt;?php&lt;br /&gt;$ACCESS_KEY_ID = "xxxxxxxxxxxxxxxxxxxx";&lt;br /&gt;$SECRET_ACCESS_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;and save this file into the &lt;span style="color:#AB0000;font-style:italic;"&gt;common/&lt;/span&gt; folder (for example).&lt;br/&gt;&lt;br /&gt;now the trouble starts: i couldn't remember when to include the &lt;span style="color:#AB0000;font-style:italic;"&gt;#_aws_keys.inc.php5&lt;/span&gt; file. (having a good editor that can search through the files is always a good idea.) the &lt;span style="color:#AB0000;font-style:italic;"&gt;#_aws_keys.inc.php5&lt;/span&gt; is included in the &lt;span style="color:#AB0000;font-style:italic;"&gt;product4.php5&lt;/span&gt; file which we can find in the &lt;span style="color:#AB0000;font-style:italic;"&gt;classes/&lt;/span&gt; folder.&lt;br/&gt;&lt;br /&gt;best is we now open the &lt;span style="color:#AB0000;font-style:italic;"&gt;product4.php5&lt;/span&gt; file and look for:&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;function getLiveSearch&lt;/span&gt;&lt;br/&gt;&lt;br /&gt;then search for the following line:&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;$searchIndex = $missPlacedNodes[$_GET['browse']];&lt;/span&gt;&lt;br/&gt;&lt;br /&gt;it should be &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;Line 36&lt;/span&gt;. after the closing bracket &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;Line 37&lt;/span&gt; we now insert a whole bunch of code that already helps us to send a &lt;span style="color:#AB0000;font-style:italic;"&gt;signed request&lt;/span&gt; to amazon.&lt;br/&gt;&lt;br /&gt;here now is a big chunk of code that includes a few extras since i changed my script version to accomodate requests to all amazon locales:&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;if ($locale == 'US') { $site = 'com'; $partnerId = 'AFFILIATE ID FOR LOCALE US'; }&lt;br /&gt;elseif ($locale == 'UK') { $site = 'co.uk'; $partnerId = 'AFFILIATE ID FOR LOCALE UK'; }&lt;br /&gt;elseif ($locale == 'DE') { $site = 'de'; $partnerId = 'AFFILIATE ID FOR LOCALE DE'; }&lt;br /&gt;elseif ($locale == 'JP') { $site = 'jp'; $partnerId = 'AFFILIATE ID FOR LOCALE JP'; }&lt;br /&gt;elseif ($locale == 'FR') { $site = 'fr'; $partnerId = 'AFFILIATE ID FOR LOCALE FR'; }&lt;br /&gt;elseif ($locale == 'CA') { $site = 'ca'; $partnerId = 'AFFILIATE ID FOR LOCALE CA'; }&lt;br /&gt;&lt;br /&gt;include_once('common/#_aws_keys.inc.php5');&lt;br /&gt;&lt;br /&gt;$timestamp = gmdate("Y-m-d\TH:i:s.\\0\\0\\0\\Z");&lt;br /&gt;$timestamp = str_replace(':','%3A',$timestamp);&lt;br /&gt;&lt;br /&gt;// This is needed for '+' added for space character in request&lt;br /&gt;$requestparams='AWSAccessKeyId='.$ACCESS_KEY_ID.'&amp;AssociateTag='.$partnerId.'&amp;Operation=ItemSearch&amp;SearchIndex='.$searchIndex.'&amp;Keywords='.$searchString.'&amp;ItemPage=1&amp;ResponseGroup='.$responseGroup.'&amp;Service=AWSECommerceService&amp;Timestamp='.$timestamp.'&amp;Version=2009-10-01';&lt;br /&gt;$requestparams = str_replace('+','%2B',$requestparams);&lt;br /&gt;&lt;br /&gt;$sort_requestparams = explode("&amp;", $requestparams);&lt;br /&gt;sort($sort_requestparams);&lt;br /&gt;&lt;br /&gt;$request = "GET\necs.amazonaws.".$site."\n/onca/xml\n".implode("&amp;",$sort_requestparams);&lt;br /&gt;// $request = "GET\necs.amazonaws.com\n/onca/xml\n".$requestparams;&lt;br /&gt;&lt;br /&gt;$request = str_replace(':','%3A',$request);&lt;br /&gt;$request = str_replace(';','%3B',$request);&lt;br /&gt;$request = str_replace(',','%2C',$request);&lt;br /&gt;&lt;br /&gt;// Signing&lt;br /&gt;$signature = base64_encode(hash_hmac("sha256",$request,$SECRET_ACCESS_KEY,TRUE));&lt;br /&gt;&lt;br /&gt;$signature = str_replace('+','%2B',$signature);&lt;br /&gt;$signature = str_replace('=','%3D',$signature);&lt;br /&gt;$signature = str_replace('/','%2F',$signature);&lt;br /&gt;&lt;br /&gt;$xmlUrl = 'http://ecs.amazonaws.'.$site.'/onca/xml?'.$requestparams.'&amp;Signature='.$signature;&lt;br /&gt;&lt;br /&gt;// echo '&amp;lt;a href="'.$xmlUrl.'" target="new"&amp;gt;The Request&amp;lt;/a&amp;gt;';&lt;/span&gt;&lt;br/&gt;&lt;br /&gt;that last line i uncomment if i run into trouble. it then gives me the request link i have &lt;span style="font-style:italic;"&gt;assembled&lt;/span&gt; that i can use to check the amazon (XML) document for details, either an error message or the document structure, which i may need in order to access the different XML elements.&lt;br/&gt;&lt;br /&gt;to make things very easy i have made my version available for &lt;a href="http://www.downintheflood.com/download/amazon-php9-com.zip" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;download&lt;/a&gt;.&lt;br/&gt;&lt;br /&gt;and of course the scripts runs as a &lt;a href="http://www.downintheflood.com/amazonPHP/example4.php5" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;live demo&lt;/a&gt;.&lt;br/&gt;&lt;br /&gt;i hope some users may find this useful. if there's any problems, just leave comments and we'll see how we can improve it further, if and when necessary.&lt;br /&gt;&lt;br/&gt;enjoy!&lt;br /&gt;&lt;br/&gt;tom.paine&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-2575122338322205601?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/2575122338322205601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=2575122338322205601' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/2575122338322205601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/2575122338322205601'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2010/05/php-calin-uioreanus-amazon-script.html' title='&lt;i style=&quot;font-family:Trebuchet MS;color:#AB0000;&quot;&gt;PHP: Calin Uioreanu&apos;s amazon script&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-2759552481298041619</id><published>2010-05-02T15:51:00.008+02:00</published><updated>2010-05-02T17:41:25.759+02:00</updated><title type='text'>Software: Unlocker</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;ever so often i came across this error message:&lt;/span&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#AB0000;font-family:bookman old style;font-size:16px;font-style:italic;"&gt;Cannot delete folder: It is being used by another person or program.&lt;/span&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;the other day i decided to search the internet for comments or a solution to this problem and ran across the website of&lt;/span&gt;&lt;br/&gt;&lt;br /&gt;&lt;a href="http://ccollomb.free.fr/unlocker/" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;CEDRICK 'NITCH' COLLOMB&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;who wrote a nice little program named&lt;/span&gt; &lt;a href="http://ccollomb.free.fr/unlocker/" target="_blank" style="color:#AB0000;font-family:bookman old style;font-style:italic;font-weight:normal;"&gt;Unlocker&lt;/a&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;.&lt;/span&gt;&lt;br/&gt;&lt;br /&gt;&lt;r/&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;it's free software and a very nice tool to have.&lt;br/&gt;&lt;br /&gt;i installed it with the default settings given.&lt;br/&gt;&lt;br /&gt;when i now come across a folder that cannot be deleted, after a moment this little tool opens a separate window asking what i would like to do: kill the process, or just release the folder, after which i can try to delete the folder again. so far it has always worked and it's very nice to have.&lt;br/&gt;&lt;br /&gt;of course the software supports not only folders, but files as well. i usually had the problem when i moved a complete folder to another drive, and once the folder was empty it could not necessarily be deleted.&lt;br/&gt;&lt;br /&gt;i hope that others my find this useful, too.&lt;br/&gt;&lt;br /&gt;enjoy!&lt;br /&gt;&lt;br/&gt;tom.paine&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-2759552481298041619?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/2759552481298041619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=2759552481298041619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/2759552481298041619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/2759552481298041619'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2010/05/software-unlocker.html' title='&lt;i style=&quot;font-family:Trebuchet MS;color:#AB0000;&quot;&gt;Software: Unlocker&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-6891821090090770574</id><published>2009-12-15T21:52:00.005+01:00</published><updated>2009-12-15T22:17:01.028+01:00</updated><title type='text'>Books: My Reading List</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;what am i reading at the moment? i guess everyone's got some kind of a list of books one currently reads or is interested in reading; the same goes for music, which albums to listen to or crave for, and also what movies one has seen and which ones one might consider to collect as DVD issues. here's my recent reading list:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=022408948X&amp;templates=uk&amp;locale=uk" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;Thomas Pynchon: Inherent Vice&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=0224073680&amp;templates=uk&amp;locale=uk" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;Alex Halberstadt: Lonely Avenue: The Unlikely Life and Times of Doc Pomus&lt;/a&gt;&lt;br /&gt;this title reminded my of the song i first heard on a &lt;i&gt;Van Morrison&lt;/i&gt; record and only later on a &lt;i&gt;Ray Charles&lt;/i&gt; album. touchingly written!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?templates=uk&amp;locale=uk&amp;Operation=ItemSearch&amp;Keywords=mark+twain+the+complete+interviews&amp;SearchIndex=Books" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;Mark Twain: The Complete Interviews &amp;#40;Studies in American Literary Realism and Naturalism&amp;#41;&lt;/a&gt;&lt;br /&gt;very interesting reading; i didn't know that Mark Twain at his own time was popularly known as a humorist. in my youth i'd never consider his Adventures of &lt;i&gt;Tom Sawyer&lt;/i&gt; and &lt;i&gt;Huckleberry Finn&lt;/i&gt; as humorous literature.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=3492247679&amp;templates=default&amp;locale=de" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;Mark Twain: Bummel durch Deutschland&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=325721880X&amp;templates=default&amp;locale=de" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;Mark Twain: Bummel durch Europe&lt;/a&gt;&lt;br /&gt;i'm considering getting these about Mark Twain's travels through Germany and Europe. they will certainly make facinating reading about Europe at the time.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=3925817700&amp;templates=default&amp;locale=de" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;Mark Twain: Die Schreckliche Deutsche Sprache&lt;/a&gt; (&lt;i&gt;the awful german language&lt;/i&gt;)&lt;br /&gt;i haven't seen this one at local bookstores, but it definitely sounds like an inviting title after what i've read so far about Mark Twain.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=1401384838&amp;templates=uk&amp;locale=uk" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;J. R. Moehringer: The Tender Bar: A Memoir&lt;/a&gt; (Audio Book)&lt;br /&gt;i'm not a big fan of audiobooks, i'd rather read; but this one i find interesting since it's being read by the author 'n' i guess he'd put the pronounciations appropriately there where he'd 've wished to highlight or obscure in this &lt;i&gt;tender&lt;/i&gt; memoir.&lt;br /&gt;&lt;br/&gt;tom.paine&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-6891821090090770574?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/6891821090090770574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=6891821090090770574' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/6891821090090770574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/6891821090090770574'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2009/12/books-my-reading-list.html' title='&lt;i style=&quot;font-family:Trebuchet MS;color:#AB0000;&quot;&gt;Books: My Reading List&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-52804453530348657</id><published>2009-12-15T21:19:00.007+01:00</published><updated>2009-12-15T21:42:23.591+01:00</updated><title type='text'>PHP: list all files of a local directory</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;... i haven't written an article since march ... here's a short script.&lt;br /&gt;&lt;br /&gt;the issue: i wanted to save a list of a music albums i'd converted from CD to mp3 format. to avoid typing it all out i got myself a little script to do the work for me at mouse click:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;define('DEFAULT_DIR','D(rive):\\MyFolder\\');&lt;br /&gt;$dir = (isset($_GET['dir'])) ? $_GET['dir'] : DEFAULT_DIR;&lt;br /&gt;if (is_dir($dir)) {&lt;br /&gt;    if ($dh = opendir($dir)) {&lt;br /&gt;        while (($file = readdir($dh)) !== false) {&lt;br /&gt;            echo $file . "\n";&lt;br /&gt;        }&lt;br /&gt;        closedir($dh);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;/pre&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;this code simply lists all files and folders of the &lt;i&gt;MyFolder&lt;/i&gt; directory.&lt;br /&gt;&lt;br /&gt;there was another code snippet i worked on: i wanted a list of the songtitles of a particular album without the .mp3 file extension; the code looks like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;&amp;lt;?php&lt;br /&gt;define('DEFAULT_DIR','D(rive):/MyFolder');&lt;br /&gt;$dir = (isset($_GET['dir'])) ? $_GET['dir'] : DEFAULT_DIR;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;List-All-Files : &amp;lt;?=$dir;?&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;script language="JavaScript" type="text/javascript"&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;function copyit(theField) {&lt;br /&gt;  var tempval=eval("document.linktable.list_table");&lt;br /&gt;  tempval.focus();&lt;br /&gt;  tempval.select();&lt;br /&gt;  therange=tempval.createTextRange();&lt;br /&gt;  therange.execCommand("Copy");&lt;br /&gt;}&lt;br /&gt;//--&amp;gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;body     {font-family:'Trebuchet MS'; color:#AB0000;}&lt;br /&gt;form     {font-family:'Courier New', Courier; font-size: 12px;}&lt;br /&gt;.button  {font-family: Verdana, Helvetica, sans-serif; font-size: 11px; font-weight: bold; cursor: hand; color: #AB0000; margin-top: 3mm; border: 2px; border-color: #DDDDDD; border-style: outset; background-color: #FFFFFF; width: 150;}&lt;br /&gt;.button1 {font-family: Verdana, Helvetica, sans-serif; font-size: 11px; font-weight: bold; cursor: hand; color: #AB0000; margin-top: 3mm; border: 2px; border-color: #DDDDDD; border-style: outset; background-color: #FFFFFF; width: 150;}&lt;br /&gt;.button2 {font-family: Verdana, Helvetica, sans-serif; font-size: 11px; font-weight: bold; cursor: hand; color: #FFFFFF; margin-top: 3mm; border: 2px; border-color: #DDDDDD; border-style: outset; background-color: #AB0000; width: 150;}&lt;br /&gt;--&amp;gt;&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body topmargin="0"&amp;gt;&lt;br /&gt;&amp;lt;center&amp;gt;&amp;lt;h3&amp;gt;&amp;lt;u&amp;gt;&amp;lt;i&amp;gt;List-All-Files&amp;lt;/i&amp;gt;&amp;lt;/u&amp;gt; : &amp;lt;?=$dir?&amp;gt;&amp;lt;/h3&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;&amp;lt;form name="linktable"&amp;gt;&lt;br /&gt;&amp;lt;div&amp;gt;&amp;lt;input class="button" type="button" value="COPY &amp;amp; PASTE" onclick="copyit();" onmouseover="this.className='button2'" onmouseout="this.className='button1'"&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;textarea style="width:875px; height:1000px; color:#FFFFFF; background-color:#AB0000;" name="list_table" readonly="readonly"&amp;gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;filesInDir($dir);&lt;br /&gt;function filesInDir($tdir)&lt;br /&gt;{&lt;br /&gt;$dirs = scandir($tdir);&lt;br /&gt;foreach($dirs as $file) {&lt;br /&gt;if (($file == '.') || ($file == '..')) { }&lt;br /&gt;elseif (is_dir($tdir.'/'.$file)) { filesInDir($tdir.'/'.$file); }&lt;br /&gt;else { echo substr($file,0,strlen($file)-4)."\n"; } }&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;/textarea&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;this will list all files of the directory &lt;i&gt;MyFolder&lt;/i&gt; minus the last 4 digits of the complete filename. of course if the file-extension would be &lt;i&gt;.html&lt;/i&gt; it would still include the &lt;i&gt;.&lt;/i&gt; (dot) in the filename; furthermore, this code displays the list in an easy to use &lt;i&gt;copy and paste&lt;/i&gt; form field.&lt;br /&gt;&lt;br /&gt;well, at least it's something, isn't it?&lt;br /&gt;&lt;br/&gt;tom.paine&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-52804453530348657?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/52804453530348657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=52804453530348657' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/52804453530348657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/52804453530348657'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2009/12/php-list-all-files-of-local-directory.html' title='&lt;i style=&quot;font-family:Trebuchet MS;color:#AB0000;&quot;&gt;PHP: list all files of a local directory&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-7257978466407924640</id><published>2009-03-09T13:31:00.007+01:00</published><updated>2010-05-16T18:11:10.052+02:00</updated><title type='text'>PHP: how to rename a bunch of files / Windows XP</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;last weekend i was looking for a solution to rename a bunch of .mp3 files that had underscores and small letters as filenames while i prefered spaces instead of the underscores and capital letters for the individual words of the filename.&lt;br /&gt;&lt;br/&gt;fortunately PHP has some built in functions to replace one character with another as well as renaming files altogether. i assumed that someone had already done something like it, so i went looking for a code-snippet on the internet again.&lt;br /&gt;&lt;br/&gt;i came across this &lt;a href="http://forum.de.selfhtml.org/archiv/2004/11/t95097/" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;link&lt;/a&gt;.&lt;br /&gt;&lt;br/&gt;this person was struggling with the renaming of some image files. i started to try the examples and various explanations as given when i stumbled across the problem that Windows XP is a bit fuzzy about renaming files. just search this &lt;a href="http://de2.php.net/rename" target="_blank" style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;document&lt;/a&gt; for &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;Permission Denied&lt;/span&gt; and you'll know what i mean.&lt;br /&gt;&lt;br/&gt;here's one solution:&lt;br /&gt;&lt;br/&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;function rename_win($oldfile,$newfile) {&lt;br /&gt;   if (!rename($oldfile,$newfile)) {&lt;br /&gt;      if (copy ($oldfile,$newfile)) {&lt;br /&gt;         unlink($oldfile);&lt;br /&gt;         return TRUE;&lt;br /&gt;      }&lt;br /&gt;      return FALSE;&lt;br /&gt;   }&lt;br /&gt;   return TRUE;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;but that one didn't work for me either. another problem i had was defining the directory that contained the files to be renamed. after a number of struggles i came up with this solution:&lt;br /&gt;&lt;br/&gt;first i placed all the .mp3 files into one folder together with the following code-snippet i saved to a file that i named &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;rename-a-file.php&lt;/span&gt;.&lt;br /&gt;&lt;br/&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;&amp;lt;?php&lt;br /&gt;// source: http://forum.de.selfhtml.org/archiv/2004/11/t95097/&lt;br /&gt;$handle = opendir ('.');&lt;br /&gt;while ( $file = readdir ( $handle ) ) {&lt;br /&gt;if ( $file == "." or $file == ".." ) {&lt;br /&gt;    } else {&lt;br /&gt;     if ( rename( $file, (ucwords(str_replace('_',' ',$file).$new)) ) ) {&lt;br /&gt;         echo "File $file found &amp;lt;br&amp;gt;";&lt;br /&gt;         } else {&lt;br /&gt;           echo "File $file not found &amp;lt;br&amp;gt;";&lt;br /&gt;           }&lt;br /&gt;   }&lt;br /&gt;} closedir( $handle );&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;running the script at first i didn't see the changes in the folder until i pressed the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;refresh button&lt;/span&gt;. now all the files had no more underscores and capital letters, even the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;rename-a-file.php&lt;/span&gt; which is now called &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;Rename-a-file.php&lt;/span&gt; :-)&lt;br /&gt;&lt;br/&gt;i keep the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;Rename-a-file.php&lt;/span&gt; file now in a separate folder named &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;rename&lt;/span&gt; that i may not accidentally run the script and rename the files in the folder where i kept the copy originally, with all my other .php files.&lt;br /&gt;&lt;br/&gt;here is another example, in this case i didn't need to replace any characters; i only needed to change the lowercase to uppercase characters:&lt;br /&gt;&lt;br/&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;&amp;lt;?php&lt;br /&gt;// source: http://forum.de.selfhtml.org/archiv/2004/11/t95097/&lt;br /&gt;$handle = opendir ('.');&lt;br /&gt;while ( $file = readdir ( $handle ) ) {&lt;br /&gt;if ( $file == "." or $file == ".." ) {&lt;br /&gt;    } else {&lt;br /&gt;     if ( rename( $file, (ucwords($file).$new) ) ) {&lt;br /&gt;         echo "File $file found &amp;lt;br&amp;gt;";&lt;br /&gt;         } else {&lt;br /&gt;           echo "File $file not found &amp;lt;br&amp;gt;";&lt;br /&gt;           }&lt;br /&gt;   }&lt;br /&gt;} closedir( $handle );&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;in these examples i have used the following &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;PHP functions&lt;/span&gt;:&lt;br /&gt;&lt;br/&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;opendir&lt;br /&gt;readdir&lt;br /&gt;rename&lt;br /&gt;ucwords&lt;br /&gt;str_replace&lt;br /&gt;closedir&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Hopefully this may prove helpful to other users, too. Don't overdo it!&lt;br /&gt;&lt;br/&gt;tom.paine&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-7257978466407924640?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/7257978466407924640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=7257978466407924640' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/7257978466407924640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/7257978466407924640'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2009/03/php-how-to-rename-bunch-of-files.html' title='&lt;i style=&quot;font-family:Trebuchet MS;color:#AB0000;&quot;&gt;PHP: how to rename a bunch of files / Windows XP&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-1651483165152359297</id><published>2009-03-09T13:03:00.009+01:00</published><updated>2010-05-16T18:11:30.333+02:00</updated><title type='text'>A Strange Way To Search</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;in my previous article i mentioned a link i came across while searching for a solution to my CSV problem.&lt;br /&gt;&lt;br/&gt;i merely entered &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:14px;font-weight:bold;"&gt;php csv if&lt;/span&gt; in the form field of the Google Search Engine and grabbed the first link on the list.&lt;br /&gt;&lt;br/&gt;here's my original search for &lt;a href="http://www.google.de/search?q=php+csv+if&amp;sourceid=navclient-ff&amp;ie=UTF-8&amp;rlz=1B3GGGL_deDE264DE264" target="_blank" style="font-family:Courier New, Courier;color:#AB0000;font-size:14px;font-weight:bold;"&gt;php csv if&lt;/a&gt;.&lt;br /&gt;&lt;br/&gt;Have Fun!&lt;br /&gt;&lt;br/&gt;tom.paine&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-1651483165152359297?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/1651483165152359297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=1651483165152359297' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/1651483165152359297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/1651483165152359297'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2009/03/strange-way-to-search.html' title='&lt;i style=&quot;font-family:Trebuchet MS;color:#AB0000;&quot;&gt;A Strange Way To Search&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-8330490684404363025</id><published>2009-02-21T15:23:00.005+01:00</published><updated>2010-05-16T18:13:45.932+02:00</updated><title type='text'>PHP: how to make amendments to a CSV file</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;in my third article for today i want to write about a problem i had with a massive csv file the other night:&lt;br /&gt;&lt;br/&gt;i got this big CSV file which contains over 3300 lines of entries. those entries include a date, but i can't use that date for sorting. first of all it's written among a string of other details; it's written as 20 February 2000 or February 20, 2000 or February 20 2000. that's 3 different ways. i decided that i needed another column in my CSV file where i'd store the date as a sortable value. i found that a leading id-number was followed by 3 whitespaces, and that those 3 whitespaces were otherwise not used in the document. so i decided to open my CSV file with WordPad and change the 3 whitespaces to 2 pipes thus: &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;||&lt;/span&gt;. inbetween those pipes i would store the date value i want to use for sorting. i spent about 2 nights entering the date by copying and pasting it right there when on the second night my screen got stuck again and i had to re-start my computer. i was just paging down the document when it happened; and i thought that i had just saved the document.&lt;br /&gt;&lt;br/&gt;after re-starting my laptop i found out that the document had been in the process of saving when the screen got stuck. only a third of this document was still available to me. of course i had some kind of a backup copy, but that was the copy without the pipes. now i had to decide: do i start from scratch or am i going to look around for a script that could maybe do it with PHP which i wanted to do all the while anyway?.&lt;br /&gt;&lt;br/&gt;i was a bit upset about all this since it was such a boring job to do and i knew i would be glad once i'd reached the end of the file.&lt;br /&gt;&lt;br/&gt;alright, let me search the internet for some kind of a solution that may come close to what i want to achieve. now, what am i going to search for? how about &lt;i&gt;php amend csv file&lt;/i&gt;?&lt;br /&gt;&lt;br/&gt;in a german forum i found someone who tried to search for results in a CSV document: &lt;a href="http://forum.de.selfhtml.org/archiv/2008/5/t171322/" target="_blank" style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;http://forum.de.selfhtml.org/archiv/2008/5/t171322/&lt;/a&gt;.&lt;br /&gt;&lt;br/&gt;i started playing with that one. the person couldn't get his script to work.&lt;br /&gt;&lt;br/&gt;here's my version of the script:&lt;br /&gt;&lt;br/&gt;&lt;span style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;&amp;lt;pre style="font-family:'Courier New', Courier; font-size:11px; color:blue;"&amp;gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;define('SEARCH', '1961');&lt;br /&gt;$s = (isset($_GET['s'])) ? $_GET['s'] : SEARCH;&lt;br /&gt;$csv_file_open = fopen("worksheet.csv", "r");&lt;br /&gt;$row = 1;&lt;br /&gt;while ($data = fgetcsv ($csv_file_open, 1000, "|")) {&lt;br /&gt;      if (stristr ( $data[2], $s )) {&lt;br /&gt;      echo $data[0] . "|" . $s . "-";&lt;br /&gt;      echo $data[1] . "|";&lt;br /&gt;      echo $data[2] . "\n";&lt;br /&gt;    }&lt;br /&gt;    $row++;&lt;br /&gt;}&lt;br /&gt;fclose($csv_file_open);&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;/pre&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;this code snippet lets me search my document for the date &lt;span style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;1961&lt;/span&gt; (as a default value) and squeezes it between the id number and the other string devided by the pipe symbol, provided it finds the date value i've given. if i want another search result i could add &lt;span style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;?s=1980&lt;/span&gt;, for instance, as a url parameter after the file name. the problem is, if i search for &lt;span style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;New York City&lt;/span&gt;, it would enter &lt;span style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;New York City&lt;/span&gt;, where found, between those 2 pipe symbols ... hm ... not exactly what i had in mind.&lt;br /&gt;&lt;br/&gt;i gave the idea some more thought and came up with a solution that uses &lt;span style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;$y&lt;/span&gt; as a variable for the &lt;span style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;year&lt;/span&gt;, &lt;span style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;$m&lt;/span&gt; as a variable for the &lt;span style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;month&lt;/span&gt; and &lt;span style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;$d&lt;/span&gt; as a variable for the &lt;span style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;day&lt;/span&gt;. hm, that looks pretty good for starters.&lt;br /&gt;&lt;br/&gt;as usual, i made a copy of my first example for keepsake and decided to work with a new php file i named &lt;span style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;csv-add-date.php&lt;/span&gt;.&lt;br /&gt;&lt;br/&gt;i kept some of the old code, but for the moment i wouldn't need the &lt;span style="color:#AB0000;font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;$s&lt;/span&gt; variable.&lt;br /&gt;&lt;br/&gt;here's my code in the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;csv-add-date.php&lt;/span&gt; file:&lt;br /&gt;&lt;br/&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;&amp;lt;pre style="font-family:'Courier New', Courier; font-size:11px; color:blue;"&amp;gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;define('SEARCH', '1961');&lt;br /&gt;$s = (isset($_GET['s'])) ? $_GET['s'] : SEARCH;&lt;br /&gt;$csv_file_open = fopen("clean_sheet.csv", "r");&lt;br /&gt;$row = 1;&lt;br /&gt;while ($data = fgetcsv ($csv_file_open, 1000, "|")) {&lt;br /&gt;include ( 'csv-calculate-year.php' );&lt;br /&gt;include ( 'csv-calculate-01-jan-day.php' );&lt;br /&gt;include ( 'csv-calculate-02-feb-day.php' );&lt;br /&gt;include ( 'csv-calculate-03-mar-day.php' );&lt;br /&gt;include ( 'csv-calculate-04-apr-day.php' );&lt;br /&gt;include ( 'csv-calculate-05-may-day.php' );&lt;br /&gt;include ( 'csv-calculate-06-jun-day.php' );&lt;br /&gt;include ( 'csv-calculate-07-jul-day.php' );&lt;br /&gt;include ( 'csv-calculate-08-aug-day.php' );&lt;br /&gt;include ( 'csv-calculate-09-sep-day.php' );&lt;br /&gt;include ( 'csv-calculate-10-oct-day.php' );&lt;br /&gt;include ( 'csv-calculate-11-nov-day.php' );&lt;br /&gt;include ( 'csv-calculate-12-dec-day.php' );&lt;br /&gt;      echo $data[0] . "|" . $y . "-" . $m . "-" . $d;&lt;br /&gt;      echo $data[1] . "|";&lt;br /&gt;      echo $data[2] . "\n";&lt;br /&gt;    $row++;&lt;br /&gt;}&lt;br /&gt;fclose($csv_file_open);&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;/pre&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;i'm also using a new CSV file which i named &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;clean_sheet.csv&lt;/span&gt;.&lt;br /&gt;&lt;br/&gt;... and here is an excerpt from my &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;csv-calculate-year.php&lt;/span&gt;:&lt;br /&gt;&lt;br/&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;&amp;lt;?php&lt;br /&gt;      if (stristr ( $data[2], '1958' )) { $y = '1958'; }&lt;br /&gt;      elseif (stristr ( $data[2], '1960' )) { $y = '1960'; }&lt;br /&gt;      elseif (stristr ( $data[2], '1961' )) { $y = '1961'; }&lt;br /&gt;      elseif (stristr ( $data[2], '1962' )) { $y = '1962'; }&lt;br /&gt;      elseif (stristr ( $data[2], '1963' )) { $y = '1963'; }&lt;br /&gt;      elseif (stristr ( $data[2], '1964' )) { $y = '1964'; }&lt;br /&gt;      elseif (stristr ( $data[2], '1965' )) { $y = '1965'; }&lt;br /&gt;      elseif (stristr ( $data[2], '1966' )) { $y = '1966'; }&lt;br /&gt;      elseif (stristr ( $data[2], '1967' )) { $y = '1967'; }&lt;br /&gt;      elseif (stristr ( $data[2], '1968' )) { $y = '1968'; }&lt;br /&gt;      elseif (stristr ( $data[2], '1969' )) { $y = '1969'; }&lt;br /&gt;      elseif (stristr ( $data[2], '1970' )) { $y = '1970'; }&lt;br /&gt;...&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;another example from one of the files that calculate the month and day:&lt;br /&gt;&lt;br/&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;&amp;lt;?php&lt;br /&gt;      if ( (stristr ( $data[2], ' 1 January ' )) || (stristr ( $data[2], ' January 1 ' )) || (stristr ( $data[2], ' January 1,' )) ) { $m = '01'; $d = '01'; }&lt;br /&gt;      elseif ( (stristr ( $data[2], ' 2 January ' )) || (stristr ( $data[2], ' January 2 ' )) || (stristr ( $data[2], ' January 2,' )) ) { $m = '01'; $d = '02'; }&lt;br /&gt;      elseif ( (stristr ( $data[2], ' 3 January ' )) || (stristr ( $data[2], ' January 3 ' )) || (stristr ( $data[2], ' January 3,' )) ) { $m = '01'; $d = '03'; }&lt;br /&gt;      elseif ( (stristr ( $data[2], ' 4 January ' )) || (stristr ( $data[2], ' January 4 ' )) || (stristr ( $data[2], ' January 4,' )) ) { $m = '01'; $d = '04'; }&lt;br /&gt;      elseif ( (stristr ( $data[2], ' 5 January ' )) || (stristr ( $data[2], ' January 5 ' )) || (stristr ( $data[2], ' January 5,' )) ) { $m = '01'; $d = '05'; }&lt;br /&gt;      elseif ( (stristr ( $data[2], ' 6 January ' )) || (stristr ( $data[2], ' January 6 ' )) || (stristr ( $data[2], ' January 6,' )) ) { $m = '01'; $d = '06'; }&lt;br /&gt;      elseif ( (stristr ( $data[2], ' 7 January ' )) || (stristr ( $data[2], ' January 7 ' )) || (stristr ( $data[2], ' January 7,' )) ) { $m = '01'; $d = '07'; }&lt;br /&gt;      elseif ( (stristr ( $data[2], ' 8 January ' )) || (stristr ( $data[2], ' January 8 ' )) || (stristr ( $data[2], ' January 8,' )) ) { $m = '01'; $d = '08'; }&lt;br /&gt;      elseif ( (stristr ( $data[2], ' 9 January ' )) || (stristr ( $data[2], ' January 9 ' )) || (stristr ( $data[2], ' January 9,' )) ) { $m = '01'; $d = '09'; }&lt;br /&gt;      elseif ( (stristr ( $data[2], ' 10 January ' )) || (stristr ( $data[2], ' January 10 ' )) || (stristr ( $data[2], ' January 10,' )) ) { $m = '01'; $d = '10'; }&lt;br /&gt;...&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;that last code is included in 12 files one for each month. in each one i had to replace the name of the month, say &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;January&lt;/span&gt; with &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;March&lt;/span&gt; for instance; and &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;$m = '01&lt;/span&gt; ought to be replaced with &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;$m = '02&lt;/span&gt; in the case of February.&lt;br /&gt;&lt;br/&gt;those year and month/day files are included in the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;csv-add-date.php&lt;/span&gt; file using PHP's &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;include&lt;/span&gt; function.&lt;br /&gt;&lt;br/&gt;this &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;csv-add-date.php&lt;/span&gt; file basically loads the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;clean_sheet.csv&lt;/span&gt; file and adds the year, month and day before it displays the content on the screen. it &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;font-style:italic"&gt;does not write&lt;/span&gt; the content to the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;clean_sheet.csv&lt;/span&gt; file. i think i'm going to get that done in another step to another new CSV file ... in case something should go wrong again.&lt;br /&gt;&lt;br/&gt;now i can save myself a lot of time ... and boredom ... and repeat the process if necessary. this exercise has also taught me how to search through CSV files and display the results. that may be the topic of another article ...&lt;br /&gt;&lt;br/&gt;i hope that this has been of some help to PHP coders.&lt;br /&gt;&lt;br/&gt;Good Luck!&lt;br /&gt;&lt;br/&gt;tom.paine&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-8330490684404363025?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/8330490684404363025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=8330490684404363025' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/8330490684404363025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/8330490684404363025'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2009/02/php-how-to-make-amendments-to-csv-file.html' title='&lt;i style=&quot;font-family:Trebuchet MS;color:#AB0000;&quot;&gt;PHP: how to make amendments to a CSV file&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-6855615695538217633</id><published>2009-02-21T14:49:00.004+01:00</published><updated>2010-05-16T18:15:07.856+02:00</updated><title type='text'>PHP: how to delete the last line of a file?</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;i'm a little friend of MySQL, but a big friend of writing content to files, text files or csv (comma-separated-value) files. one reason is that i haven't really worked that much with MySQL. i just know the basics and have usually worked with them when setting up a forum or webshop. those scripts are readily available all across the internet.&lt;br /&gt;&lt;br/&gt;i was going to set up a table using either XML or PHP's array function with a script that would write either the XML file, or a PHP fie that i could include in another script which in turn could be used to create an XML file or simply HTML.&lt;br /&gt;&lt;br/&gt;i looked at various examples and tutorials on the internet on how to manipulate XML files with PHP, but i wasn't too happy about where the new elements would be placed in the XML document eventually.&lt;br /&gt;&lt;br/&gt;of course one of the problems would always be: how would i squeeze a new set of elements before the closing root element; or how would i get rid of the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;?&amp;gt;&lt;/span&gt; at the end of the php file i wish to include somewhere else.&lt;br /&gt;&lt;br/&gt;the basic idea i found here: &lt;a href="http://bytes.com/groups/php/11847-how-delete-last-line-file" target="_blank" style="color:#AB0000"&gt;http://bytes.com/groups/php/11847-how-delete-last-line-file&lt;/a&gt;.&lt;br /&gt;&lt;br/&gt;below is the code snippet from that page that got me going:&lt;br /&gt;&lt;br/&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;$inp = file('yourfile.name');&lt;br /&gt;$out = fopen('yourfile.name','w');&lt;br /&gt;for ($i=0;$i&amp;lt;count($inp)-1;$i++)&lt;br /&gt;fwrite($out,$inp[$i]);&lt;br /&gt;fclose($out);&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;in this particular case the information of one file is written to another file. (not 100% what i was looking for).&lt;br /&gt;&lt;br/&gt;in the end i started using this example:&lt;br /&gt;&lt;br/&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;$my_input = '$my_'.$_GET['my_number'].' = array ( $my_date =&gt; \''.$_GET['my_date'].'\', $my_city =&gt; \''.$_GET['my_city'].'\', $my_links =&gt; \''.$_GET['my_links'].'\', \'$my_update =&gt; \''.$_GET['my_update'].'\', );'."\n";&lt;br /&gt;// load the data and delete the line from the array&lt;br /&gt;$lines = file('#_MyIncludeFile.inc.php');&lt;br /&gt;$last = sizeof($lines)-1;&lt;br /&gt;unset($lines[$last]);&lt;br /&gt;&lt;br /&gt;// write the new data to the file&lt;br /&gt;$input = fopen('#_MyIncludeFile.inc.php','w');&lt;br /&gt;fwrite($input, implode('', $lines));&lt;br /&gt;fwrite($input, $my_input);&lt;br /&gt;fwrite($input, "?&gt;");&lt;br /&gt;fclose($input);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;$_GET&lt;/span&gt; variables are submitted from a form:&lt;br /&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;&amp;lt;form method="GET" action="WriteToFile.php"&amp;gt;&lt;br /&gt;&amp;lt;table&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;my my number:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type="text" name="my_number" /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;my my date:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type="text" name="my_date" /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;my my city:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type="text" name="my_city" /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;my my links:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type="text" name="my_links" /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type="hidden" name="my_update" value="&amp;lt;?=time();?&amp;gt;" /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&amp;lt;input type="submit" value="send" /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;the &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;WriteToFile.php&lt;/span&gt; file also contains this form for further input.&lt;br /&gt;&lt;br /&gt;this script writes CSV data to a PHP file which can then be used elsewhere for further analyzes.&lt;br /&gt;&lt;br /&gt;i think that says it all ... or are there any questions?&lt;br /&gt;&lt;br /&gt;Good Luck again!&lt;br /&gt;&lt;br /&gt;tom.paine&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-6855615695538217633?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/6855615695538217633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=6855615695538217633' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/6855615695538217633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/6855615695538217633'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2009/02/php-how-to-delete-last-line-of-file.html' title='&lt;i style=&quot;Trebuchet MS;color:#AB0000&quot;&gt;PHP: how to delete the last line of a file?&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-838510119651430931</id><published>2009-02-21T13:22:00.019+01:00</published><updated>2010-05-16T18:15:54.682+02:00</updated><title type='text'>"Class 'XSLTProcessor' not found"</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;the other day i was trying an example from an xsl tutorial and couldn't get it to work, instead i got the error message &lt;span style="color:#0000CD; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;"Class 'XSLTProcessor' not found"&lt;/span&gt;.&lt;br /&gt;&lt;br/&gt;here is how i solved it:&lt;br /&gt;&lt;br/&gt;first i thought my php versions were not up to date. i'm running php4 and php5 with Apache 1.3 under OS Windows XP. i downloaded the &lt;a href="http://www.php.net/downloads.php" target="_blank" style="color:AB0000;font-weight:bold;"&gt;Windows Binaries&lt;/a&gt; ZIP folders, unpacked them and placed the contents into my c:\php4 and c:\php5 directories respectively and re-started Apache. trying the example again i still got the same error message.&lt;br /&gt;&lt;br/&gt;i thought that maybe something wasn't right in the php.ini files. therefore i made a copy of the &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;php.ini-recommended&lt;/span&gt; and renamed it &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;php.ini&lt;/span&gt;. i opened the &lt;span style="font-family:Courier New, Courier;color:#0000CD;font-size:15px;font-weight:bold;"&gt;php.ini&lt;/span&gt; file with WordPad and searched the document for &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;xsl&lt;/span&gt;. the search went to the line that reads &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;;extension=php_xsl.dll&lt;/span&gt;. i uncommented that line by removing the semi-colon. now the line reads: &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;extension=php_xsl.dll&lt;/span&gt;. After re-starting the server again i tried the script example once more and still got the same error message: &lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:15px;font-weight:bold;"&gt;"Class 'XSLTProcessor' not found"&lt;/span&gt;.&lt;br /&gt;&lt;br/&gt;alright ... i was wondering which &lt;span style="font-family:Courier New, Courier;color:#0000CD;font-size:15px;font-weight:bold;"&gt;php.ini&lt;/span&gt; file php was looking at and saved the following code snippet in a file named &lt;span style="font-family:Courier New, Courier;color:#0000CD;font-size:15px;font-weight:bold;"&gt;test.php&lt;/span&gt;:&lt;br /&gt;&lt;span style="color:#AB0000; font-family:Courier New, Courier;font-size:14px;font-weight:bold;"&gt;&lt;br /&gt;&lt;br/&gt;&amp;lt;?php&lt;br /&gt;phpinfo();&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;after i ran this &lt;span style="font-family:Courier New, Courier;color:#0000CD;font-size:14px;font-weight:bold;"&gt;test.php&lt;/span&gt; file php displayed the current settings and i found that it was not looking for the &lt;span style="font-family:Courier New, Courier;color:#0000CD;font-size:14px;font-weight:bold;"&gt;php.ini&lt;/span&gt; file in the c:\php4 or c:\php5 directories at all, but in the &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;c:\WINDOWS&lt;/span&gt; directory.&lt;br /&gt;&lt;br/&gt;okay ... i looked for that &lt;span style="font-family:Courier New, Courier;color:#0000CD;font-size:14px;font-weight:bold;"&gt;php.ini&lt;/span&gt; file in the &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;c:\WINDOWS&lt;/span&gt; directory, opend the file, searched for &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;xsl&lt;/span&gt; again and made the change as described above.&lt;br /&gt;&lt;br/&gt;after re-starting the server and running the script example again, believe it or not, it still gave me that error message. things like that can become quite frustrating, especially if one tests a script in the localhost environment where it won't and at the webhosting server, where it may work.&lt;br /&gt;&lt;br/&gt;i'm not giving up so easily. i knew that the &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;xsl extension&lt;/span&gt; under windows is a &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;.dll&lt;/span&gt; file that can be found in the &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;ext dirctory&lt;/span&gt;. and i also knew that this was a feature only introduced with &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;php5&lt;/span&gt;. i checked to see if the &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;php_xsl.dll&lt;/span&gt; file existed in the &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;ext&lt;/span&gt; folder, which it did; then i went back to the php documentation to see how i would have to set up php under windows and came across this comment: &lt;a href="http://de2.php.net/manual/de/book.xsl.php#65277" target="_blank" style="color:#AB0000"&gt;http://de2.php.net/manual/de/book.xsl.php#65277&lt;/a&gt;.&lt;br /&gt;&lt;br/&gt;alright, so i had to change the path to this &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;ext&lt;/span&gt; directory.&lt;br /&gt;&lt;br/&gt;i had the &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;php.ini&lt;/span&gt; file still open (WordPad) and searched for &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;extension_dir&lt;/span&gt;. the line read:&lt;br /&gt;&lt;br/&gt;&lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;extension_dir = "./"&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;which i changed to read:&lt;br /&gt;&lt;br/&gt;&lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;extension_dir = "./ext"&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;re-starting the Apache Server one more time and running the example script once more at last i saw the expected result on the screen and could go to rest happily after all.&lt;br /&gt;&lt;br/&gt;so before someone else has to battle with this issue:&lt;br /&gt;first: check to see if the &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;php_xsl.dll&lt;/span&gt; file exists;&lt;br /&gt;second: check to see which &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;php.ini&lt;/span&gt; file you gotta change;&lt;br /&gt;third: uncomment &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;;extension=php_xsl.dll&lt;/span&gt; and change the extension directory to &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;extension_dir = "./ext"&lt;/span&gt; in the relevant &lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;php.ini&lt;/span&gt; file.&lt;br /&gt;&lt;br/&gt;&lt;span style="font-family:Courier New, Courier;color:#AB0000;font-size:15px;font-weight:bold;"&gt;... and don't forget to re-start the Apache Server!&lt;/span&gt;&lt;br /&gt;&lt;br/&gt;Good Luck!&lt;br /&gt;&lt;br/&gt;tom.paine&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-838510119651430931?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/838510119651430931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=838510119651430931' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/838510119651430931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/838510119651430931'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2009/02/class-xsltprocessor-not-found.html' title='&lt;i style=&quot;font-family:trebuchet ms;color:#AB0000;&quot;&gt;&quot;Class &apos;XSLTProcessor&apos; not found&quot;&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-4030131010384894602</id><published>2008-11-08T19:58:00.023+01:00</published><updated>2010-05-16T18:17:26.115+02:00</updated><title type='text'>A Free-Fallin' Introduction to Amazon Web Services</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;going through my old email folder the other day i came across Amazon Web Services Newsletter #3 dated 27 August 2003.&lt;br /&gt;the summaries of that newsletter are given below:&lt;pre style="color:#00AB00; font-weight:bold;"&gt;&lt;br /&gt;===========&lt;br /&gt;1. AWS News&lt;br /&gt;===========&lt;br /&gt;&lt;br /&gt;Summary&lt;br /&gt;-------&lt;br /&gt;* Product Description Returned&lt;br /&gt;* Availability in Lite Results&lt;br /&gt;* Japanese Marketplace Access&lt;br /&gt;* Japanese Search&lt;br /&gt;* UPC Search&lt;br /&gt;* Scratchpad for UK&lt;br /&gt;* RSS Feeds&lt;br /&gt;* Shopping Cart Similarities&lt;br /&gt;* ASIN Link Changes&lt;br /&gt;* Honor System Payment API Beta Test&lt;br /&gt;* SOAP Error Response&lt;br /&gt;* Proper use of International Servers&lt;br /&gt;&lt;br /&gt;=============&lt;br /&gt;2. AWS Issues&lt;br /&gt;=============&lt;br /&gt;&lt;br /&gt;Summary&lt;br /&gt;-------&lt;br /&gt;* Determining Buyability Using Availability&lt;br /&gt;* Developer Token Usage&lt;br /&gt;* Using Older Versions of AWS&lt;br /&gt;* Storing ASINs&lt;br /&gt;* NuSOAP Compatibility&lt;br /&gt;&lt;br /&gt;===================&lt;br /&gt;3. In the Community&lt;br /&gt;===================&lt;br /&gt;&lt;br /&gt;Summary&lt;br /&gt;-------&lt;br /&gt;* Discussion Board&lt;br /&gt;* Board Summary&lt;br /&gt;* Weekly Chats&lt;br /&gt;* Newsletter&lt;br /&gt;* Featured Sites and Applications&lt;br /&gt;* Press&lt;br /&gt;&lt;br /&gt;==================&lt;br /&gt;4. Tips and Tricks&lt;br /&gt;==================&lt;br /&gt;&lt;br /&gt;Summary&lt;br /&gt;-------&lt;br /&gt;* Featured style sheet&lt;br /&gt;* Featured code snippet&lt;br /&gt;* Featured tip&lt;br /&gt;* Your contributions welcome&lt;br /&gt;* Local Associates Programs&lt;/pre&gt;&lt;br /&gt;among &lt;i&gt;&lt;u&gt;Featured Sites and Applications&lt;/u&gt;&lt;/i&gt; is a link to an article for a &lt;b&gt;Mozilla tool for browing the Amazon Catalog&lt;/b&gt;:&lt;br /&gt;&lt;a href="http://www.oreillynet.com/pub/a/mozilla/2003/05/02/casestudy2.html" target="_blank" style="font-family:Courier New, Courier;color:#AB0000"&gt;&lt;b&gt;http://www.oreillynet.com/pub/a/mozilla/2003/05/02/casestudy2.html&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;today i took a look at another chapter referred to at the beginning of this &lt;i&gt;casestudy&lt;/i&gt;:&lt;br /&gt;&lt;a href="http://www.oreillynet.com/pub/a/mozilla/2002/12/17/app_dev.html" target="_blank" style="font-family:Courier New, Courier;color:#AB0000"&gt;&lt;b&gt;http://www.oreillynet.com/pub/a/mozilla/2002/12/17/app_dev.html&lt;/b&gt;&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;That same newsletter also features a link to an interesting article on &lt;i&gt;&lt;b&gt;RSS&lt;/b&gt;&lt;/i&gt; by author: &lt;i&gt;Ravikiran Muvva&lt;/i&gt; at &lt;font style="color:#AB0000;"&gt;&lt;b&gt;Code101.com&lt;/b&gt;&lt;/font&gt;:&lt;br /&gt;&lt;a href="http://www.code101.com/Code101/DisplayArticle.aspx?cid=41" target="_blank" style="font-family:Courier New, Courier;color:#AB0000"&gt;&lt;b&gt;http://www.code101.com/Code101/DisplayArticle.aspx?cid=41&lt;/b&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;going through my email archive looking for more information i discovered that this newsletter was the oldest one i'd kept. some time after that i changed my email account setup and seem to have stored everything related to &lt;i&gt;Amazon Web Services&lt;/i&gt; from newsletter #10 onwards. that means i can document quite a history on the development of &lt;i&gt;Amazon Web Services&lt;/i&gt; to the present stage.&lt;br /&gt;&lt;br /&gt;with this article i would like to guide the reader through an example of how i recently migrated a script from &lt;i&gt;Amazon Web Services 3.0&lt;/i&gt; -- which was the stage we were in on August 27th, 2003 -- to the present version &lt;i&gt;Amazon E-Commerce Service 4.0&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;on 6 February 2007 &lt;i&gt;Amazon&lt;/i&gt; informed its &lt;i&gt;Web Service Subscribers&lt;/i&gt; as follows:&lt;pre style="color:#00AB00; font-weight:bold;"&gt;&lt;br /&gt;*****************************************************************&lt;br /&gt;AMAZON ECS 3.0 SUNSET: PLEASE MIGRATE TO AMAZON ECS 4.0&lt;br /&gt;*****************************************************************&lt;br /&gt;After many years of useful service, the Amazon E-Commerce Service 3.0&lt;br /&gt;(Amazon ECS 3.0) web service will be shut down on March 31, 2008. Since&lt;br /&gt;the introduction of Amazon ECS 4.0 in late 2004 the usage of Amazon ECS 3.0&lt;br /&gt;has steadily declined as sites and applications have naturally migrated to&lt;br /&gt;Amazon ECS 4.0. In June of 2006 (Version: 2006-06-28), we achieved&lt;br /&gt;complete feature and data parity between the two services and are now&lt;br /&gt;requesting that all existing sites and applications be migrated to Amazon&lt;br /&gt;ECS 4.0 within the next 12 months. Beginning March 31, 2008, we will no&lt;br /&gt;longer be accepting Amazon ECS 3.0 requests. The existing maintenance&lt;br /&gt;effort saved by shutting down Amazon ECS 3.0 will be re-invested into&lt;br /&gt;Amazon ECS 4.0 to allow for the introduction of more features and&lt;br /&gt;capabilities.&lt;/pre&gt;Let's take a look at Chapter 6 from Paul Bausch's &lt;i&gt;Amazon Hacks&lt;/i&gt; Book:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=0596005423&amp;templates=us&amp;locale=us" target="_blank"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/41Q8SjJoQAL._SL160_.jpg" border="0" alt="Amazon Hacks" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.freeopenbook.com/amazon-hacks/amazonhks-chp-6-sect-14.html" target="_blank" style="font-family:Courier New, Courier;color:#AB0000"&gt;&lt;b&gt;Hack 80 Program AWS with Perl&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;below is the original code listing:&lt;pre style="font-weight:bold;color:#000000;"&gt;#!/usr/bin/perl&lt;br /&gt;# amazon_http.pl&lt;br /&gt;# A typical Amazon Web API Perl script using the XML/HTTP interface&lt;br /&gt;# Usage: amazon_http.pl &amp;lt;keyword&amp;gt;&lt;br /&gt;&lt;br /&gt;#Your Amazon developer's token&lt;br /&gt;my $dev_key='insert developer token';&lt;br /&gt;&lt;br /&gt;#Your Amazon affiliate code&lt;br /&gt;my $af_tag='insert associate tag';&lt;br /&gt;&lt;br /&gt;#Take the keyword from the command-line&lt;br /&gt;my $keyword =shift @ARGV or die "Usage:perl amazon_http.pl &amp;lt;keyword&amp;gt;\n";&lt;br /&gt;&lt;br /&gt;#Assemble the URL&lt;br /&gt;my $url = "http://xml.amazon.com/onca/xml3?t=" . $af_tag . "&amp;dev-t=" . $dev_key . "&amp;type=lite&amp;f=xml&amp;mode=books&amp;" . "KeywordSearch=" . $keyword;&lt;br /&gt;&lt;br /&gt;use strict;&lt;br /&gt;&lt;br /&gt;#Use the XML::Parser  and LWP::Simple Perl modules&lt;br /&gt;use XML::Simple;&lt;br /&gt;use LWP::Simple;&lt;br /&gt;&lt;br /&gt;my $content = get($url);&lt;br /&gt;die "Could not retrieve $url" unless $content;&lt;br /&gt;&lt;br /&gt;my $xmlsimple = XML::Simple-&gt;new(  );&lt;br /&gt;my $response = $xmlsimple-&gt;XMLin($content);&lt;br /&gt;&lt;br /&gt;foreach my $result (@{$response-&gt;{Details}}){&lt;br /&gt;    #Print out the main bits of each result&lt;br /&gt;    print&lt;br /&gt;    join "\n",&lt;br /&gt;    $result-&gt;{ProductName}||"no title",&lt;br /&gt;    "ASIN: " . $result-&gt;{Asin} . ", " .&lt;br /&gt;    $result-&gt;{OurPrice} . "\n\n";&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;as we can see this code is meant to be used from the command line. however, i wanted to execute this code from my host's server using my browser. therefore i changed the following line from&lt;pre style="font-weight:bold;color:#000000;"&gt;#Take the keyword from the command-line&lt;br /&gt;my $keyword =shift @ARGV or die "Usage:perl amazon_http.pl \n";&lt;/pre&gt;to&lt;pre style="font-weight:bold;color:#000000;"&gt;#Take the keyword from the command-line&lt;br /&gt;my $keyword = 'Bob%20Dylan';&lt;br /&gt;&lt;/pre&gt;now my code looks like this:&lt;pre style="font-weight:bold;color:#000000;"&gt;#!/usr/bin/perl -w&lt;br /&gt;# amazon_http.pl&lt;br /&gt;# A typical Amazon Web API Perl script using the XML/HTTP interface&lt;br /&gt;# Usage: amazon_http.pl &amp;lt;keyword&amp;gt;&lt;br /&gt;&lt;br /&gt;BEGIN {&lt;br /&gt;$| = 1;&lt;br /&gt;open (STDERR, "&gt;&amp;STDOUT");&lt;br /&gt;print qq~Content-type: text/html\n\n~;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#Your Amazon developer's token&lt;br /&gt;my $dev_key='D23VNPYO8ODZL6';&lt;br /&gt;&lt;br /&gt;#Your Amazon affiliate code&lt;br /&gt;my $af_tag='downinthefloo-20';&lt;br /&gt;&lt;br /&gt;#Take the keyword from the command-line&lt;br /&gt;my $keyword = 'Bob%20Dylan';&lt;br /&gt;&lt;br /&gt;#Assemble the URL&lt;br /&gt;my $url = "http://xml.amazon.com/onca/xml3?t=" . $af_tag . "&amp;dev-t=" . $dev_key . "&amp;type=lite&amp;f=xml&amp;mode=books&amp;" . "KeywordSearch=" . $keyword;&lt;br /&gt;&lt;br /&gt;print "&amp;lt;a href=\"".$url."\" target=\"new\"&amp;gt;The Request&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;";&lt;br /&gt;&lt;br /&gt;use strict;&lt;br /&gt;&lt;br /&gt;#Use the XML::Parser  and LWP::Simple Perl modules&lt;br /&gt;use XML::Simple;&lt;br /&gt;use LWP::Simple;&lt;br /&gt;&lt;br /&gt;my $content = get($url);&lt;br /&gt;die "Could not retrieve $url" unless $content;&lt;br /&gt;&lt;br /&gt;my $xmlsimple = XML::Simple-&gt;new(  );&lt;br /&gt;my $response = $xmlsimple-&gt;XMLin($content);&lt;br /&gt;&lt;br /&gt;foreach my $result (@{$response-&gt;{Details}}){&lt;br /&gt;    #Print out the main bits of each result&lt;br /&gt;    print&lt;br /&gt;    join "\n",&lt;br /&gt;    $result-&gt;{ProductName}||"no title",&lt;br /&gt;    "ASIN: " . $result-&gt;{Asin} . ", " .&lt;br /&gt;    $result-&gt;{OurPrice} . "\n\n";&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;other differences to the original code snippet are:&lt;br /&gt;a) use of the &lt;i&gt;Warning&lt;/i&gt; switch &lt;b&gt;-w&lt;/b&gt;;&lt;br /&gt;b) use of a code snippet that will allow me to display the details of a possible error 500 message if there is any;&lt;br /&gt;c) inclusion of a link to Amazon's xml document in case of:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ca) no items being displayed;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;cb) an error message being displayed;&lt;br /&gt;&lt;br /&gt;alright: the script has been uploaded to the cgi-bin folder on the server and we are able to access the script using our preferred browser: &lt;b&gt;http://localhost/cgi-bin/amazon_http_old.pl&lt;/b&gt; (i added &lt;i&gt;_old&lt;/i&gt; to the file name since i know it's not gonna work and i got a new version ready to go :-) )&lt;br /&gt;&lt;br /&gt;running the script will display the following error message:&lt;br /&gt;&lt;pre style="color:#AB0000;font-weight:bold;"&gt;&lt;a href="http://xml.amazon.com/onca/xml3?t=downinthefloo-20&amp;dev-t=D23VNPYO8ODZL6&amp;type=lite&amp;f=xml&amp;mode=books&amp;KeywordSearch=Bob%20Dylan" target="_blank"&gt;The Request&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Could not retrieve http://xml.amazon.com/onca/xml3?t=downinthefloo-20&amp;dev-t=D23VNPYO8ODZL6&amp;type=lite&amp;f=xml&amp;mode=books&amp;KeywordSearch=Bob%20Dylan at PATH/TO/htdocs/cgi-bin/amazon_http_old.pl line 33.&lt;/pre&gt;where &lt;a href="http://xml.amazon.com/onca/xml3?t=downinthefloo-20&amp;dev-t=D23VNPYO8ODZL6&amp;type=lite&amp;f=xml&amp;mode=books&amp;KeywordSearch=Bob%20Dylan" target="_blank"&gt;&lt;b&gt;The Request&lt;/b&gt;&lt;/a&gt; is an active link to Amazon's xml document:&lt;br /&gt;&lt;br /&gt;once we click on that link to see what went wrong we are being re-directed to an error page:&lt;br /&gt;&lt;pre style="font-weight:bold;"&gt;&lt;a href="http://www.amazon.com/" target="_blank"&gt;&lt;img src="http://g-images.amazon.com/images/G/01/icons/amazon-logo.gif" border="0" alt="Amazon.com" /&gt;&lt;/a&gt;&lt;br /&gt;We're Sorry - Service Gone&lt;br /&gt;&lt;br /&gt;Amazon Ecommerce Web Service 3.0 has been deprecated after many years of useful service&lt;br /&gt;on March 31st 2008. Please upgrade to the Amazon Associates Web Service 4.0 as detailed&lt;br /&gt;in the &lt;a href="http://developer.amazonwebservices.com/connect/entry.jspa?categoryID=12&amp;externalID=627" target="_blank"&gt;migration guide&lt;/a&gt;. Please visit &lt;a href="http://developer.amazonwebservices.com/connect/forum.jspa?forumID=9&amp;start=0" target="_blank"&gt;Amazon Associates Web Service Developer Forum&lt;/a&gt; for more&lt;br /&gt;information. If you came to this page from an RSS feed, visit &lt;a href="http://www.amazon.com/b/?ie=UTF8&amp;node=390052011" target="_blank"&gt;Amazon's Product RSS Feeds&lt;/a&gt;&lt;br /&gt;page for an upgrade.&lt;/pre&gt;visiting the migration guide we can quickly detect a few things that have changed; for instance: the base url:&lt;br /&gt;&lt;pre style="color:#AB0000;font-weight:bold;"&gt;http://xml.amazon.com/onca/xml3&lt;/pre&gt;would now be&lt;pre style="color:#00AB00;font-weight:bold;"&gt;http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&lt;/pre&gt;the Developer Token (&lt;b style="color:#AB0000;"&gt;dev-t&lt;/b&gt;) has now become the &lt;b style="color:#00AB00;"&gt;AWSAccessKeyId&lt;/b&gt;;&lt;br /&gt;the search "&lt;b style="color:#AB0000;"&gt;mode&lt;/b&gt;" would now be a &lt;b style="color:#00AB00;"&gt;SearchIndex&lt;/b&gt; value;&lt;br /&gt;the request "&lt;b style="color:#AB0000;"&gt;type&lt;/b&gt;" has in the past been &lt;b style="color:#AB0000;"&gt;lite&lt;/b&gt; or &lt;b style="color:#AB0000;"&gt;heavy&lt;/b&gt;;&lt;br /&gt;the xml feed result would display more details with the &lt;b style="color:#AB0000;"&gt;heavy&lt;/b&gt; type than with the &lt;b style="color:#AB0000;"&gt;lite&lt;/b&gt; type.&lt;br /&gt;this request parameter is now being named "&lt;b style="color:#AB0000;"&gt;ResponseGroup&lt;/b&gt;" and allows for a number of various feed results.&lt;br /&gt;the main &lt;b style="color:#AB0000;"&gt;ResponseGroup&lt;/b&gt;s are &lt;b style="color:#AB0000;"&gt;Small&lt;/b&gt;, &lt;b style="color:#AB0000;"&gt;Medium&lt;/b&gt; and &lt;b style="color:#AB0000;"&gt;Large&lt;/b&gt;.&lt;br /&gt;to be on the safe side when we now alter our request url we are going to use &lt;b style="color:#AB0000;"&gt;&amp;ResponseGroup=Large&lt;/b&gt;.&lt;br /&gt;i should mention here that all those terms are case-sensitive.&lt;br /&gt;when we go back to our migration guide once again for the &lt;b style="color:#AB0000;"&gt;KeywordSearch&lt;/b&gt; paramter we find now that Amazon states two values instead of just one: &lt;b style="color:#00AB00;"&gt;SearchIndex, Keywords&lt;/b&gt;; this means for a &lt;b style="color:#AB0000;"&gt;KeywordSearch&lt;/b&gt; we also require the &lt;b style="color:#00AB00;"&gt;SearchIndex&lt;/b&gt; value; since our &lt;b style="color:#AB0000;"&gt;mode&lt;/b&gt; was &lt;b&gt;books&lt;/b&gt;, our &lt;b style="color:#00AB00;"&gt;SearchIndex&lt;/b&gt; should be &lt;b&gt;Books&lt;/b&gt; (in this case with a capital 'B'), also the &lt;b style="color:#00AB00;"&gt;SearchIndex&lt;/b&gt; values are case-sensitive. furthermore, these &lt;b style="color:#00AB00;"&gt;SearchIndices&lt;/b&gt; vary from country to country (&lt;i&gt;locale&lt;/i&gt; to &lt;i&gt;locale&lt;/i&gt;).&lt;br /&gt;our parameters now look like this: &lt;b style="color:#AB0000;"&gt;&amp;SearchIndex=Books&amp;Keywords=Bob%20Dylan&lt;/b&gt;. with ECS 4.0 two further parameters have been introduced, of which the first one (&lt;b style="color:#00AB00;"&gt;Operation&lt;/b&gt;) is required, the second one (&lt;b style="color:#00AB00;"&gt;Version&lt;/b&gt;) is not obligatory.&lt;br /&gt;to lookup the details of a single item we would use the parameter &lt;b style="color:#00AB00;"&gt;&amp;Operation=ItemLookup&lt;/b&gt;; however, we would need the &lt;b style="color:#AB0000;"&gt;ASIN&lt;/b&gt; or &lt;b style="color:#AB0000;"&gt;ISBN&lt;/b&gt; number of that item, but since we do not know such a number yet we will use the &lt;b style="color:#00AB00;"&gt;&amp;Operation=ItemSearch&lt;/b&gt; parameter.&lt;br /&gt;&lt;br /&gt;Amazon is continually adding features for making ECS requests. recently, for example, they have added links to add items to a WishList, Baby-, or WeddingRegistry, or to Tell-A-Friend to their xml response documents. sometimes when they have added a new product range to a particular locale it may be added to the list of available &lt;b style="color:#00AB00;"&gt;SearchIndex&lt;/b&gt; values. to use these added features it may be necessary to add the paramter &lt;b style="color:#00AB00;"&gt;&amp;Version=2008-08-19&lt;/b&gt; to the request url.&lt;br /&gt;&lt;br /&gt;here you may find the &lt;a href="http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/" target="_blank"&gt;&lt;b&gt;latest Developer Guide&lt;/b&gt;&lt;/a&gt; with many more details than i would be able to cover within this article.&lt;br /&gt;&lt;br /&gt;it looks like we can now start to assemble our new request url:&lt;br /&gt;&lt;br /&gt;well, i forgot about the associate id: in the past that used to be just "&lt;b style="color:#AB0000;"&gt;t&lt;/b&gt;"; that has now become: "&lt;b style="color:#AB0000;"&gt;AssociateTag&lt;/b&gt;".&lt;pre style="font-weight:bold;color:#000000;"&gt;&lt;br /&gt;http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&lt;br /&gt;&amp;AssociateTag=downinthefloo-20&lt;br /&gt;&amp;AWSAccessKeyId=1BZ9VRA5AKNBPYJM6YR2&lt;br /&gt;&amp;Operation=ItemSearch&lt;br /&gt;&amp;SearchIndex=Books&lt;br /&gt;&amp;ResponseGroup=Large&lt;br /&gt;&amp;Keywords=Bob%20Dylan&lt;br /&gt;&lt;/pre&gt;let's see if this request will give us a new xml feed document (try this link): &lt;a href="http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&amp;AssociateTag=downinthefloo-20&amp;AWSAccessKeyId=1BZ9VRA5AKNBPYJM6YR2&amp;Operation=ItemSearch&amp;SearchIndex=Books&amp;ResponseGroup=Large&amp;Keywords=Bob%20Dylan" target="_blank"&gt;&lt;b&gt;The Request&lt;/b&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;it worked: this time we see no error message but the xml feed document we expected and can now analyze the elements we need within the &lt;b style="color:#AB0000;"&gt;foreach&lt;/b&gt; loop of our script in order to display some items in our browser window:&lt;br /&gt;&lt;br /&gt;here are the details i have chosen for my short example:&lt;pre style="font-weight:bold;color:#000000;"&gt;&lt;br /&gt;foreach my $result (@{$response-&gt;{Items}-&gt;{Item}}){&lt;br /&gt;    #Print out the main bits of each result&lt;br /&gt;    print&lt;br /&gt;    join&lt;br /&gt;    "\n",&lt;br /&gt;    "&amp;lt;a href=\"".$result-&gt;{LargeImage}-&gt;{URL}."\" target=\"image\"&amp;gt;&amp;lt;img src=\"".$result-&gt;{MediumImage}-&gt;{URL},"\" border=\"0\" alt=\"".$result-&gt;{ItemAttributes}-&gt;{Title}."\"&amp;gt;&amp;lt;/a&amp;gt;",&lt;br /&gt;    "&amp;lt;br&amp;gt;Title: ".$result-&gt;{ItemAttributes}-&gt;{Title},&lt;br /&gt;    "&amp;lt;br&amp;gt;Author: ".$result-&gt;{ItemAttributes}-&gt;{Author},&lt;br /&gt;    "&amp;lt;br&amp;gt;Binding: ".$result-&gt;{ItemAttributes}-&gt;{Binding},&lt;br /&gt;    "&amp;lt;br&amp;gt;ASIN: ".$result-&gt;{ASIN},&lt;br /&gt;    "&amp;lt;br&amp;gt;Price: ".$result-&gt;{ItemAttributes}-&gt;{ListPrice}-&gt;{FormattedPrice} || "price unavailable",&lt;br /&gt;    "&amp;lt;br&amp;gt;&amp;lt;a href=\"".$result-&gt;{DetailPageURL}."\" target=\"_blank\"&amp;gt;buy now&amp;lt;/a&amp;gt;&amp;lt;hr&amp;gt;",&lt;br /&gt;    "&amp;lt;br&amp;gt;\n\n";&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;my complete code example now looks as follows:&lt;pre style="font-weight:bold;color:#000000;"&gt;&lt;br /&gt;#!/usr/bin/perl&lt;br /&gt;# amazon_http.pl&lt;br /&gt;# A typical Amazon Web API Perl script using the XML/HTTP interface&lt;br /&gt;# Usage: amazon_http.pl &amp;lt;keyword&amp;gt;&lt;br /&gt;&lt;br /&gt;#Your Amazon developer's token&lt;br /&gt;my $dev_key='1BZ9VRA5AKNBPYJM6YR2';&lt;br /&gt;&lt;br /&gt;#Your Amazon affiliate code&lt;br /&gt;my $af_tag='downinthefloo-20';&lt;br /&gt;&lt;br /&gt;#Take the keyword from the command-line&lt;br /&gt;my $keyword = 'Bob%20Dylan';&lt;br /&gt;&lt;br /&gt;#Assemble the URL&lt;br /&gt;my $url = "http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&amp;AssociateTag=" . $af_tag . "&amp;AWSAccessKeyId=" . $dev_key . "&amp;Operation=ItemSearch&amp;SearchIndex=Books&amp;&amp;Keywords=" . $keyword . "&amp;ResponseGroup=Large";&lt;br /&gt;&lt;br /&gt;print "&amp;lt;a href=\"".$url."\" target=\"new\"&amp;gt;The Request&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;";&lt;br /&gt;&lt;br /&gt;use strict;&lt;br /&gt;&lt;br /&gt;#Use the XML::Parser  and LWP::Simple Perl modules&lt;br /&gt;use XML::Simple;&lt;br /&gt;use LWP::Simple;&lt;br /&gt;&lt;br /&gt;my $content = get($url);&lt;br /&gt;die "Could not retrieve $url" unless $content;&lt;br /&gt;&lt;br /&gt;my $xmlsimple = XML::Simple-&gt;new(  );&lt;br /&gt;my $response = $xmlsimple-&gt;XMLin($content);&lt;br /&gt;foreach my $result (@{$response-&gt;{Items}-&gt;{Item}}){&lt;br /&gt;    #Print out the main bits of each result&lt;br /&gt;    print&lt;br /&gt;    join&lt;br /&gt;    "\n",&lt;br /&gt;    "&amp;lt;a href=\"".$result-&gt;{LargeImage}-&gt;{URL}."\" target=\"image\"&amp;gt;&amp;lt;img src=\"".$result-&gt;{MediumImage}-&gt;{URL},"\" border=\"0\" alt=\"".$result-&gt;{ItemAttributes}-&gt;{Title}."\"&amp;gt;&amp;lt;/a&amp;gt;",&lt;br /&gt;    "&amp;lt;br&amp;gt;Title: ".$result-&gt;{ItemAttributes}-&gt;{Title},&lt;br /&gt;    "&amp;lt;br&amp;gt;Author: ".$result-&gt;{ItemAttributes}-&gt;{Author},&lt;br /&gt;    "&amp;lt;br&amp;gt;Binding: ".$result-&gt;{ItemAttributes}-&gt;{Binding},&lt;br /&gt;    "&amp;lt;br&amp;gt;ASIN: ".$result-&gt;{ASIN},&lt;br /&gt;    "&amp;lt;br&amp;gt;Price: ".$result-&gt;{ItemAttributes}-&gt;{ListPrice}-&gt;{FormattedPrice} || "price unavailable",&lt;br /&gt;    "&amp;lt;br&amp;gt;&amp;lt;a href=\"".$result-&gt;{DetailPageURL}."\" target=\"_blank\"&amp;gt;buy now&amp;lt;/a&amp;gt;&amp;lt;hr&amp;gt;",&lt;br /&gt;    "&amp;lt;br&amp;gt;\n\n";&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;at last you can see what the result of this short script will look like on the screen:&lt;br /&gt;&lt;a href="http://www.downintheflood.com/cgi-bin/amazon_http.pl" target="_blank"&gt;http://www.downintheflood.com/cgi-bin/amazon_http.pl&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;hope you enjoyed this rather short example from a long article!&lt;br /&gt;&lt;br /&gt;tom.paine&lt;br /&gt;&lt;br/&gt;&lt;hr style="color:#AB0000;border:1px dashed;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-4030131010384894602?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/4030131010384894602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=4030131010384894602' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/4030131010384894602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/4030131010384894602'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2008/11/free-fallin-introduction-to-amazon-web.html' title='&lt;i  style=&quot;font-family:trebuchet ms;color:#AB0000;&quot;&gt;A Free-Fallin&apos; Introduction to Amazon Web Services&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-7416264569834677878</id><published>2008-05-08T18:07:00.012+02:00</published><updated>2009-02-04T20:23:56.763+01:00</updated><title type='text'>The Wish List Widget</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;today the &lt;i&gt;Wish List Widget&lt;/i&gt; has officially been published: visit &lt;a href="http://www.downintheflood.com/ECS/wishlist/index.php" target="_blank" style="font-family:Courier New, Courier;color:#CC0000"&gt;&lt;b&gt;downintheflood.com&lt;/b&gt;&lt;/a&gt; or &lt;a href="http://www.downintheflood.com/outlawblues/ECS/wishlist/index.php" target="_blank" style="font-family:Courier New, Courier;color:#CC0000"&gt;&lt;b&gt;outlawblues.de&lt;/b&gt;&lt;/a&gt;. one issue that wasn't mentioned in the process are the css style details used to display the Wish List on the right side of the screen, so i just decided to write about them here:&lt;br /&gt;&lt;br /&gt;first i would like to display the external stylesheet used to display the Wish List as seen at the above two links:&lt;br /&gt;&lt;font style="font-family:Courier New, Courier;font-size:12px;color:#0000cc"&gt;&lt;br /&gt;#wishlist_div&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{position:absolute;&amp;nbsp;top:0;&amp;nbsp;right:0;}&lt;br /&gt;#wishlist_img&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{font-family:Arial,&amp;nbsp;Helvetica,&amp;nbsp;sans-serif;&amp;nbsp;font-size:10px;&amp;nbsp;color:#CC0000;}&lt;br /&gt;#wishlist_price&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{font-family:Arial,&amp;nbsp;Helvetica,&amp;nbsp;sans-serif;&amp;nbsp;font-size:10px;&amp;nbsp;color:#0000FF;}&lt;br /&gt;#wishlist_product&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{font-family:Arial,&amp;nbsp;Helvetica,&amp;nbsp;sans-serif;&amp;nbsp;font-size:11px;&amp;nbsp;color:#0000FF;}&lt;br /&gt;a#wishlist_ahref:link&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{color:#CC0000;&amp;nbsp;font-family:Tahoma,&amp;nbsp;sans-serif,&amp;nbsp;Arial;&amp;nbsp;font-size:11px;&amp;nbsp;text-decoration:none;}&lt;br /&gt;a#wishlist_ahref:hover&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{color:#CC0000;&amp;nbsp;font-family:Tahoma,&amp;nbsp;sans-serif,&amp;nbsp;Arial;&amp;nbsp;font-size:11px;&amp;nbsp;text-decoration:underline;}&lt;br /&gt;a#wishlist_ahref:active&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{color:#FFFF00;&amp;nbsp;font-family:Tahoma,&amp;nbsp;sans-serif,&amp;nbsp;Arial;&amp;nbsp;font-size:11px;&amp;nbsp;text-decoration:underline;}&lt;br /&gt;a#wishlist_ahref:visited&amp;nbsp;&amp;nbsp;&amp;nbsp;{color:#FF0000;&amp;nbsp;font-family:Tahoma,&amp;nbsp;sans-serif,&amp;nbsp;Arial;&amp;nbsp;font-size:11px;&amp;nbsp;text-decoration:underline;}&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;you may notice that the styles all consist of a id for &lt;i&gt;wishlist&lt;/i&gt;. this has been done to avoid any conflict with existing CMS styles. in addition to that wishlist links are being referred to with the id &lt;i&gt;wishlist_ahref&lt;/i&gt;; similarily the &lt;i&gt;wishlist_div&lt;/i&gt; and &lt;i&gt;wishlist_img&lt;/i&gt; id's refer to the relevant &lt;i&gt;&amp;lt;div&amp;gt;&lt;/i&gt; and &lt;i&gt;&amp;lt;img&amp;gt;&lt;/i&gt; elements. there are several more: the following css styles display all the available id's that can be used in conjunction with the Wish List Widget; either from an external css file of from within the html page:&lt;br /&gt;&lt;font style="font-family:Courier New, Courier;font-size:12px;color:#0000CC;"&gt;&lt;br /&gt;@charset&amp;nbsp;"utf-8";&lt;br /&gt;a#wishlist_ahref:link&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;font-weight:bold;&amp;nbsp;text-decoration:none;&amp;nbsp;color:#000066;&amp;nbsp;}&lt;br /&gt;a#wishlist_ahref:visited&amp;nbsp;{&amp;nbsp;font-weight:bold;&amp;nbsp;text-decoration:none;&amp;nbsp;color:#003366;&amp;nbsp;}&lt;br /&gt;a#wishlist_ahref:hover&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;text-decoration:underline;&amp;nbsp;color:#AB0000;&amp;nbsp;}&lt;br /&gt;a#wishlist_ahref:active&amp;nbsp;&amp;nbsp;{&amp;nbsp;text-decoration:underline;&amp;nbsp;color:#CC0000;&amp;nbsp;}&lt;br /&gt;#wishlist_div&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;background-color:#339A99;&amp;nbsp;width:355px;&amp;nbsp;font-family:Trebuchet&amp;nbsp;MS,&amp;nbsp;Verdana,&amp;nbsp;Tahoma,&amp;nbsp;sans-serif;&amp;nbsp;font-size:8pt;&amp;nbsp;position:absolute;&amp;nbsp;top:0px;&amp;nbsp;left:0px;&amp;nbsp;}&lt;br /&gt;#wishlist_img&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;background-color:#0000FF;&amp;nbsp;padding-top:5px;&amp;nbsp;padding-bottom:3px;&amp;nbsp;padding-left:8px;&amp;nbsp;padding-right:15px;&amp;nbsp;}&lt;br /&gt;#wishlist_list_price&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;color:#990000;&amp;nbsp;}&lt;br /&gt;#wishlist_price&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;color:#AB0000;&amp;nbsp;font-size:10pt;}&lt;br /&gt;#wishlist_product&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;background-color:#CC0000;&amp;nbsp;color:#F6F6F6;&amp;nbsp;font-size:10pt;&amp;nbsp;font-weight:bold;&amp;nbsp;}&lt;br /&gt;#wishlist_table&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;background-color:#FFFF80;&amp;nbsp;width:250px;&amp;nbsp;padding:5px;&amp;nbsp;}&lt;br /&gt;#wishlist_td_img&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;background-color:#CC00CC;&amp;nbsp;width:150px;&amp;nbsp;padding:5px;&amp;nbsp;text-align:center;&amp;nbsp;}&lt;br /&gt;#wishlist_td_product&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;background-color:#FFFFFF;&amp;nbsp;width:150px;&amp;nbsp;padding:0px;&amp;nbsp;}&lt;br /&gt;#wishlist_your_price&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;color:#0000FF;&amp;nbsp;}&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;to see what the colorful layout looks like when the above styles are being used take a look at &lt;a href="http://www.downintheflood.com/amazon-ecs-test/sample10.html" target="_blank" style="font-family:Courier New, Courier;font-size:12px;color:#CC0000;"&gt;&lt;b&gt;Mr Rat's Wishlist&lt;/b&gt;&lt;/a&gt;; if you think that i may have overdone it somewhat on the colors, it is obvious that this has only been done so for demonstration purposes. take special note of the &lt;font style="font-family:Courier New, Courier;font-size:12px;color:#CC0000;"&gt;&lt;b&gt;@charset "utf-8";&lt;/b&gt;&lt;/font&gt; on the first line of this css style section!&lt;br /&gt;&lt;br /&gt;the JavaScript uses PHP in the background to retrieve the Wish List from Amazon's server by making use of Amazon Associates Web Services features. the XML result returned by Amazon is utf-8 encoded, thus the page needs to be utf-8 encoded in order to display special characters properly.&lt;br /&gt;&lt;br /&gt;if you use&lt;br /&gt;&lt;font style="font-family:Courier New, Courier;font-size:12px;color:#0000cc"&gt;&lt;br /&gt;#wishlist_div&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{position:absolute;&amp;nbsp;top:0;&amp;nbsp;left:0;}&lt;/font&gt;  &lt;br /&gt;&lt;br /&gt;from the first css example, instead of&lt;br /&gt;&lt;font style="font-family:Courier New, Courier;font-size:12px;color:#0000cc"&gt;&lt;br /&gt;#wishlist_div&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{position:absolute;&amp;nbsp;top:0;&amp;nbsp;right:0;}&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;it will display the Wish List Widget on the left side of the screen instead of the right side;&lt;br /&gt;&lt;br /&gt;from the optical point of view it looks better to have the image to the left side when the Widget is displayed on the left side of the screen, and on the right side should the Widget be displayed on the right side of the screen. that's why there is a choice in the setup file to choose between left and right; two separate PHP files are being used to display it so.&lt;br /&gt;&lt;br /&gt;some users may have a question about the &lt;i&gt;slot(s)&lt;/i&gt;; i called them that for lack of a better explanation. it's a kind of a place to fit in. if a growing number of users should implement the Widget on their websites, the demand on one file could slow down the Widget to show up, especially since the information has first to be gathered from Amazon's servers. that's why i have spread the files over altogether 52 directories, 26 on each site mentioned above so people can choose a different site or directory and it will not all come out of one pot. there's no other purpose than that. besides that: Amazon has made it obligatory that one can make only 1 request to their servers per second; that means the request &lt;i&gt;sleeps&lt;/i&gt; for a sec before being processed.&lt;br /&gt;&lt;br /&gt;i guess that's all that's gotta be said about this project besides what's already been mentioned elsewhere, if so. ... the story continues ...&lt;br /&gt;&lt;br /&gt;tom.paine&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-7416264569834677878?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/7416264569834677878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=7416264569834677878' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/7416264569834677878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/7416264569834677878'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2008/05/wish-list-widget.html' title='&lt;i&gt;The Wish List Widget&lt;/i&gt;'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-4714377610776647073</id><published>2008-04-24T19:35:00.006+02:00</published><updated>2008-04-24T20:16:49.677+02:00</updated><title type='text'>AJAX: Online-Editor</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;in today's article i would like to introduce the reader to the AJAX: Online-Editor which i mentioned in yesterday's post referring to the book &lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemSearch&amp;Keywords=Praxiswissen+Ajax&amp;SearchIndex=Books" target="blog"&gt;&lt;font style="font-family: Courier New, Courier;font-size:14px;color:red"&gt;&lt;b&gt;Praxiswissen Ajax&lt;/b&gt;&lt;/font&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;since the book and the source code are in german i translated it (hopefully all of it) into english and made it available for download at &lt;a href="http://www.downintheflood.com/download/ajax-online-editor.zip" target="blog"&gt;&lt;font style="font-family: Courier New, Courier;font-size:14px;color:red"&gt;&lt;b&gt;http://www.downintheflood.com/download/ajax-online-editor.zip&lt;/b&gt;&lt;/font&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;you can see it also online at: &lt;a href="http://www.downintheflood.com/source/ajax/" target="blog"&gt;&lt;font style="font-family: Courier New, Courier;font-size:14px;color:red"&gt;&lt;b&gt;http://www.downintheflood.com/source/ajax/&lt;/b&gt;&lt;/font&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;however, in order to avoid people entering or deleting any code or files, or adding files with content that i wouldn't want there i have removed the &lt;font style="font-family: Courier New, Courier;font-size:14px;color:blue"&gt;&lt;b&gt;[New File]&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;[Save File]&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;[Save As ...]&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;[Delete File]&lt;/b&gt;&lt;/font&gt; buttons from my online application. furthermore i have set the &lt;i&gt;textarea&lt;/i&gt; field on the right to &lt;i&gt;readonly&lt;/i&gt;. just the &lt;font style="font-family: Courier New, Courier;font-size:14px;color:blue"&gt;&lt;b&gt;[update]&lt;/b&gt;&lt;/font&gt; button works.&lt;br /&gt;&lt;br /&gt;but i won't leave you that much in the dark here, i have created a few screenshots so you can roughly see what it looks like. if you are going to use it online you should, however, keep the folder contents in a password protected area where those users whom you'd grant access to the application will have the liberty to create, alter or delete files.&lt;br /&gt;&lt;br /&gt;the first screen shot shows the layout of the page as it comes up on the screen the first time, that is, when you load the index.html into your browser &lt;i&gt;(the application requires PHP4)&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.downintheflood.com/echolog/Bild23.jpg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;once you have clicked on a file name on the left side of the screen, the content of that file shows up in the &lt;i&gt;textarea&lt;/i&gt; element on the right side of the screen as seen below:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.downintheflood.com/echolog/Bild24.jpg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;if you want to delete a file an alert message asks you if you really want to delete this file:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.downintheflood.com/echolog/Bild25.jpg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;if you confirm the &lt;i&gt;O.K.&lt;/i&gt; the contents will be removed from the screen, the file will be removed from the file list on the left and a message appears in the status bar at the bottom of the editor that the file has been deleted:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.downintheflood.com/echolog/Bild26.jpg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;with the last screenshot i wanted to display the error message that comes up when the client (browser) is unable to load the list from the server. the browsers behave differently, Firefox pops up an alert window while Internet Explorer will show the yellow warning triangle on the bottom left of the screen. here is the screenshot with the blank editor unable to load the files:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.downintheflood.com/echolog/Bild27.jpg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;i changed the layout somewhat from the original layout. the original is smaller. i also changed the color setting of the original layout. if you want to use the smaller version you can download the &lt;a href="http://www.downintheflood.com/source/ajax/css/styles_small.css" target="blog"&gt;&lt;font style="font-family: Courier New, Courier;font-size:14px;color:red"&gt;&lt;b&gt;stylesheet at this link&lt;/b&gt;&lt;/font&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;now i hope you'll enjoy this little &lt;i&gt;toy&lt;/i&gt; and learn about &lt;i&gt;AJAX&lt;/i&gt; by studying the code in greater detail and using it perhaps in other applications.&lt;br /&gt;&lt;br /&gt;until then.&lt;br /&gt;&lt;br /&gt;tom.paine&lt;br /&gt;&lt;hr style="border:1px dashed red"/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-4714377610776647073?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/4714377610776647073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=4714377610776647073' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/4714377610776647073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/4714377610776647073'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2008/04/ajax-online-editor.html' title='AJAX: Online-Editor'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-3808284883203466514</id><published>2008-04-23T20:54:00.009+02:00</published><updated>2008-04-24T20:13:15.258+02:00</updated><title type='text'>JavaScript ... PHP Array sorting plus ...</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;after i've spent several hours last sunday always battling to insert the code snippets into this blog without having a special facility to show code content i decided to upload one of the old source viewer scripts that i had in my archive and use links to the source viewer in future to highlight the code examples ... unless they are less complex.&lt;br /&gt;&lt;br /&gt;in today's article i would like to take a brief look at JavaScript examples as well as the various effects of sorting an &lt;font style="font-family:Courier New, Courier;font-size:12px;font-weight:bold"&gt;array&lt;/font&gt; with php.&lt;br /&gt;&lt;br /&gt;let me start with the php examples, because they are all ready for take off:&lt;br /&gt;the results of &lt;a href="http://www.downintheflood.com/source/source.php?useurl=http%3A%2F%2Fwww.downintheflood.com%2Fsource%2Fexamples.php5" target="blog"&gt;this source code&lt;/a&gt; can be seen here: &lt;a href="http://www.downintheflood.com/source/examples.php5" target="blog"&gt;http://www.downintheflood.com/source/examples.php5&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;at the top you see the example array and below you see the various sort functions to sort the array forwards and backwards and by key forwards and backwards or &lt;i&gt;naturally&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;there is another issue i worked on today: one of my bigger projects involves the capturing of the Song Set Lists to &lt;b&gt;all&lt;/b&gt; the Bob Dylan Concerts into a MySql Database. i got all the information from PDF files from another site and just needed to copy the set lists into text files for later use, when i want to insert them with the help of php (hopefully) somewhat speedily and automatically into the database.&lt;br /&gt;&lt;br /&gt;but to capture them first i had the option of copying and pasting into a text file and save each one using &lt;i&gt;Save As&lt;/i&gt;, but i found that to tedious after a while and was scared to make mistakes, which is what happens quickly when you have to perform a repititive function.&lt;br /&gt;&lt;br /&gt;i got this book (&lt;i&gt;here he comes with his books again&lt;/i&gt;) &lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemSearch&amp;Keywords=Praxiswissen+Ajax&amp;SearchIndex=Books" target="blog"&gt;&lt;font style="font-family:Courier New, Courier;font-size:12px;font-weight:bold"&gt;Praxiswissen Ajax&lt;/font&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemSearch&amp;Keywords=Praxiswissen+Ajax&amp;SearchIndex=Books" target="blog"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/31Hz-76aDLL._SL160_.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and in this book there is a chapter about an Ajax Online Editor (short: aoe). i have somewhat re-designed the layout a little to fill the whole screen with it for my purposes. (i will discuss this example in another article.) this editor uses php to read the files of a particular directory on the left part of the screen; one clicks on a filename and the contents of the file appear on the right side of the screen.&lt;br /&gt;&lt;br /&gt;i show you a screenshot:&lt;br/&gt;&lt;br /&gt;&lt;img src="http://www.downintheflood.com/echolog/Bild22.jpg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;now i wanted all the files to exist already so i wrote myself a little code snippet that would write empty files with the names ready-made from an array in split seconds. and here is the code (the filenames just have reference numbers):&lt;br /&gt;&lt;br /&gt;&lt;font style="font-family:Courier New, Courier;"&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;?php&lt;/b&gt;&lt;br /&gt;$id_number = &lt;b&gt;array&lt;/b&gt;(&lt;br /&gt;'29930',&lt;br /&gt;'29940',&lt;br /&gt;'29950',&lt;br /&gt;'29960',&lt;br /&gt;'29970',&lt;br /&gt;'29980',&lt;br /&gt;'29990',&lt;br /&gt;'30000',&lt;br /&gt;'30010',&lt;br /&gt;'30020',&lt;br /&gt;'30030',&lt;br /&gt;'30040',&lt;br /&gt;'30050',&lt;br /&gt;'30060',&lt;br /&gt;'30070',&lt;br /&gt;'30080',&lt;br /&gt;);&lt;br /&gt;$inhalt = &lt;b&gt;utf8_encode&lt;/b&gt;(" ");&lt;br /&gt;&lt;b&gt;foreach&lt;/b&gt;($id_number &lt;b&gt;as&lt;/b&gt; $value) {&lt;br /&gt;$filename = $value.".txt";&lt;br /&gt;$fh = &lt;b&gt;fopen&lt;/b&gt;($filename, "w+");&lt;br /&gt;&lt;b&gt;fwrite&lt;/b&gt;($fh,$inhalt);&lt;br /&gt;&lt;b&gt;fclose&lt;/b&gt;($fh);&lt;br /&gt;}&lt;br /&gt;&lt;b&gt;?&amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;br/&gt;&lt;br /&gt;this code snippet enters a blank space &lt;font style="font-family:Courier New, Courier;"&gt;&lt;b&gt;(" ")&lt;/b&gt;&lt;/font&gt; into each of those files.&lt;br /&gt;&lt;br /&gt;my next problem came when i wanted to copy those files as a backup from the server, where i will need them, to my computer. as i came back from having a shower an error message awaited me that the server had been reset and the copying had not been completed. so i thought &lt;i&gt;alright, let me create a zip file and download them as a zip file&lt;/i&gt;. using the google search engine again i went to look for &lt;i&gt;create zip files using php&lt;/i&gt;. i downloaded 4 examples, the last one was in php5 and i decided to try that one first and it didn't work for some reason, so i discarded that one already. then i tested the third one which looked best and easiest for me. it requires &lt;a href="http://cvs.php.net/viewcvs.cgi/*checkout*/pear-core/PEAR.php?rev=1.101" target="blog"&gt;&lt;b&gt;PEAR&lt;/b&gt;&lt;/a&gt; but that wasn't a big problem either. it further requires the &lt;a href="http://pear.php.net/package/Archive_Zip" target="blog"&gt;&lt;b&gt;PEAR Archive_ZIP Package&lt;/b&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;downloaded those, unpacked and copied them to the server. then i got the code working which i took from &lt;a href="http://www.phpit.net/article/creating-zip-tar-archives-dynamically-php/" target="blog"&gt;&lt;i&gt;&lt;b&gt;PHPit&lt;/b&gt;&lt;/i&gt;&lt;/a&gt;. i made a few adjustments to it, like the path to pear and of it went. here is the code snippet i used:&lt;br /&gt;&lt;br /&gt;&lt;font style="font-family:Courier New, Courier;"&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;?php&lt;/b&gt;&lt;br /&gt;// Original Source: http://www.phpit.net/article/creating-zip-tar-archives-dynamically-php/&lt;br /&gt;include ('../pear/archive_zip.php');&lt;br /&gt;&lt;br /&gt;// Create instance of Archive_Zip class, and pass the name of our zipfile&lt;br /&gt;$zipfile = New Archive_Zip('bdcdb.zip');&lt;br /&gt;&lt;br /&gt;// Create a list of files and directories&lt;br /&gt;$list = &lt;b&gt;array&lt;/b&gt;(&lt;br /&gt;'00003.txt',&lt;br /&gt;'00005.txt',&lt;br /&gt;'00007.txt',&lt;br /&gt;'......txt',&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;// Create the zip file&lt;br /&gt;$zipfile-&gt;create($list);&lt;br /&gt; &lt;br /&gt;&lt;b&gt;echo&lt;/b&gt; 'Zip file created';&lt;br /&gt;&lt;b&gt;?&amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;br/&gt;&lt;br /&gt;of course my list has over 3.000 items, so the &lt;b&gt;$list&lt;/b&gt; array is accordingly much longer. i waited a few seconds and then i was able to download my text files in a zip folder named &lt;i&gt;bdcdb&lt;/i&gt; which stands for &lt;i&gt;Bob Dylan Concert Data Base&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;font style="color:red"&gt;End of Project.&lt;/font&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;now for the JavaScript.&lt;br /&gt;&lt;br /&gt;i think it's best to create a JavaScript file (i have JavaScript snippets all over my pages as well as in files). and &lt;a href="http://www.downintheflood.com/source/source.php?useurl=http%3A%2F%2Fwww.downintheflood.com%2Fsource%2Fjavascript.code.lib.js" target="blog"&gt;&lt;b&gt;here is an example&lt;/b&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;the first example you can see working on the source.php file if you click into the field with the url. it clears the text in that field.&lt;br /&gt;&lt;br /&gt;the second example you can use with a URL like &lt;font style="font-family:Courier New, Courier;"&gt;&lt;br /&gt;&amp;lt;a href="http://someurl.com" onClick="MyWindow(this.href,'name','1000','650','yes');return false"&amp;gt;some url&amp;lt;/a&amp;gt;&lt;/font&gt;. it opens the link in a new window at the size of 1000x650.&lt;br/&gt;&lt;br /&gt;the third example uses a copy and paste button (&lt;i&gt;also to be seen at the lower section of the source.php file&lt;/i&gt;). in Firefox it only highlights the code, but using the Internet Explorer it actually puts the code into the copy and paste cache. i have explained the usage of that code already on the source.php page.&lt;br /&gt;&lt;br /&gt;the fourth example you can use with the &lt;font style="font-family:Courier New, Courier;"&gt;&lt;b&gt;&amp;lt;select&amp;gt;&lt;/b&gt;&lt;/font&gt; tag of a drop-down menu as shown in the example in the source.php file.&lt;br /&gt;&lt;br /&gt;for all these examples to work you only need one line of code in the &lt;font style="font-family:Courier New, Courier;"&gt;&lt;b&gt;&amp;lt;head&amp;gt;&lt;/b&gt;&lt;/font&gt; section of your .html or .php file, and that is:&lt;br /&gt;&lt;font style="font-family:Courier New, Courier;"&gt;&lt;b&gt;&amp;lt;script language="JavaScript" type="text/javascript" src="javascript.code.lib.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/b&gt;&lt;/font&gt;. of course your JavaScript file's name is &lt;i&gt;javascript.code.lib.js&lt;/i&gt; :-)&lt;br /&gt;&lt;br /&gt;another book i'm learning from at the moment is &lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=3827269326" target="blog"&gt;&lt;i&gt;PHP und MySQL -- Dynamik für Ihre Webseiten&lt;/i&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=3827269326" target="blog"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/41AR6B83V9L._SL160_.jpg" border="0"/&gt;&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;one thing i learnt from it is if i want to use a variable within html and i'm just outside of the php parameters i can use &lt;font style="font-family:Courier New, Courier;"&gt;&lt;b&gt;&amp;lt;?=$color;?&amp;gt;&lt;/b&gt;&lt;/font&gt; instead of &lt;font style="font-family:Courier New, Courier;"&gt;&lt;b&gt;&amp;lt;?php echo $color; ?&amp;gt;&lt;/b&gt;&lt;/font&gt; as i used to in the past.&lt;br /&gt;&lt;br /&gt;and that rounds off today's article on code snippets. stay tuned and see you soon.&lt;br /&gt;&lt;br /&gt;tom.paine&lt;br /&gt;&lt;hr style="border:1px dashed red"/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-3808284883203466514?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/3808284883203466514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=3808284883203466514' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/3808284883203466514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/3808284883203466514'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2008/04/javascript-php-array-sorting-plus.html' title='JavaScript ... PHP Array sorting plus ...'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-1199093939588170270</id><published>2008-04-20T16:18:00.004+02:00</published><updated>2008-04-24T20:13:35.154+02:00</updated><title type='text'>Amazon Web Services (AWS)</title><content type='html'>&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;it's been recommended to me by some friends to start a blog on code snippets since i'm not just into music and literature, but also spend a considerable amount of time on the computer trying to figure out how i can make a script work that i've seen somewhere or whatever the case may be. i guess first i gotta go through a short and sweet amount of history on how i teach myself:&lt;br /&gt;&lt;br /&gt;when i started off in 2001 someone showed me how to figure out the source code by clicking &lt;i&gt;view&lt;/i&gt; --&gt; &lt;i&gt;view source code&lt;/i&gt; on the Netscape 4.7 browser at the time. first i created mostly pages with links of websites i liked and which i'd visit regularly, but which could also be of interested to others on a particular subject. in one such case i created a webpage for a friend of mine and she asked me to insert the right-click JavaScript.&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:Courier New, Courier;font-size:12px;color:#000000;"&gt;&amp;lt;script&amp;nbsp;language="JavaScript"&amp;nbsp;type="text/javascript"&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;var&amp;nbsp;message="You&amp;nbsp;can't&amp;nbsp;have&amp;nbsp;this,&amp;nbsp;but&amp;nbsp;you&amp;nbsp;can&amp;nbsp;print&amp;nbsp;it&amp;nbsp;out&amp;nbsp;or&amp;nbsp;contact&amp;nbsp;us&amp;nbsp;for&amp;nbsp;&lt;br /&gt;permission&amp;nbsp;to&amp;nbsp;borrow&amp;nbsp;something.&amp;nbsp;Have&amp;nbsp;a&amp;nbsp;great&amp;nbsp;day&amp;nbsp;and&amp;nbsp;thanks&amp;nbsp;for&amp;nbsp;visiting&amp;nbsp;us!";&lt;br /&gt;&lt;br /&gt;function&amp;nbsp;click(e)&amp;nbsp;{&lt;br /&gt;if&amp;nbsp;(document.all)&amp;nbsp;{&lt;br /&gt;if&amp;nbsp;(event.button&amp;nbsp;==&amp;nbsp;2)&amp;nbsp;{&lt;br /&gt;alert(message);&lt;br /&gt;return&amp;nbsp;false;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if&amp;nbsp;(document.layers)&amp;nbsp;{&lt;br /&gt;if&amp;nbsp;(e.which&amp;nbsp;==&amp;nbsp;3)&amp;nbsp;{&lt;br /&gt;alert(message);&lt;br /&gt;return&amp;nbsp;false;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;if&amp;nbsp;(document.layers)&amp;nbsp;{&lt;br /&gt;&lt;br /&gt;document.captureEvents(Event.MOUSEDOWN);&lt;br /&gt;}&lt;br /&gt;document.onmousedown=click;&lt;br /&gt;//--&amp;gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;that was the code i used in my page; i found that code snippet on the internet; she used a different code at the time and i noticed it wasn't working in Netscape, so i asked &lt;i&gt;"what code are you talking about?"&lt;/i&gt; well, and that's how i got started using JavaScript.&lt;br /&gt;&lt;br /&gt;in one of my more complicated examples i created a page with 4 framesets, whereby if one moves the cursor over a link to a music album, the album cover changes accordingly in the other frame. that was a nightmare which took me about 8 hours to resolve. here again i searched around on the internet to find a suitable code snippet.&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:Courier New, Courier;font-size:12px;color:#000000;"&gt;&lt;br /&gt;&amp;lt;frameset&amp;nbsp;cols="313,*"&amp;nbsp;border="0"&amp;nbsp;framespacing="0"&amp;nbsp;frameborder="0"&amp;gt;&lt;br /&gt;&amp;lt;frameset&amp;nbsp;rows="434,*"&amp;nbsp;border="0"&amp;nbsp;framespacing="0"&amp;nbsp;frameborder="0"&amp;gt;&lt;br /&gt;&amp;lt;frame&amp;nbsp;src="AppleBobDylan.html"&amp;nbsp;scrolling="auto"&amp;nbsp;name="Think&amp;nbsp;different."&amp;gt;&lt;br /&gt;&amp;lt;frame&amp;nbsp;src="DylanAlbumImages.html"&amp;nbsp;&amp;nbsp;scrolling="auto"&amp;nbsp;name="DylanAlbumImages"&amp;gt;&lt;br /&gt;&amp;lt;/frameset&amp;gt;&lt;br /&gt;&amp;lt;frameset&amp;nbsp;rows="9%,*"&amp;nbsp;border="0"&amp;nbsp;framespacing="0"&amp;nbsp;frameborder="0"&amp;gt;&lt;br /&gt;&amp;lt;frame&amp;nbsp;src="DylanAlbumHeader.html"&amp;nbsp;scrolling="auto"&amp;nbsp;name="DylanAlbumHeader"&amp;gt;&lt;br /&gt;&amp;lt;frame&amp;nbsp;src="DylanAlbumLinks.html"&amp;nbsp;scrolling="auto"&amp;nbsp;name="DylanAlbumLinks"&amp;gt;&lt;br /&gt;&amp;lt;/frameset&amp;gt;&lt;br /&gt;&amp;lt;/frameset&amp;gt;&lt;br /&gt;&amp;lt;noframes&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/noframes&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;the code snippet that would have to be used with the link would be:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:Courier New, Courier;font-size:12px;color:#000000;"&gt;&lt;br /&gt;onmouseover="parent.DylanAlbumImages.document.albumcover.src='CURRENT_COVER.jpg'"&lt;br /&gt;onmouseout="parent.DylanAlbumImages.document.albumcover.src='DEFAULT_IMAGE.jpg'"&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;&lt;i&gt;CURRENT_COVER&lt;/i&gt; is here only sort of a &lt;i&gt;variable&lt;/i&gt; for the image related to the current cover. those have been preloaded at the head of the script in the .html file that contains the links.&lt;br /&gt;&lt;br /&gt;but what am i writing about? you thought this article would be about &lt;font color="#CC0000"&gt;&lt;i&gt;Amazon Web Services&lt;/i&gt;&lt;/font&gt;; well it is, we're slowly getting there.&lt;br /&gt;&lt;br /&gt;before i get into that i should mention a few books that may be essential to the cause:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=0596006810&amp;templates=us&amp;locale=us" target="blog"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/51vMTO-XG2L._SL160_.jpg"/&gt;&lt;/a&gt;&lt;br /&gt;&lt;i&gt;Programming PHP&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=0596005431&amp;templates=us&amp;locale=us" target="blog"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/51RLqGD8Q5L._SL160_.jpg"/&gt;&lt;/a&gt;&lt;br /&gt;&lt;i&gt;Web Database Applications with PHP &amp; MySQL&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=0596101058&amp;templates=us&amp;locale=us" target="blog"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/51%2Bxep3i-XL._SL160_.jpg"/&gt;&lt;/a&gt;&lt;br /&gt;&lt;i&gt;Learning Perl&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=0596000278&amp;templates=us&amp;locale=us" target="blog"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/41aY2dVH-%2BL._SL160_.jpg"/&gt;&lt;/a&gt;&lt;br /&gt;&lt;i&gt;Programming Perl&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.downintheflood.com/echolog/index.pl?Operation=ItemLookup&amp;ItemId=141162551X&amp;templates=us&amp;locale=us" target="blog"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/41VF7E6HEQL._SL160_.jpg"/&gt;&lt;/a&gt;&lt;br /&gt;and of course my main guide: the &lt;i&gt;AWS Book&lt;/i&gt; titled: &lt;span style="font-family:Courier New, Courier;font-size:12px;"&gt;&lt;i&gt;The Web Developer's Guide To Amazon E-Commerce Service: Developing Web Applications Using Amazon Web Services And PHP&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;this last book not only helps you to learn php but also apply it already in reallife applications. example scripts can be seen as well as downloaded from &lt;a href="http://www.awsbook.com/" target="blog" style="font-family:courier new, courier;font-size:12px;color:#0000CD;"&gt;www.awsbook.com&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;i could go more into details about books, &lt;i&gt;Ajax Hacks&lt;/i&gt;, &lt;i&gt;Amazon Hacks&lt;/i&gt; (now somewhat outdated due to the termination of Amazon Web Services 3.0) and &lt;i&gt;Google Hacks&lt;/i&gt; or any other from the &lt;i&gt;Hacks&lt;/i&gt; series.&lt;br /&gt;&lt;br /&gt;enough of this! now let me give an example of how i sometimes work. you can find already lots of usable code related to Amazon Web Services on the internet, you don't have to write your own. but you should at least have a fundamental knowledge of how Amazon Web Services works:&lt;br /&gt;&lt;br /&gt;Step 1: you formulate your request url&lt;br /&gt;Step 2: you send that request to Amazon's server (using your browser)&lt;br /&gt;Step 3: Amazon returns a document with a XML structure related to your request, if neccessary with an error message which tells you what parameter was wrong.&lt;br /&gt;Step 4: you write some kind of script that can turn the XML document into something more sensible to the visitors of your website.&lt;br /&gt;&lt;br /&gt;the start of your url will always look like this:&lt;br /&gt;http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&amp;AWSAccessKeyId=&lt;i&gt;[YOUR ID]&lt;/i&gt;&lt;br /&gt;http://ecs.amazonaws.co.uk/onca/xml?Service=AWSECommerceService&amp;AWSAccessKeyId=&lt;i&gt;[YOUR ID]&lt;/i&gt;&lt;br /&gt;http://ecs.amazonaws.ca/onca/xml?Service=AWSECommerceService&amp;AWSAccessKeyId=&lt;i&gt;[YOUR ID]&lt;/i&gt;&lt;br /&gt;http://ecs.amazonaws.de/onca/xml?Service=AWSECommerceService&amp;AWSAccessKeyId=&lt;i&gt;[YOUR ID]&lt;/i&gt;&lt;br /&gt;http://ecs.amazonaws.fr/onca/xml?Service=AWSECommerceService&amp;AWSAccessKeyId=&lt;i&gt;[YOUR ID]&lt;/i&gt;&lt;br /&gt;http://ecs.amazonaws.jp/onca/xml?Service=AWSECommerceService&amp;AWSAccessKeyId=&lt;i&gt;[YOUR ID]&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;you obtain the AWSAccessKeyId from &lt;a href="https://aws-portal.amazon.com/gp/aws/developer/registration/index.html" target="blog"&gt;Amazon&lt;/a&gt; and it's the same for all these locales.&lt;br /&gt;&lt;br /&gt;next you need an Operation (no no, don't panik, not at the hospital! you should remember that these terms are case-sensitive!) for instance &lt;i&gt;Operation=ItemSearch&lt;/i&gt;. you find those in the documentation from Amazon. i don't want to get into those details too much here.&lt;br /&gt;&lt;br /&gt;certain Operations (like &lt;i&gt;ItemSearch&lt;/i&gt;) require certain parameters that are a &lt;i&gt;must&lt;/i&gt;. in this case for instance a &lt;i&gt;SearchIndex&lt;/i&gt; is required. a SearchIndex is something like &lt;i&gt;Books&lt;/i&gt;, &lt;i&gt;DVD&lt;/i&gt; or &lt;i&gt;VHS&lt;/i&gt;. the &lt;i&gt;SearchIndex&lt;/i&gt; values vary from country to country (locale to locale); for instance, &lt;i&gt;MusicalInstruments&lt;/i&gt; you get only under the &lt;i&gt;US&lt;/i&gt; locale whereas &lt;i&gt;Hobbies&lt;/i&gt; you will only find under the &lt;i&gt;JP&lt;/i&gt; locale (for Japan). apropos Japan: i did not make a mistake with the url above, it is .jp and not .co.jp in this case.&lt;br /&gt;&lt;br /&gt;now what are we searching for? one can search for a particular Author under Books, or Artist under Music, Actor or Director among DVD and VHS. the simplest would be the &lt;i&gt;Keywords&lt;/i&gt; search (one can also use a BrowseNode, but who knows those offhand?).&lt;br /&gt;&lt;br /&gt;we're almost there. we could add a &lt;i&gt;Sort&lt;/i&gt; parameter or even which &lt;i&gt;Version&lt;/i&gt; of Amazon Web Services we'd prefer to use in our request, but those will be returned as default parameters and we don't have to worry about that for now.&lt;br /&gt;&lt;br /&gt;i almost forgot about the &lt;i&gt;ResponseGroup&lt;/i&gt;: the information you're about to get depends on the ResponseGroup, &lt;i&gt;Small&lt;/i&gt;, &lt;i&gt;Medium&lt;/i&gt; or &lt;i&gt;Large&lt;/i&gt; are the basic ones.&lt;br /&gt;&lt;br /&gt;we got everything? let's give it a try, shall we?&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&amp;AWSAccessKeyId=1BZ9VRA5AKNBPYJM6YR2&amp;Operation=ItemSearch&amp;SearchIndex=Books&amp;Keywords=Bob%20Dylan&amp;ResponseGroup=Large" target="blog"&gt;http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&amp;AWSAccessKeyId=&lt;i&gt;[where's  your id?]&lt;/i&gt;&amp;Operation=ItemSearch&amp;SearchIndex=Books&amp;Keywords=Bob%20Dylan&amp;ResponseGroup=Large&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;O.K. that work's after a number of false starts (i hate links that don't work!)&lt;br /&gt;&lt;br /&gt;now that we've had the basics i will show an example i found on the internet and changed it to suit my own purposes. nothing spectacular!&lt;br /&gt;&lt;br /&gt;i found this code snippet in the &lt;a href="http://www.ajax-community.de/web-services/4655-amazon-web-services-aws.html" target="blog"&gt;Ajax Community&lt;/a&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:Courier New, Courier;font-size:12px;"&gt;&lt;font color="#0000BB"&gt;&amp;lt;?php&lt;br /&gt;&lt;/font&gt;&lt;font color="#007700"&gt;class&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;aws&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;function&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;aws&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#0000BB"&gt;$aki&lt;/font&gt;&lt;font color="#007700"&gt;,&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$asin&lt;/font&gt;&lt;font color="#007700"&gt;)&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$fs&lt;/font&gt;&lt;font color="#007700"&gt;=&lt;/font&gt;&lt;font color="#0000BB"&gt;fopen&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#DD0000"&gt;"http://ecs.amazonaws.de/onca/xml?Service=AWSECommerceService&amp;amp;AWSAccessKeyId="&lt;/font&gt;&lt;font color="#007700"&gt;.&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$aki&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;"&amp;amp;AssociateTag=22&amp;amp;Version=2006-09-11&amp;amp;Operation=ItemLookup&amp;amp;ItemId="&lt;/font&gt;&lt;font color="#007700"&gt;.&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$asin&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;"&amp;amp;ResponseGroup=Medium,Offers"&lt;/font&gt;&lt;font color="#007700"&gt;,&lt;/font&gt;&lt;font color="#DD0000"&gt;"r"&lt;/font&gt;&lt;font color="#007700"&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$this&lt;/font&gt;&lt;font color="#007700"&gt;-&amp;gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;responseXML&lt;/font&gt;&lt;font color="#007700"&gt;=&lt;/font&gt;&lt;font color="#0000BB"&gt;simplexml_load_string&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#0000BB"&gt;fgets&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#0000BB"&gt;$fs&lt;/font&gt;&lt;font color="#007700"&gt;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;function&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;getValue&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#0000BB"&gt;$pValue&lt;/font&gt;&lt;font color="#007700"&gt;)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$myValue&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;=&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;''&lt;/font&gt;&lt;font color="#007700"&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;eval&amp;nbsp;(&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'$myValue&amp;nbsp;=&amp;nbsp;$this-&amp;gt;responseXML-&amp;gt;'&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#0000BB"&gt;$pValue&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;';'&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(empty(&lt;/font&gt;&lt;font color="#0000BB"&gt;$myValue&lt;/font&gt;&lt;font color="#007700"&gt;))&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$myValue&lt;/font&gt;&lt;font color="#007700"&gt;=&lt;/font&gt;&lt;font color="#DD0000"&gt;'n.V.'&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$myValue&lt;/font&gt;&lt;font color="#007700"&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;$produkt&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;=&amp;nbsp;new&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;aws&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#DD0000"&gt;'AccessKeyId'&lt;/font&gt;&lt;font color="#007700"&gt;,&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'Produkt&amp;nbsp;ASIN'&lt;/font&gt;&lt;font color="#007700"&gt;);&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;$preis&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;=&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$produkt&lt;/font&gt;&lt;font color="#007700"&gt;-&amp;gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;getValue&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#DD0000"&gt;'Items-&amp;gt;Item-&amp;gt;Offers-&amp;gt;Offer-&amp;gt;OfferListing-&amp;gt;Price-&amp;gt;FormattedPrice'&lt;/font&gt;&lt;font color="#007700"&gt;);&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;$bild&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;=&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$produkt&lt;/font&gt;&lt;font color="#007700"&gt;-&amp;gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;getValue&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#DD0000"&gt;'Items-&amp;gt;Item-&amp;gt;LargeImage-&amp;gt;URL'&lt;/font&gt;&lt;font color="#007700"&gt;);&lt;br /&gt;&lt;br /&gt;echo&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'&amp;lt;img&amp;nbsp;src="'&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#0000BB"&gt;$bild&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;'"&amp;nbsp;/&amp;gt;'&lt;/font&gt;&lt;font color="#007700"&gt;;&lt;br /&gt;echo&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'Preis:&amp;nbsp;'&lt;/font&gt;&lt;font color="#007700"&gt;.&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$preis&lt;/font&gt;&lt;font color="#007700"&gt;;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;?&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;and this is what i made of it:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:Courier New, Courier;font-size:12px;"&gt;&lt;font color="#0000BB"&gt;&amp;lt;?php&lt;br /&gt;&lt;/font&gt;&lt;font color="#007700"&gt;class&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;aws&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;{&lt;br /&gt;function&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;aws&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#0000BB"&gt;$aki&lt;/font&gt;&lt;font color="#007700"&gt;,&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$affid&lt;/font&gt;&lt;font color="#007700"&gt;,&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$asin&lt;/font&gt;&lt;font color="#007700"&gt;)&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$aki&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;=&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'1BZ9VRA5AKNBPYJM6YR2'&lt;/font&gt;&lt;font color="#007700"&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$affid&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;=&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'downinthefl04-21'&lt;/font&gt;&lt;font color="#007700"&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$asin&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;=&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'3100744314'&lt;/font&gt;&lt;font color="#007700"&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$fs&lt;/font&gt;&lt;font color="#007700"&gt;=&lt;/font&gt;&lt;font color="#0000BB"&gt;fopen&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#DD0000"&gt;"http://ecs.amazonaws.de/onca/xml?Service=AWSECommerceService&amp;amp;AWSAccessKeyId="&lt;/font&gt;&lt;font color="#007700"&gt;.&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$aki&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;"&amp;amp;AssociateTag="&lt;/font&gt;&lt;font color="#007700"&gt;.&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$affid&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;"&amp;amp;Version=2006-09-11&amp;amp;Operation=ItemLookup&amp;amp;ItemId="&lt;/font&gt;&lt;font color="#007700"&gt;.&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$asin&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;"&amp;amp;ResponseGroup=Medium,Offers"&lt;/font&gt;&lt;font color="#007700"&gt;,&lt;/font&gt;&lt;font color="#DD0000"&gt;"r"&lt;/font&gt;&lt;font color="#007700"&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$this&lt;/font&gt;&lt;font color="#007700"&gt;-&amp;gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;responseXML&lt;/font&gt;&lt;font color="#007700"&gt;=&lt;/font&gt;&lt;font color="#0000BB"&gt;simplexml_load_string&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#0000BB"&gt;fgets&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#0000BB"&gt;$fs&lt;/font&gt;&lt;font color="#007700"&gt;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;function&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;getValue&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#0000BB"&gt;$pValue&lt;/font&gt;&lt;font color="#007700"&gt;)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$myValue&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;=&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;''&lt;/font&gt;&lt;font color="#007700"&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;eval&amp;nbsp;(&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'$myValue&amp;nbsp;=&amp;nbsp;$this-&amp;gt;responseXML-&amp;gt;'&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#0000BB"&gt;$pValue&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;';'&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(empty(&lt;/font&gt;&lt;font color="#0000BB"&gt;$myValue&lt;/font&gt;&lt;font color="#007700"&gt;))&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$myValue&lt;/font&gt;&lt;font color="#007700"&gt;=&lt;/font&gt;&lt;font color="#DD0000"&gt;'n.V.'&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$myValue&lt;/font&gt;&lt;font color="#007700"&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;$produkt&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;=&amp;nbsp;new&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;aws&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#DD0000"&gt;'AccessKeyId'&lt;/font&gt;&lt;font color="#007700"&gt;,&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'AffiliateId'&lt;/font&gt;&lt;font color="#007700"&gt;,&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'Produkt&amp;nbsp;ASIN'&lt;/font&gt;&lt;font color="#007700"&gt;);&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;$preis&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;=&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$produkt&lt;/font&gt;&lt;font color="#007700"&gt;-&amp;gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;getValue&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#DD0000"&gt;'Items-&amp;gt;Item-&amp;gt;Offers-&amp;gt;Offer-&amp;gt;OfferListing-&amp;gt;Price-&amp;gt;FormattedPrice'&lt;/font&gt;&lt;font color="#007700"&gt;);&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;$bild&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;=&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$produkt&lt;/font&gt;&lt;font color="#007700"&gt;-&amp;gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;getValue&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#DD0000"&gt;'Items-&amp;gt;Item-&amp;gt;LargeImage-&amp;gt;URL'&lt;/font&gt;&lt;font color="#007700"&gt;);&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;$link&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;=&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$produkt&lt;/font&gt;&lt;font color="#007700"&gt;-&amp;gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;getValue&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#DD0000"&gt;'Items-&amp;gt;Item-&amp;gt;DetailPageURL'&lt;/font&gt;&lt;font color="#007700"&gt;);&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;$titel&amp;nbsp;&lt;/font&gt;&lt;font color="#007700"&gt;=&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;$produkt&lt;/font&gt;&lt;font color="#007700"&gt;-&amp;gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;getValue&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#DD0000"&gt;'Items-&amp;gt;Item-&amp;gt;ItemAttributes-&amp;gt;Title'&lt;/font&gt;&lt;font color="#007700"&gt;);&lt;br /&gt;echo&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'&amp;lt;img&amp;nbsp;src="'&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#0000BB"&gt;$bild&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;'"&amp;nbsp;/&amp;gt;&amp;lt;br&amp;nbsp;/&amp;gt;'&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;"\n"&lt;/font&gt;&lt;font color="#007700"&gt;;&lt;br /&gt;echo&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'&amp;lt;a&amp;nbsp;href="'&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#0000BB"&gt;$link&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;'"&amp;nbsp;target="new"&amp;gt;'&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#0000BB"&gt;$titel&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;'&amp;lt;/a&amp;gt;&amp;lt;br&amp;nbsp;/&amp;gt;'&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;"\n"&lt;/font&gt;&lt;font color="#007700"&gt;;&lt;br /&gt;echo&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'&amp;lt;a&amp;nbsp;href="http://ecs.amazonaws.de/onca/xml?Service=AWSECommerceService&amp;amp;AWSAccessKeyId=1BZ9VRA5AKNBPYJM6YR2&amp;amp;AssociateTag=downinthefl04-21&amp;amp;Version=2006-09-11&amp;amp;Operation=ItemLookup&amp;amp;ItemId=3100744314&amp;amp;ResponseGroup=Medium,Offers"&amp;nbsp;target="new"&amp;gt;XML&amp;nbsp;Dokument&amp;lt;/a&amp;gt;&amp;lt;br&amp;nbsp;/&amp;gt;'&lt;/font&gt;&lt;font color="#007700"&gt;.&lt;/font&gt;&lt;font color="#DD0000"&gt;"\n"&lt;/font&gt;&lt;font color="#007700"&gt;;&lt;br /&gt;echo&amp;nbsp;&lt;/font&gt;&lt;font color="#DD0000"&gt;'Preis:&amp;nbsp;'&lt;/font&gt;&lt;font color="#007700"&gt;.&amp;nbsp;&lt;/font&gt;&lt;font color="#0000BB"&gt;str_replace&lt;/font&gt;&lt;font color="#007700"&gt;(&lt;/font&gt;&lt;font color="#DD0000"&gt;'EUR'&lt;/font&gt;&lt;font color="#007700"&gt;,&lt;/font&gt;&lt;font color="#DD0000"&gt;'&amp;amp;#128;'&lt;/font&gt;&lt;font color="#007700"&gt;,&lt;/font&gt;&lt;font color="#0000BB"&gt;$preis&lt;/font&gt;&lt;font color="#007700"&gt;);&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000BB"&gt;?&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#0000CD;font-family:trebuchet ms;font-size:13px;"&gt;i added my affiliate id and i display a link below the large image, as well as a link to the request i made. i always do this as an easy reference in case nothing shows up. the script is written in php5 which you can easily recognize by the use of the &lt;i&gt;simplexml_load_string&lt;/i&gt; function.&lt;br /&gt;&lt;br /&gt;writing this all up has now taken me a considerable amount of time; so i'm gonna knock off with a last link to the &lt;a href="http://www.php.net/docs.php" target="blog"&gt;PHP: Documentation&lt;/a&gt; where the reader will find the &lt;i&gt;simplexml_load_string&lt;/i&gt; as well as the &lt;i&gt;simplexml_load_file&lt;/i&gt; functions explained in greater detail together with examples from other users. for some resource links on &lt;i&gt;Amazon Web Services&lt;/i&gt; you can also visit my &lt;a href="http://www.downintheflood.com/AmazonWebServices.html" target="blog"&gt;&lt;i&gt;documentary&lt;/i&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Cheers for now!&lt;br /&gt;&lt;br /&gt;tom.paine&lt;/span&gt;&lt;br /&gt;&lt;hr style="border:1px dashed red"/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-1199093939588170270?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/1199093939588170270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=1199093939588170270' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/1199093939588170270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/1199093939588170270'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2008/04/amazon-web-services-aws.html' title='Amazon Web Services (AWS)'/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14455063.post-112127674526984623</id><published>2005-07-13T18:01:00.000+02:00</published><updated>2005-07-13T20:37:23.840+02:00</updated><title type='text'></title><content type='html'>Welcome to the first DownInTheFlood.com Publication&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;font-size:90%;"&gt;&lt;a href="http://www.downintheflood.com" target="new"&gt;DownInTheFlood.com&lt;/a&gt; was established in 2001 as one of many a website featuring news items on &lt;a href="http://www.bobdylan.com/" target="new"&gt;Bob Dylan&lt;/a&gt;, performing artist, so named by &lt;a href="http://www.paulwilliams.com/" target="new"&gt;Paul Williams&lt;/a&gt;, author of a series of books titled "&lt;a href="http://www.downintheflood.com/africa/cgi-bin/africastore.pl?Operation=ItemSearch&amp;Keywords=Bob+Dylan+Performing+Artist&amp;amp;SearchIndex=Books" target="new"&gt;Bob Dylan: Performing Artist&lt;/a&gt;", perhaps the most interesting of biographies ever written about Bob Dylan as an artist by any author. meanwhile, the artist has begun to publish his own account of how life felt "way back when" in his book &lt;a href="http://www.downintheflood.com/africa/cgi-bin/africastore.pl?Operation=ItemLookup&amp;ItemId=0743228154" target="new"&gt;Chronicles, Volume 1&lt;/a&gt;, a book written with as much feeling as we know from songs like "Girl from the North Country", "North Country Blues", "Boots of Spanish Leather", any of these early songs, compassion felt in lots of his early work. ... and in this first autobiography. his other books include "&lt;a href="http://www.downintheflood.com/africa/cgi-bin/africastore.pl?Operation=ItemLookup&amp;amp;ItemId=0743230418" target="new"&gt;Tarantula&lt;/a&gt;", his Lyrics have been published on various occasions; the first volume in 1973, then again in 1985, and at the end of last year covering the words to his music from &lt;a href="http://www.downintheflood.com/africa/cgi-bin/africastore.pl?Operation=ItemLookup&amp;ItemId=0743228278" target="new"&gt;1962-2001&lt;/a&gt;. also in 1973 a book titled "&lt;a href="http://www.downintheflood.com/africa/cgi-bin/africastore.pl?Operation=ItemSearch&amp;amp;Keywords=Bob+Dylan+Writings+and+Drawings&amp;SearchIndex=Books" target="new"&gt;Writings and Drawings&lt;/a&gt; of Bob Dylan" was published by Alfred A. Knopf. latest releases include authors like &lt;a href="http://www.downintheflood.com/africa/cgi-bin/africastore.pl?Operation=ItemSearch&amp;Keywords=Greil+Marcus&amp;SearchIndex=Books" target="new"&gt;Greil Marcus&lt;/a&gt; &amp;amp; &lt;a href="http://www.downintheflood.com/africa/cgi-bin/africastore.pl?Operation=ItemSearch&amp;Keywords=Dave+Van+Ronk&amp;SearchIndex=Books" target="new"&gt;Dave Van Ronk&lt;/a&gt; who maintains that Bob Dylan stole the version of "House of the Rising Sun" from him; the song appears on Bob Dylan's self-titled first album. a &lt;a href="http://www.downintheflood.com/africa/cgi-bin/africastore.pl?Operation=ItemLookup&amp;ItemId=B0009MAP90" target="new"&gt;remastered&lt;/a&gt; version of this album has just been released on CD.&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family:Times New Roman;font-size:90%;"&gt;the works of the following authors may be equally worthwhile mentioning: Clinton Heylin's "&lt;a href="http://www.downintheflood.com/africa/cgi-bin/africastore.pl?Operation=ItemLookup&amp;ItemId=006052569X" target="new"&gt;Bob Dylan:Behind the Shades Revisited&lt;/a&gt;", Howard Sounes' "&lt;a href="http://www.downintheflood.com/africa/cgi-bin/africastore.pl?Operation=ItemLookup&amp;ItemId=0802138918" target="new"&gt;Down the Highway:&lt;/a&gt; The Life of Bob Dylan" and David Hajdu's "&lt;a href="http://www.downintheflood.com/africa/cgi-bin/africastore.pl?Operation=ItemLookup&amp;ItemId=086547642X" target="new"&gt;Positively 4th Street&lt;/a&gt;", Oliver Trager's "&lt;a href="http://www.downintheflood.com/africa/cgi-bin/africastore.pl?Operation=ItemLookup&amp;ItemId=0823079740" target="new"&gt;Keys to the Rain&lt;/a&gt;" serves as a comprehensive encyclopedia on Bob Dylan.&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family:Times New Roman;font-size:90%;"&gt;surely the last words on Bob Dylan have not yet been spoken ... or written.&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family:Times New Roman;font-size:90%;"&gt;perhaps the best resource website besides &lt;a href="http://www.bobdylan.com/" target="new"&gt;bobdylan.com&lt;/a&gt; is &lt;a href="http://www.expectingrain.com/" target="new"&gt;expectingrain.com&lt;/a&gt;, which recently turned 10 (even Rolling Stone responded to the occasion). the tour aficionados visit &lt;a href="http://my.execpc.com/~billp61/dates.html" target="new"&gt;Bill Pagel's Pages&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family:Times New Roman;font-size:90%;"&gt;as for DownInTheFlood.com: the site has grown in size and content over the years. the further development of the internet has encouraged experiments with ever new possibilities in the applications of scripts and codes beyond HTML. so this is the first attempt to try out the latest craze named "RSS-Feed".&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family:Times New Roman;font-size:90%;"&gt;there is also a wide range of interesting items gathered into a range of stores to support DownInTheFlood.com, the latest being the "&lt;a href="http://www.downintheflood.com/africa/cgi-bin/africastore.pl" target="new"&gt;Africa Store&lt;/a&gt;".&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family:Times New Roman;font-size:90%;"&gt;a range of &lt;a href="http://www.downintheflood.com/the_store/templates/demo/" target="new"&gt;page templates&lt;/a&gt; has been developed to support MrRat's "&lt;a href="http://www.mrrat.com/aws/" target="new"&gt;Amazon Products Feed&lt;/a&gt;" script, which extracts information through the Amazon.com Webservice, now named "E-Commerce Service", in short, &lt;a href="http://www.amazon.com/webservices/" target="new"&gt;ECS&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Times New Roman;font-size:90%;"&gt;however, one of the first and still strong inspirations to the graphical development of DownInTheFlood.&lt;/span&gt;&lt;span style="font-family:Times New Roman;font-size:90%;"&gt;com come from &lt;a href="http://www.artsandmusicpa.com/" target="new"&gt;artsandmusicpa.com&lt;/a&gt;. you may also wish to check some of her other sites: &lt;a href="http://www.blues101.org/" target="new"&gt;blues101.org&lt;/a&gt;, &lt;a href="http://www.milfordmusic.net/" target="new"&gt;milfordmusic.net&lt;/a&gt;, &lt;a href="http://www.nepablues.org/" target="new"&gt;nepablues.org&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family:Times New Roman;font-size:90%;"&gt;until at last you come home to my own &lt;a href="http://www.downintheflood.com/BealeStreetBlues.html" target="new"&gt;blues page&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Times New Roman;font-size:90%;"&gt;the idea to start this project off has been inspired by a link in an article published in the &lt;a href="http://www.nytimes.com/" target="new"&gt;New York Times&lt;/a&gt;, headlined: "In New Jersey, Blog Carnival Is WWWeird", the site: &lt;a href="http://enlightennj.blogspot.com/2005/06/carnival-of-new-jersey-bloggers.html" target="new"&gt;Carnival of the New Jersey Bloggers&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Times New Roman;font-size:90%;"&gt;... and that rounds off this article for today.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14455063-112127674526984623?l=downintheflood.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://downintheflood.blogspot.com/feeds/112127674526984623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14455063&amp;postID=112127674526984623' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/112127674526984623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14455063/posts/default/112127674526984623'/><link rel='alternate' type='text/html' href='http://downintheflood.blogspot.com/2005/07/welcome-to-first-downintheflood.html' title=''/><author><name>tom.paine</name><uri>http://www.blogger.com/profile/01746876093204431973</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://www.downintheflood.ch/graphics/montreux_jul2002.jpg'/></author><thr:total>0</thr:total></entry></feed>
