Code in PHP a Spintax Parser/Reader for output to screen
$100-300 USD
Ακυρώθηκε
Αναρτήθηκε περίπου 12 χρόνια πριν
$100-300 USD
Πληρωμή κατά την παράδοση
I am having multiple spintax articles written for clients. I need you to code a PHP parser to read the spintax text file, create an article from it, then save the article to a variable for later writing it to screen.
I have a Spintax article example attached. When we create actual articles, each group will always be 3. The start of a Group is noted with { and the end with }. Items within are separated by | pipe character.
Please note "nested" Spintax groups must be programmed for and handled properly.
Also, these will NOT be "random" selected items. For any given 10 day period I want the "Spintax Parser" to spit out the EXACT same article. You might use logic like:
(UPDATE: use month + day or day of year to make more random. ALSO, could we rotate, it starting position is 1, then go 2,3 then 1,2,3 etc.)
$zsum = (strlen($sname) + date("j")) % 31;
if ($zsum < 11) {$main="[login to view URL]"; }
else if ($zsum < 21) {$main="[login to view URL]"; }
else if ($zsum < 31) {$main="[login to view URL]"; }
The code above is NOT for this "Spintax Parser" but only an example of date coding.
You write and test, I will install and test on my server near end of project.
PLEASE ASK QUESTIONS. Thanks Greg
## Deliverables
SEE ATTACHED ARTICLE SPINTAX EXAMPLE
Also See Attached zip Word Doc to show 10 output examples.