![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Mar 2002
Location: Los Angeles
Posts: 252
|
Programmers I have a question
If I need to have a cron script that can build thousands pages, is it better to use perl or php, or it doesn't matter?
What problems would I be expecting when it comes to server resources when running such a cron script? Thanks in advance. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: May 2002
Location: MI
Posts: 1,827
|
You could use perl, php, c, python etc., it really doesn't matter. As far as resources it depends on how the script is coded and what kind of memory consumption the arrays, variables, etc are going to use. Just need to be diligent and test other than that it doesn't really matter.
__________________
Latest MMA news. http://www.mmawrapup.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Sep 2001
Location: Boston
Posts: 4,873
|
I think perl is best for that kind of thing
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Nov 2006
Location: ...
Posts: 1,214
|
try perl or php
__________________
Web Developer |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Dec 2005
Posts: 1,261
|
build thousands pages per day ? per month ? per hour ?
Perl is good, but i would use java. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Too lazy to set a custom title
Join Date: Mar 2002
Location: Australia
Posts: 17,393
|
Rather than a flurry of activity at xx:00 then nothing for the next 57 minutes why not write the script so that it paces the updates over the whole hour (or however long)? That way resources will be much less of a concern. (Unless the script hogs a shitload of memory)
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
|
Perl is generally better for parsing and manipulating text. Actually by a long shot, but php deployments are more common. I would say depends. I actually use Ruby for any text automation stuff. It takes the best of a lot of languages and is very useful.
|
![]() |
![]() ![]() ![]() ![]() ![]() |