Posted by: Jan
« on: June 17, 2014, 06:46:47 pm »The HTTP text source always reads and processes entire file. An exception exists only for RSS because RSS structure is well known, so RSS can be processed per post.
(This means that getting the text file in XML format (standard RSS 2.0) from the advertiser is one of possible solutions!)
For general http files, the line separator is unknown. It may be br tag, </p>...<p> (HTML) or CR+LF (plain text) as well. Solving the line-per-line task using this method is not effective and it's not supported because (not only) this functionality can be easily provided by PHP or ASP script directly on the web server.
The PHP can generate either a plain text file containing actual text line or a complete website with the text line located anywhere in their content - the Magic RDS can simply find the text field using the following method:
In your PHP file create a line
In the Text source options fill
Cut everything before (and including): <div class="RDS">
Cut everything after (and including): </div>
The text between the div tags will be sent to the RDS encoder.
(This means that getting the text file in XML format (standard RSS 2.0) from the advertiser is one of possible solutions!)
For general http files, the line separator is unknown. It may be br tag, </p>...<p> (HTML) or CR+LF (plain text) as well. Solving the line-per-line task using this method is not effective and it's not supported because (not only) this functionality can be easily provided by PHP or ASP script directly on the web server.
The PHP can generate either a plain text file containing actual text line or a complete website with the text line located anywhere in their content - the Magic RDS can simply find the text field using the following method:
In your PHP file create a line
Code: [Select]
<div class="RDS">.....</div>
In the Text source options fill
Cut everything before (and including): <div class="RDS">
Cut everything after (and including): </div>
The text between the div tags will be sent to the RDS encoder.