<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Thu Jun 20, 2013 2:54 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Thu Jun 20, 2013 2:54 am</pubDate>
  <lastBuildDate>Thu Jun 20, 2013 2:54 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Post subject: php project 3 blank page</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=92457#92457</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=66859'&gt;CaptainPasty&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Aug 30, 2010 10:39 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Just wanted to say thanks. Pulled up Synaptic and php5-gd hadn't been installed. Installed, rebooted and now works fine. &lt;br /&gt;
&lt;br /&gt;
Saved me a lot of headaches!</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=92457#92457</comments>
                                        <author>CaptainPasty</author>
                                        <pubDate>Mon Aug 30, 2010 10:39 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=92457#92457</guid>
                                      </item>
                                      <item>
                                        <title>Post subject: php project 3 blank page</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=92456#92456</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=66859'&gt;CaptainPasty&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Aug 30, 2010 10:27 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      It wouldn't surprise me at all if I've done that! Thanks for your help, Shanita. I'll give it a go...</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=92456#92456</comments>
                                        <author>CaptainPasty</author>
                                        <pubDate>Mon Aug 30, 2010 10:27 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=92456#92456</guid>
                                      </item>
                                      <item>
                                        <title>php project 3 blank page</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=92445#92445</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=8340'&gt;shanita&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Aug 29, 2010 6:04 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi CaptainPasty,&lt;br /&gt;
&lt;br /&gt;
I checked your code (with copy and paste) and it is working perfectly well on my computer.&lt;br /&gt;
Maybe you forgot to install php5-gd. This package provides a module for handling graphics directly from php scripts. It supports the png, jpeg, xpm formats.&lt;br /&gt;
&lt;br /&gt;
Good luck</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=92445#92445</comments>
                                        <author>shanita</author>
                                        <pubDate>Sun Aug 29, 2010 6:04 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=92445#92445</guid>
                                      </item>
                                      <item>
                                        <title>PHP Coding Academy mini-book problems</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=92434#92434</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=66859'&gt;CaptainPasty&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Aug 28, 2010 11:41 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi all,&lt;br /&gt;
&lt;br /&gt;
I bought issue 135 of the magazine and (like many people by the sounds of it) found the PHP Coding Academy mini-book that came with it a great little time consumer,but...&lt;br /&gt;
&lt;br /&gt;
By the time I'd gotten to Project 3, page 48 I found myself going around in circles. After saving the code and refreshing the page nothing happens (blank page). I've had a quick look in the &amp;quot;thumbnails&amp;quot; folder and it doesn't seem to be saving them.&lt;br /&gt;
&lt;br /&gt;
Is there a miss-print in the book or (more likely) am I doing something really stupid? I've included my code below so if anyone can help I'd be really grateful:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$images=scandir(&amp;quot;images&amp;quot;);&lt;br /&gt;
$thumbnails=scandir(&amp;quot;thumbnails&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
$new_pics=array_diff($images,$thumbnails);&lt;br /&gt;
&lt;br /&gt;
foreach($new_pics as $pic){&lt;br /&gt;
		//load the original image&lt;br /&gt;
		$image=imagecreatefromjpeg(&amp;quot;images/$pic&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
		//and save it with %10 quality&lt;br /&gt;
		imagejpeg($image,&amp;quot;thumbnails/$pic&amp;quot;,10); 		&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//now loop again, printing out images and links&lt;br /&gt;
foreach($images as $image){&lt;br /&gt;
	//note that we have an &amp;lt;img&amp;gt; inside an &amp;lt;a&amp;gt;&lt;br /&gt;
	echo&amp;quot;&amp;lt;a href=\&amp;quot;images/$image\&amp;quot;&amp;gt;&amp;lt;img &lt;br /&gt;
src=\&amp;quot;thumbnails/$image\&amp;quot;/&amp;gt;&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=92434#92434</comments>
                                        <author>CaptainPasty</author>
                                        <pubDate>Sat Aug 28, 2010 11:41 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=92434#92434</guid>
                                      </item></channel></rss>