<?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 Wed May 22, 2013 10:21 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Wed May 22, 2013 10:21 am</pubDate>
  <lastBuildDate>Wed May 22, 2013 10:21 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>Re: PHP Coding Project 1 Page19</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=91213#91213</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=66306'&gt;seancyril&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Jul 24, 2010 6:40 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Of course! Thanks for that. I'm really enjoying learning about coding. I can crack on with the rest of the booklet now&lt;br /&gt;
Sean</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=91213#91213</comments>
                                        <author>seancyril</author>
                                        <pubDate>Sat Jul 24, 2010 6:40 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=91213#91213</guid>
                                      </item>
                                      <item>
                                        <title>Re: PHP Coding Project 1 Page19</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=91195#91195</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=130'&gt;Ram&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Jul 24, 2010 12:16 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Your missing a closing &lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span style=&quot;color: green&quot;&gt;) &lt;/span&gt;&lt;/span&gt;in your foreach loop:  &lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;lt;?php&lt;br /&gt;
$files=scandir&amp;#40;&amp;quot;.&amp;quot;&amp;#41;;&lt;br /&gt;
foreach &amp;#40;$files as $file&amp;#41; &amp;#123;&lt;br /&gt;
print &amp;quot;$file\n&amp;quot;;&lt;br /&gt;
&amp;#125;&lt;br /&gt;
&lt;br /&gt;
?&amp;gt; &lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=91195#91195</comments>
                                        <author>Ram</author>
                                        <pubDate>Sat Jul 24, 2010 12:16 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=91195#91195</guid>
                                      </item>
                                      <item>
                                        <title>PHP Coding Project 1 Page19</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=91182#91182</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=66306'&gt;seancyril&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Jul 23, 2010 7:10 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi, I am a total newb when it comes to programming and was really enjoying the php coding academy in this month's mag until I ground to a halt at page 19.&lt;br /&gt;
I have input the following to project1.php&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$files=scandir(&amp;quot;.&amp;quot;);&lt;br /&gt;
foreach ($files as $file {&lt;br /&gt;
         print &amp;quot;$file\n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
When I try and run the script I get the following error message&lt;br /&gt;
&lt;br /&gt;
PHP Parse error:  syntax error, unexpected ';' in /home/sean/PHP/project1.php on line 4&lt;br /&gt;
Please can anyone advise me as to what I am doing wrong? I believe I have input exactly what was stated in the magazine. I am obviously doing something wrong so any advice would be much apprectiated&lt;br /&gt;
&lt;br /&gt;
thanks&lt;br /&gt;
Sean</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=91182#91182</comments>
                                        <author>seancyril</author>
                                        <pubDate>Fri Jul 23, 2010 7:10 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=91182#91182</guid>
                                      </item></channel></rss>