PHP script to modify a TXT file

Hello. I need a custom script written to process a TXT file. Please give me a quote and when you will be able to complete this gig. I need this completed as soon as possible. If you do a good job for a fair price I have several other gigs for you. Requirements are below and there is an example input and output txt files attached as a ZIP.

Script Overview

1. Process a TXT file stored on the server in the same folder as the php script

2. Display the results in a basic web page with a "copy to clipboard" button


The goal of this script is to take an article that has multiple paragraph and sentence variations and output an article with random paragraphs choosen and sentence variations put in standard jetspinner spintax.


Sentence Unit

• The input TXT is formatted with each sentence on it's own line.

• Each of these sentences is rewritten several times with each new version on a new line.

• At the end of the sentence rewrites there is a new line with the tag "#S#" denoting the end of that "sentence unit"

Intro Paragraph

• There are multiple intro paragraphs.

• At the end of each intro paragraph after the last "sentence unit" tag there is a new line with the tag #IP# denoting the end of that "intro paragraph".

• An intro paragraph is always used at the beginning of the output article

Concluding Paragraph

• There may or may not be concluding paragraphs

• At the end of each concluding paragraph after the last "sentence unit" tag there is a new line with the tag #CP# denoting the end of that "concluding paragraph".

• A concluding paragraph is always used at the end of the output article

Body Paragraphs

• There are multiple body paragraphs (usually 15)

• At the end of each body paragraph after the last "sentence unit" tag there is a new line with the tag #P# denoting the end of that "body paragraph".

• Body paragraphs can be used anywhere in the article except as the first or last paragraph

• If there are no concluding paragraphs, a body paragraph can be used as the last paragraph

Double Line Break

• Some paragraphs in the input TXT contain the tag #SB#

• This should be treated as a double line break in the output TXT

• The point is to make a single paragraph unit look like two paragraphs

HTML Lists

• Some paragraphs may contain HTML for ordered or unordered lists.

• When a <ul> or <ol> tag is encountered there should be a line break preceding it and each <li> should go on it's own line.

Random Processing

• Randomly choose one Intro Paragraph

• Randomly choose 4 to 6 Body paragraphs

• If present, randomly choose one Concluding paragraph

• Assemble all sentences within a sentence unit into spintax format

• Assemble sentence units into a paragraph

Additional notes

• Sometimes there are two sentences within one line but this should still be treated as a single sentence that stays together. The line break is the delimiter.

• The number of sentences per paragraph in the input file varies

Taidot: PHP

Näytä lisää: web gigs, web gig, price file, php new version, php gigs, new line in php, make a quote, Make an intro,, li-be, intro php, intro custom, give me a job, gigs on line, gigs on, gig number 2, all the gigs, all gigs, 2 gigs, may li, txt, one line php, ol, file folder, php modify php file

Tietoa työnantajasta:
( 0 arvostelua ) Clearwater, United States

Projektin tunnus: #1687942

20 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hi Ready to start Thanks..

$90 USD 5 päivässä
(258 arvostelua)

Sri Technocrat is marvelous in its quality. We have been maintaining the quality in every field whether it is services or training. We have proved our stability. We have been working with the same grace & quality. Our Lisää

$150 USD 5 päivässä
(55 arvostelua)

Hello, I read the description and the sample files. Have some questions.

$200 USD 3 päivässä
(282 arvostelua)

Hi, experienced Web Developer. Kindly check PMB. Regards

$90 USD 0 päivässä
(198 arvostelua)

Lets start the work.

$250 USD 3 päivässä
(61 arvostelua)

After going through your description we feel confident of delivering you the best possible results,please check PMB. Thanks

$150 USD 7 päivässä
(71 arvostelua)

Hi, PHP expert since 5 years, ready to start it right now. Thanks Harish.

$99 USD 2 päivässä
(74 arvostelua)

I can do this work efficiently.

$250 USD 6 päivässä
(39 arvostelua)

Hello, I have gone through your project and attachment input and output text file. I am an expert of PHP and mysql, so I can easily complete the project. I have few question. Please refer PMB. Regards, Sadhan.

$100 USD 1 päivässä
(32 arvostelua)

PHP Expert here; Check your PMB.

$120 USD 2 päivässä
(26 arvostelua)

Hi. Details in PM.

$60 USD 1 päivässä
(16 arvostelua)

Hello, I have doing TXT file editing in most websites, I am new to freelancer and really hope you trust me with no feedback and we can work together :)

$50 USD 1 päivässä
(11 arvostelua)

I'm German, living in Bangkok. Please look at my portfolio.

$97 USD 1 päivässä
(5 arvostelua)

Hi. I'm experienced PHP developer. Please see my reviews. Always solid and reliable, you'll be satisfied. I'll be available 10 AM CET

$120 USD 3 päivässä
(7 arvostelua)

Hi, Please Read Your PM.

$250 USD 10 päivässä
(1 arvostelu)

Custom Software Development - <b><i>Removed by Admin</i></b>

$250 USD 1 päivässä
(0 arvostelua)

Hi, I am new to've been doing php scripts like this for a while.I am ready to do this at the lowest rate.

$30 USD 2 päivässä
(0 arvostelua)

I can do this using PHP regular expressions, string manipulations and file handling. I am aware of JetSpinner syntax. I have over 5 years of experience in PHP, Javascript, MYSQL development. The website is [url removed, login to view] Lisää

$30 USD 3 päivässä
(0 arvostelua)

Hi. I am new to freelancing, but this is even more easy than mid-school programming competitions. I am ready to start, and I am proud of you! Thank you. Juraj.

$150 USD 3 päivässä
(0 arvostelua)

Hello sir , solution is here . I think I can help you , if you please consider my bid

$30 USD 2 päivässä
(0 arvostelua)