Home Geschichten Kunst Computer Tindertraum

[current]

Manila-RPC with PHP
(Tuesday 6th November 2001)

... ok folks, I started fooling with this stuff yesterday. Got it working after some trial-and-error. Only now I hit the wall, really hard. Here's why: to do a relatively simple task (so it may seem).
the task: get a list of messages on a Manila site for a given day (or month), and display the headers. Then have links to a special script that downloads and converts selected messages...

I need to have about 3-4 XML-RPC requests building upon each other.
  1. manila.getSiteName (siteUrl)
    this is not really neccesary each time...
  2. manila.message.calendar.getDaysInMonth (username, password, siteName, year, month)
    fetch all days that had posts
    • loop: manila.message.getHeaders (siteName, username, password, day)
      get info for each post on the given day... this will run in a loop for each day in the month fetched before...
Which is not a problem in itself. But a normal PHP-process times out after about 30 sec. That's the way it's set up by default. So that's the deal stopper with PHP. One solution would be to break up my task into several steps, storing state-info in a file between requests.... another, maybe more practical is to go for Perl or Python etc. and run this thing as a command-line tool...

[ by Martin>] [permalink] [similar entries]

similar entries (vs):

similar entries (cg):

relevant words



Martin Spernau
© 1994-2003

traumwind icon Big things to come (TM) 30th Dez 2002

Accept advice
Oblique Strategies, Ed.3 Brian Eno and Peter Schmidt



amazon.de Wunschliste





 

usefull links:
Google Graph browser
Traumwind 6-Colormatch
UAV News

powered by SBELT