Gossamer Forum
Home : Products : Links 2.0 : Customization :

Make the Categories HTML Pages All Done by CGI

Quote Reply
Make the Categories HTML Pages All Done by CGI
Hello everyone!

I searched the forums before I posted this but didn't find anything.

I want to make all the category pages done by cgi because I have a web host that I have been told it banning the use of Links because it makes to many HTML pages so this could really help. Could detail.cgi do this? It seems like it could?

Thanks for any help you can give me and God bless!



<><-----------------><>
Daniel
AKA Dan the Great
<><-----------------><>
Quote Reply
Re: Make the Categories HTML Pages All Done by CGI In reply to
Search this forum for Category and Search Sort Mod. You can use the file called category.cgi to "dynamically" display category pages. However, keep in mind that the script does take up a lot of CPU, which is probably another concern of your hosting company.

Regards,

Eliot Lee
Quote Reply
Re: Make the Categories HTML Pages All Done by CGI In reply to
i made a category.cgi as well as the detail.cgi..

category.cgi is a bit harder to use though..

http://jsu7785.hypermart.net/category.txt

i think to call a category.. you do..

category.cgi?category=Software/Sub

Jerry Su
email@jerrysu.com
http://www.jerrysu.com/
Quote Reply
Re: Make the Categories HTML Pages All Done by CGI In reply to
eliot beat me.. like usual.. 1 minute

Jerry Su
email@jerrysu.com
http://www.jerrysu.com/
Quote Reply
Re: Make the Categories HTML Pages All Done by CGI In reply to
Thanks for providing the link, Jerry.

Regards,

Eliot Lee
Quote Reply
Re: Make the Categories HTML Pages All Done by CGI In reply to
Thank you very much for your help!

How does category.cgi take up that much space? Isn't it still less than plain HTML pages?



<><-----------------><>
Daniel
AKA Dan the Great
<><-----------------><>
Quote Reply
Re: Make the Categories HTML Pages All Done by CGI In reply to
Uh...you misunderstood my warning...It is NOT a matter of disk space with the category.cgi, but the processing time, memory, CPU and other server resources that this particular Mod consumes. It is not a criticism of Widgetz, but how servers process standard CGI scripts....

For example, when I tested Widgetz script awhile back, the script was using the following server resources:

In Reply To:
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
10439 nobody 58 0 4692K 5404K run/0 0:14 88.56% 45.00% category.cgi
Not too bad...for one user...but compound these figures with multiple users and you could be negatively impacting the server resources you have been allocated.

Got it?

Regards,


Eliot Lee
Quote Reply
Re: Make the Categories HTML Pages All Done by CGI In reply to
In Reply To:
I have been told it banning the use of Links because it makes to many HTML pages
Are you sure that's what they're concerned about. If it really is, in links.cfg change:

# Number of links per page.
$build_links_per_page = 10;


to a higher number than you have now. If yours is set at the default 10, changing it to 25 will reduce the number of pages built by 60%.

An example is if your Links installation generated 100 pages with 10 links per page, changing it to 25 would (theoretically) reduce the number of pages of links built to 40.

Of course this will do nothing for the number of category pages you have.

Dan O.
http://Appliance411.com
Home Appliance Information



Quote Reply
Re: Make the Categories HTML Pages All Done by CGI In reply to
In Reply To:
to a higher number than you have now. If yours is set at the default 10, changing it to 25 will reduce the number of pages built by 60%.
Possibly...but the disk space is still the problem. Reducing the number of pages will not necessarily reduce disk space. And in terms of downloading for end users, having a lot of links in one web page increases the size of the page (file), which makes it more challenging to download that page (file).

Regards,



Eliot Lee
Quote Reply
Re: Make the Categories HTML Pages All Done by CGI In reply to
In Reply To:
I want to make all the category pages done by cgi because I have a web host that I have been told it banning the use of Links because it makes to many HTML pages so this could really help.
This doesn't make any sense to me. What difference does it make how many html pages you have on your site or, for that matter, what created them. You could have just as many by manually creating them. Any hosting company that complains about the number of html pages is off the deep end unless the (disk space) quota for the particular user is being exceeded.

Are you sure this is what they said? If they ban Links for that reason, I would change hosts if I were you.

- Bobsie
bobsie@orphanage.com
http://goodstuff.orphanage.com/
Quote Reply
Re: Make the Categories HTML Pages All Done by CGI In reply to
Hey http://jsu7785.hypermart.net/category.txt is gone! please can somebody give me the good link thnx!

Quote Reply
Re: Make the Categories HTML Pages All Done by CGI In reply to
Like I mentioned in YOUR Thread...IT IS NO LONGER AVAILABLE! Wink

Regards,

Eliot Lee