Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Sitemaps

Sitemaps
Thread Tools
Mac Elite
Join Date: Dec 2004
Status: Offline
Reply With Quote
Apr 16, 2006, 03:50 PM
 
Is there a way to generate a sitemap in a text file without manually typing it all out that can also be updated just as easily?
Anyone who denies climate changes naturally is a Climate Change Skeptic.
     
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status: Offline
Reply With Quote
Apr 16, 2006, 07:01 PM
 
I wrote this PHP code to generate a list of links of all the files I have in a directory.
Code:
if ($handle = opendir('.')) { while (false !== ($file = readdir($handle))) { if($file !="." && $file !=".." && $file !=".DS_Store" ){ print stripslashes("<a href=\"" . "$file\n" . "\">$file</a><br>");} } } closedir($handle);
It could be modified to write the pages to a text file.
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
     
Mac Elite
Join Date: Dec 2004
Status: Offline
Reply With Quote
Apr 17, 2006, 05:14 AM
 
I found an app called RAGE Google Sitemap Automater. It does a very good job and submits the sitemap to Google. The problem is it can only do so to a site that is online not a directory on your computer and it costs money for the full version which I don't know if I should pay because Google Sitemaps I hear can do the same thing for free. I'm not so good at PHP as I have only just learned xhtml and css.
Anyone who denies climate changes naturally is a Climate Change Skeptic.
     
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Apr 17, 2006, 07:54 AM
 
Yes, it would be possible to generate your own sitemap using your scripting language of choice, but that could be fairly involved. You're probably better off using one of the free online generators. I bought the RAGE program but was disappointed because it often didn't work for no apparent reason.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:37 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2