curly brackets as comment in .inc file
<p>i am having a very weird and i am sure basic problem. There is a .inc file on the server. I need to add php codes into it. I couldnt change the ext to .php since it was being used by other pages. So i did some research and based on that i added this to my .htaccess</p>

<pre><code>&lt;Files myfilename.inc&gt;
AddType application/x-httpd-php .inc

&lt;/Files&gt;
</code></pre>

<p>It seems to execute .php codes but there is a problem. I need to use a foreach loop in my code which includes curly brackets. For some reason my notepad(notepad++) shows it as a comment. When i run the code even "echo "1";" doesnt work. Any ideas about that?</p>

<p>My php code:</p>

<pre><code>    &lt;div id="install-guides-wrap"&gt;
                    &lt;label for="install-guides"&gt;Installation Videos&lt;/label&gt;
                    &lt;select id="install-guides"&gt;
                        &lt;?php

foreach(glob('../files/videos/*.*') as $filename)
{
     $name1 = str_replace('../files/videos/', '', $filename);
     $ext = pathinfo($name1, PATHINFO_EXTENSION);
     $notneeded=".".$ext;
     $name = str_replace($notneeded, '', $name1);

     echo "&lt;option value='".$name1."'&gt;".$name."&lt;/option&gt;"."&lt;br/&gt;";
     echo "myname";
      echo $name;

 }

            ?&gt;
                        &lt;/select&gt;

                    &lt;a class="btn-download" title="Download this file!" href=""&gt;DOWNLOAD&lt;/a&gt;
                &lt;/div&gt;
</code></pre>
