Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Curtis Thompson

    June 23, 2005 at 2:24 am

    hello…

    it’s hard to answer all these w/o the context of your actual file…

    i’ve seen your csv example from the other post – i think it will just be easier for me to write you an example rather than try to help you with your existing stuff when i’m so removed…

    give me 30 minutes or so…

    sitruc

  • Curtis Thompson

    June 23, 2005 at 3:30 am

    hello…

    this is much messier than it needs to be due to the rather lax formatting of the time values (like no am/pm for the first time, which requires a lot more logic to figure out what it should be) – but that said, this should be a functioning example:

    https://sitruc.com/cow/radio_schedule/

    the schedule.csv is a full schedule, the schedule.php is the script and the other one is the schedule.php code in a plain txt file…

    tested it with a few varieties of things and it seemed to work ok – again, it would be _immensely_ easier if the times were more structured (i.e. “11am – 1pm”), but this should compensate for the current times. but also note that if you change the format of the file, it might break this script – because of the free-flow nature of the times and day rows, this looks for very specific patterns to properly extract data (it’s the only way it can work, really)…

    sitruc

  • Velocity

    June 23, 2005 at 4:42 am

    a thousand thanks…… saved my deadline!!! many many thanks for your time….. have a great day…
    Ben.

  • Curtis Thompson

    June 23, 2005 at 6:03 am

    hello…

    no problem – be sure to post the site url when you get it done!

    sitruc

Page 2 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy