More PHP Help

    Date: 03/17/06 (PHP Development)    Keywords: php, html

    Okay, a little back story. For several years now I've had some PHP queries of story listings. I don't want them run repeatedly, so in addition to this I run a cron job with curl statements like:

    curl http://.../all-stories-num.php -o /home/.../all-stories-num.html

    This has worked beautifully, makes an HTML for each file, and I just run it nightly to account for updates during the day. However, as the site has grown, there number of PHP files has grown to 1010. So I thought I'd consolidate them into a few files passing variables in to differentiate. Then still run a cron of curl statements, except now they'd look like this:

    curl http://.../charbytitle.php?cid=80&letter=W&pageno=1 -o /home/.../ofcw.html

    Well after extensive testing, apparently this won't work, at least not the way I've done it. The curl statement doesn't handle the variables passed in.

    Does anyone have any ideas of how else I could get the same effect? i.e. one HTML for each type of query without having to maintain over a thousand PHP files? Or someway to cache the results for 24 hours if I used the PHP files directly?

    cross-posted to '[info]'php and my journal

    Source: http://community.livejournal.com/php_dev/67216.html

« File Manipulation || Abstract: global... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home