Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
need a script for making xml site map
Old 03-07-2010, 09:57 AM need a script for making xml site map
Novice Talker

Posts: 6
Trades: 0
HI
I update my web site with 5 or 6 content every day . I need a script that it makes xml site map automatically . Because it is hard work to make it every day .

I know that I should use cronjob but i need a script that make an xml site map daily and save it in my the root of my host

How can I do so ?

thanks
hno2005 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-07-2010, 12:57 PM Re: need a script for making xml site map
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
If you are using a CMS like Wordpress chances are there is an existing site map plugin that you can use. Otherwise google "PHP sitemap generator" and I'm sure you'll find plenty of generic sitemap generators.

With regard to the cronjob. You can avoid using cron by having the sitemap generated every time you add or update your content. You may or may not want to do this depending on how expensive the sitemap generating process is.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 03-08-2010, 11:52 AM Re: need a script for making xml site map
Novice Talker

Posts: 6
Trades: 0
Quote:
Originally Posted by NullPointer View Post
If you are using a CMS like Wordpress chances are there is an existing site map plugin that you can use. Otherwise google "PHP sitemap generator" and I'm sure you'll find plenty of generic sitemap generators.

With regard to the cronjob. You can avoid using cron by having the sitemap generated every time you add or update your content. You may or may not want to do this depending on how expensive the sitemap generating process is.
I don't using wordpress , I have tried some script that make xml site map automatically but unfortunately they weren't work good ,

What do you suggest ? I want a good xml site map script that it do it daily ?

how can I do so ?

thanks
hno2005 is offline
Reply With Quote
View Public Profile
 
Old 03-08-2010, 12:36 PM Re: need a script for making xml site map
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Here is a custom sitemap I made for my work website using zencart. It has a login area to choose what to map, and the same script also acts as the xml generator to searve the sitemap. You will need to rework it to make it work for your own needs.

Database Tables:
Code:
CREATE TABLE `sitemap_sections` (
  `sitemap_key` varchar(50) NOT NULL default '',
  `title` varchar(255) NOT NULL default '',
  `default_priority` int(3) unsigned default NULL,
  `sort` int(5) unsigned NOT NULL default '0',
  `status` tinyint(1) unsigned NOT NULL default '1',
  PRIMARY KEY  (`sitemap_key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `sitemap_options` (
  `id` int(11) unsigned NOT NULL default '0',
  `sitemap_key` varchar(50) NOT NULL default '',
  `link_key` varchar(100) default NULL,
  `priority` int(3) unsigned default NULL,
  PRIMARY KEY  (`id`,`sitemap_key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
.htaccess:
Code:
RewriteEngine On
RewriteBase /
# Google Sitemap
RewriteRule ^sitemap\.xml$ sitemap\.php?xml=1 [L]
RewriteRule ^sitemap\.([a-z]+)\.([0-9.]+)\.xml$ sitemap\.php?xml=1&sec=$1&id=$2 [L]
RewriteRule ^sitemap\.([a-z]+)\.xml$ sitemap\.php?xml=1&sec=$1 [L]
Attached Files
File Type: txt sitemap.php.txt (29.4 KB, 1 views)
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to need a script for making xml site map
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38190 seconds with 13 queries