2011/6/15 <[email protected]>:
> Hi,
Hi!
> I have a daily show that is called 'Special Program'. The URL and contents
> are determined through a PHP file before the programming day starts.
> I would to retrieve the unique filename of the current day's show, to
> replace
> the current ID3 tag 'title'
>
> code snippet:
>
> ****
>
>
> elsif m["filename"] ==
> "/usr/local/www/rcr/radio/current/special/mp3/today-special-mp3-32.pls"
> then
> ("title", "Special Program - see
> www.RuralCatholicRadio.com for details")
>
>
>
> # I'd like to replace the above with a call to a special file that
> contains the
> filename like this:
>
> #
> elsif m["filename"] ==
> "/usr/local/www/rcr/radio/current/special/mp3/today-special-mp3-32.pls"
> then
> ("title", "Special Program - %include
> "/usr/local/radio/current/special/mp3/title.liq")
>
>
> ***
>
>
> Would this work? Is there another way of including say the contents of a
> one-liner txt/php/or liq file?
This is not going to work, but this:
content = get_process_output("cat /path/to/file.txt")
should :)
However, you may have a trailing \n with this code. If you only want
the first line in the file, you should do:
content = list.hd(get_process_lines("cat /path/to/file.txt"))
Romain
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users