PHP Site Map (and Google Sitemap)

by dtbaker

Show:

WBATFTsays

Will this work with php 5?

Posted 1 year ago
Author

dtbaker dtbakerreplied

Yes, this script works fine on PHP4 and PHP5 .

Thanks.

Posted 1 year ago

heppnersays

Purchased

Hi,

Good job. I’d like to hide directory (with subdirectories), how to do it?

Regards,

Paul

Posted 1 year ago
Author

dtbaker dtbakerreplied

Thanks for purchasing, search for this:

$sitemap_ignore_files = array(

on about line 136. if the directory you wish to hide is called “my_directory” then add this just underneath:

"/.*my_directory.*/",

this will hide anything that contains “my_directory” from displaying in the site map.

good luck!

dtbaker

Posted 1 year ago

heppnersays

Purchased

I have “php” directory, when I put

”/.php./”,

it also hides all my files with the php extension

Posted 1 year ago

heppnersays

Purchased

It is also impossible to hide the directory if you have file with name which contains the directory name string. For example: when “tv” is your directory you want to hide then you also hide every file with “tv” string: productiontv.html, studiotv.php, protvshop.php and so on… I think the different method to hide directories is needed.

Posted 1 year ago
Author

dtbaker dtbakerreplied

Hi heppner,

Thank you for the feedback, I will include a separate directory hiding method in the next release.

Posted 1 year ago

Svipicsays

I have Dynamic site in php.

No html files in it. Can it be possible to index all my pages with this sitemap tool or it is for static html sites ?

Posted 1 year ago
Author

dtbaker dtbakerreplied

Hi Svipic,

If you know PHP then yes you will be able to modify this script to read your “page list” out of a database. This really depends on how you have everything set up, it may be easier just to create your own one from scratch.

Posted 1 year ago

pinkfootsays

Purchased

Hello,

i get and error ‘Invalid argument supplied for foreach()’ which is

foreach(glob($directory."*")

i have all my .php files in my public html root along with sitemap.php

Any help will be appreciated.

Thx

Posted 1 year ago

Basboysays

Purchased

Is there a possibility to ignore all maps an then select the maps I want to include… I got a bunch of maps in at my server but 9 out of 10 doesn’t need to come on my sitemap :)

Posted 11 months ago

Basboysays

Purchased

And I’ve got a Wordpress blog in a subfolder, how to get those pages/sitemap :O ?

Posted 11 months ago

cascavalitosays

It will work on a flash site?

Posted 11 months ago

dwebsays

Purchased

Not working with directories !

Posted 10 months ago

DigitalDiggsays

will it work if I have a flash/xml site

Posted 9 months ago

maryalennsays

Purchased

Really like the code and trying to get it to work on my site, but I’m getting an error:

Invalid argument supplied for foreach() in [filepath]/sitemap.php on line 223

Line 223 references the following portion of code:

foreach(glob($directory."*") as $f){

Seems to have a problem with the files that are in the root directory. All other directories are displaying properly.

Any help is appreciated!

Posted 6 months ago
Author

dtbaker dtbakerreplied

shoot me an email with a link to your website with the error and I may be able to help.

Posted 6 months ago

vidalsays

Purchased

HI there,

I would like to index all my pages from cargeni.com but I get errors (http://www.cargeni.com/sitemap.php) and

it looks like it only sitemaps local files and directores, but Dynamic urls, I have over 5000 links… How about the urls to the Car Makes http://www.cargeni.com/browse-makes/acura/ all this links are on http://www.cargeni.com but you script does not index this? How comes

Thanks

Posted 5 months ago
Author

dtbaker dtbakerreplied

This script will only display local files, not dynamic links.

Posted 4 months ago

ybouhlelsays

Purchased

Hi

I have an error! please help me

Parse error: syntax error, unexpected $end in D:\xampp\htdocs\sitemap-demo\sitemap.php on line 355

Thanks

Posted 4 months ago
Author

dtbaker dtbakerreplied

Please try to enable php short open tags in the php configuration

Posted 4 months ago
Purchased

Default-user ybouhlelreplied

thank you very much for your reply dtbaker the problem was solved! I’m sorry I have clicked the wrong reply message ‘report’ I’ sorry agan.

Posted 4 months ago
Purchased

Default-user ybouhlelreplied

sorry for any inconvenience

Posted 4 months ago

and_usasays

Purchased

Hi

I get the same error

Parse error: syntax error, unexpected $end in D:\xampp\htdocs\sitemap-demo\sitemap.php on line 355

And aparently there were some usefull advise in the reply from dt baker. :-)

Well somethimes I also use inappropriate language if things don’t work.

Hope you can help.

Posted 4 months ago

skweezesays

Purchased

I have a very small site (10-15 pages) and I have all my pages sitting on the root and my .htaccess file is rewrting the URLs to look like they are sitting within folders etc. This sitemap generator is not going to work with this or am i wrong?? I have tried it a it just generates the original filenames/extentions and locations of the files and not the ones i’ve rewritten. Is there any way to combat this?

Posted 1 month ago

motherswhoworksays

Purchased

Hi there,

I get a header error message saying the header is invalid when I upload this plugin.

I have edited the header slot, but still get the same error message. Do you know why this is?

Posted 1 month ago
Author

dtbaker dtbakerreplied

No, Since you are having this issue with my other scrips as well then it will be your hosting account. Please contact your hosting provider.

Posted 1 month ago

motherswhoworksays

Purchased

Hi there,

I get a header error message saying the header is invalid when I upload this plugin.

I have edited the header slot, but still get the same error message. Do you know why this is?

Posted 1 month ago
Author

dtbaker dtbakerreplied

No, Since you are having this issue with my other scrips as well then it will be your hosting account. Please contact your hosting provider.

Posted 1 month ago

$6

Prepaid customers
pay just $4 - how? Prepay Your Account With our deposit system not only will purchasing be much faster, but we’ll also take $2 off the price! Find Out More Price

You must sign in or sign up to purchase this item.

12345 ( 34 ratings )

Purchase 160 purchases

File Types Included
PHP
Item Attributes
Created 10 July 09
PHP Version 4.x
MySQL Version N/A
Compatible Browsers FireFox 2, FireFox 3, IE6, IE7, IE8, Safari
ThemeForest Files Included N/A
PHP Files Included PHP
PHP Framework N/A