<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1024927" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1024927</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/generating-titles-alot-html-pages#comment-1152186</link>
    <description> &lt;p&gt;Yup... use the ucwords() function ie: (add the following at the bottom of the large block of php).&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$fullTitle = ucwords($fullTitle);&lt;/code&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 May 2004 09:58:49 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1152186 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/generating-titles-alot-html-pages#comment-1152050</link>
    <description> &lt;p&gt;Just a couple more questions, if I can!&lt;/p&gt;
&lt;p&gt;Is there any way to capitilaze the first letter of each word?&lt;/p&gt;
&lt;p&gt;Just to make it look a little more professional...&lt;/p&gt;
&lt;p&gt;Cause right now the title it&#039;s showing looks like this for example:&lt;/p&gt;
&lt;p&gt;MySitesName.com - rolling stones - paint it black&lt;/p&gt;
&lt;p&gt;Is it possible to make it:&lt;/p&gt;
&lt;p&gt;MySitesName.com - Rolling Stones - Paint It Black ?&lt;/p&gt;
&lt;p&gt;2nd question:&lt;/p&gt;
&lt;p&gt;Is there a way, using PHP, to make navigational, kind of &quot;you are here&quot; links somewhere in the file, that would look like this:&lt;/p&gt;
&lt;p&gt;(Using the same example, if you were looking at Rolling Stones, Paint it Black file)&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.mysitesname.com&quot;&gt;MySitesName.com&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.mysitesname.com/r&quot; /&gt;MySitesName.com - R&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.mysitesname.com/r/rolling_stones&quot; /&gt;MySitesName.com - R - Rolling Stones&lt;/a&gt;&lt;br /&gt;
MySitesName.com - R - Rolling Stones - Paint It Black (This one would just be text, no link)&lt;/p&gt;
&lt;p&gt;These aren&#039;t absolutely necessary, so if it&#039;s difficult to do, nevermind... &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;Thanks again.&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 May 2004 22:39:20 +0000</pubDate>
 <dc:creator>Tabble</dc:creator>
 <guid isPermaLink="false">comment 1152050 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/generating-titles-alot-html-pages#comment-1152048</link>
    <description> &lt;p&gt;you can download a php/mysql/apache bundle to your computer if you wanted, to test stuff before uploading, firepages.com.au is one of the many places that offers them.&lt;/p&gt;
&lt;p&gt;Warning: PHP (and others) can be addicting, may cause many hours in front of your pc, your pets may disown you, you family forget who you are, you may even loose track of day and night and missing commas, quotes and/or semi commas may become the thing you dream about (nightmares), bewarned muhahahaha &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 May 2004 22:31:35 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1152048 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/generating-titles-alot-html-pages#comment-1152046</link>
    <description> &lt;p&gt;I&#039;m gonna feel silly saying this, but I had forgotten you have to upload it to your server for php to work, lol...&lt;/p&gt;
&lt;p&gt;I was just opening the .php with internet explorer on my computer.&lt;/p&gt;
&lt;p&gt;(told you I was a newbie when it comes to php!) &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 May 2004 21:49:22 +0000</pubDate>
 <dc:creator>Tabble</dc:creator>
 <guid isPermaLink="false">comment 1152046 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/generating-titles-alot-html-pages#comment-1152044</link>
    <description> &lt;p&gt;What was the change between your two posts?&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 May 2004 21:42:31 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1152044 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/generating-titles-alot-html-pages#comment-1152042</link>
    <description> &lt;p&gt;OH MY GOD IT WORKED...  LOL, you have no idea how long I have been trying to fix this problem.&lt;/p&gt;
&lt;p&gt;THANK U SO MUCH GREG!!!!!!!! &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;
 </description>
     <pubDate>Mon, 24 May 2004 21:35:46 +0000</pubDate>
 <dc:creator>Tabble</dc:creator>
 <guid isPermaLink="false">comment 1152042 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/generating-titles-alot-html-pages#comment-1152041</link>
    <description> &lt;p&gt;url?&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 May 2004 21:35:18 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1152041 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/generating-titles-alot-html-pages#comment-1152040</link>
    <description> &lt;p&gt;I&#039;m pretty newbie when it comes to PHP...&lt;/p&gt;
&lt;p&gt;I changed the extension of 1 of the files to .php, added the code, and the end result is the title being:&lt;/p&gt;
&lt;p&gt;&quot;?= $fullTitle ?&quot;&lt;/p&gt;
&lt;p&gt;Is there something else I have to do with code?&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 May 2004 21:22:36 +0000</pubDate>
 <dc:creator>Tabble</dc:creator>
 <guid isPermaLink="false">comment 1152040 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/generating-titles-alot-html-pages#comment-1152039</link>
    <description> &lt;p&gt;Greg, thanks! I&#039;ll give it a shot!&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 May 2004 21:16:32 +0000</pubDate>
 <dc:creator>Tabble</dc:creator>
 <guid isPermaLink="false">comment 1152039 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/generating-titles-alot-html-pages#comment-1152038</link>
    <description> &lt;p&gt;The following is an example using PHP that should work, based on the following:&lt;/p&gt;
&lt;p&gt;1. All the files will need to be changed from a .html to a .php&lt;br /&gt;
2. All files do have both a artist and song name&lt;br /&gt;
3. There is no actual use of a hyphen in the artist name or song name (I&#039;d recommend using another character that can be used in a filename that is less likely to be used).&lt;br /&gt;
4. There is no error checking in this, and I haven&#039;t actually tested it.&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;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Set main title&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mainTitle &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;MySitesName.com\&quot;;&lt;br /&gt;&lt;br /&gt;// Get the name of the current file, minus its extension&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$curFile&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = basename(__FILE__, \&quot;.php\&quot;); &lt;br /&gt;&lt;br /&gt;// Replace all the \&quot;_\&quot; with spaces&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$curFile&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = str_replace(\&quot;_\&quot;, \&quot; \&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$curFile&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;// Split it up to Artist and Song by the \&quot;-\&quot;&lt;br /&gt;list(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$artist&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$song&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) = explode(\&quot;-\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$curFile&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fullTitle&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$mainTitle&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot; - \&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$artist&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot; - \&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$song&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;title&amp;gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fullTitle&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; &amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt; :&lt;br /&gt; :&lt;br /&gt; :&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;For more help on how any of this works (or should work &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt; look up the commands at &lt;a href=&quot;http://www.php.net/manual/en/&quot; class=&quot;bb-url&quot;&gt;http://www.php.net/manual/en/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
&lt;p&gt;PS, you could also place all the PHP code (top part in the &amp;lt;? ?&amp;gt; tags, including those tags) in a file (say &quot;buildtitle.php&quot;) and then instead on each page you would just need to do a &amp;lt;? include (&quot;buildtitle.hph&quot;); ?&amp;gt; at the top and set the  tag on the page.&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 May 2004 21:12:49 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1152038 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
