<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1041435" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1041435</link>
    <description></description>
    <language>en</language>
          <item>
    <title>some PHP</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/im-a-noob-need-help-with-php#comment-1231374</link>
    <description> &lt;p&gt;some PHP tutorials/references:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.tizag.com/phpT/&quot;&gt;tizag.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.w3schools.com/php/default.asp&quot;&gt;w3schools&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 05 Jul 2008 15:43:38 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1231374 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>If you have a lot of pages,</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/im-a-noob-need-help-with-php#comment-1231371</link>
    <description> &lt;p&gt;If you have a lot of pages, it is better to use a database for the lookup, as then you can also set up other features such as pages that require a login, etc. &lt;/p&gt;
&lt;p&gt;Although you may be tempted to directly call from the $_GET variable (ie. &lt;strong&gt;include ($_GET[&#039;page&#039;]);&lt;/strong&gt; but DO NOT DO IT! Never directly call an include (or exec, eval, SQL statements) with unprocessed variables  especially from the query string, the easiest way for a visitor to put something other than you planned on.&lt;/p&gt;
&lt;p&gt;I agree it is better to look into the mod_rewrite to make the url look more professional.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Sat, 05 Jul 2008 03:26:19 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1231371 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Welcome to the forums,</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/im-a-noob-need-help-with-php#comment-1231370</link>
    <description> &lt;p&gt;Welcome to the forums, Anub1s!  Hope you come back and visit often. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;To answer your question, something like this in your index.php would do the trick:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;switch (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;page&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;])&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;something&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; include(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;something.php&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&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; case &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;another_page&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; include(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;another_page.php&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&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; default:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; include(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;404.php&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Using the &lt;a href=&quot;http://us2.php.net/manual/en/control-structures.switch.php&quot;&gt;switch&lt;/a&gt; statement, the appropriate page can be loaded based on what is passed to the $_GET[&#039;page&#039;] variable.  The default section should load a 404 page because that means that a page was requested that didn&#039;t meet any of the previous conditions.&lt;/p&gt;
&lt;p&gt;I am curious as to why this looks more professional.  Pages with &lt;a href=&quot;http://en.wikipedia.org/wiki/Query_string&quot;&gt;query strings&lt;/a&gt; are not easily crawled by search engines, and may give your site a lower ranking.  Notice that this site does not make use of them.  There are other ways to use dynamic URLs without the use of query strings.  Apache&#039;s &lt;a href=&quot;http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html&quot;&gt;mod_rewrite&lt;/a&gt; is one of them.&lt;/p&gt;
 </description>
     <pubDate>Sat, 05 Jul 2008 00:08:40 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1231370 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
