Đã Đóng

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

Purpose

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.

Definitions...

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

Kỹ năng: PHP

Xem thêm: web gigs, web gig, price file, php new version, php gigs, new line in php, make a quote, Make an intro, li.be, 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

Về Bên Thuê:
( 0 nhận xét ) Clearwater, United States

Mã Dự Án: #1687942

20 freelancer đang chào giá trung bình $128 cho công việc này

gopalvora

Hi Ready to start Thanks..

$90 USD trong 5 ngày
(258 Đánh Giá)
7.3
sritechnocrat

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 Thêm

$150 USD trong 5 ngày
(55 Đánh Giá)
7.3
dboyzhang

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

$200 USD trong 3 ngày
(282 Đánh Giá)
7.1
siddhu1986

Hi, experienced Web Developer. Kindly check PMB. Regards

$90 USD trong 0 ngày
(198 Đánh Giá)
6.6
ALSOFT10

Lets start the work.

$250 USD trong 3 ngày
(61 Đánh Giá)
6.6
santoshfree

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

$150 USD trong 7 ngày
(71 Đánh Giá)
6.4
harish1984

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

$99 USD trong 2 ngày
(74 Đánh Giá)
6.3
cygital

I can do this work efficiently.

$250 USD trong 6 ngày
(39 Đánh Giá)
6.1
acecoder84

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 trong 1 ngày
(32 Đánh Giá)
5.4
muhammadghasan

PHP Expert here; Check your PMB.

$120 USD trong 2 ngày
(26 Đánh Giá)
5.2
ViliusSutkus

Hi. Details in PM.

$60 USD trong 1 ngày
(16 Đánh Giá)
4.8
rob022

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 trong 1 ngày
(11 Đánh Giá)
4.7
larsjedinski

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

$97 USD trong 1 ngày
(5 Đánh Giá)
3.6
mic22info

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 trong 3 ngày
(7 Đánh Giá)
3.0
Mubbshirkazmi

Hi, Please Read Your PM.

$250 USD trong 10 ngày
(1 Đánh Giá)
1.8
IEXti438Z

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

$250 USD trong 1 ngày
(0 Đánh Giá)
0.0
jaisonsaji

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

$30 USD trong 2 ngày
(0 Đánh Giá)
0.0
Rathnav

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] Thêm

$30 USD trong 3 ngày
(0 Đánh Giá)
0.0
awjuri

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 trong 3 ngày
(0 Đánh Giá)
0.0
i9nit3

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

$30 USD trong 2 ngày
(0 Đánh Giá)
0.0