Auto-customization of HTML pages - PHP script(repost)

Annulleret Opslået Feb 11, 2012 Betalt ved levering
Annulleret Betalt ved levering

There are several marketing and legal contracts/briefs that users develop. Each of the marketing message needs to be customized with the sales rep's details and sent to customers. It is a similar process for legal contracts and briefs.

I am looking for a simple PHP/Perl script that I can run on a server (potentially on my PC too) that would automate the whole process.

I have tried to document the flow (see detailed requirements) as much as possible in order to make it simple for coding. Please feel free to reach out to me with questions if you need clarifications.

## Deliverables

Detailed Requirements

-----------------------------

a) Users can input details through a simple online form (needs to be created by developer) to capture the following details - UserID/password, Content_name (to determine which folder the files are in), Name_to_embed, free_text_to_embed, Request_number, email-id.

b) Authentication: Read a text file to check if userID/password supplied is correct. Give error if userID/password is not correct. Log errors and requests accepted.

c) Encrypt the Request_number as encrypted_request_number - replace letter/number with letter/number displaced by 9 i.e. A to be replaced with I, B to be replaced with J etc. Feel free to suggest different method/approach for encryption - I am open to suggestions.

d) Copy all the files and sub-folders in the folder, which the Content_name indicates (info provided in a [url removed, login to view]), into a folder named Content_name_encrypted_request_number. All subsequent work happens in this newly created folder.

e) Read a 'config' file to determine the html file and location (unique text in the html file after which to insert) to put the 'Name_to_embed'.

In addition, read the 'config' file to determine the second html file and location to write the 'free text for embedding'

f) Replace all urls ([url removed, login to view]) with [url removed, login to view] in every html file. You can probably use str_replace() for this.

g) Generate a random alphanumeric code for each html page and embed it, as a comment, in a different (randomized) location for each page. It helps to ensure that the promotion is used only once by the recipient.

h) Zip all the contents of the folder (Content_name_encrypted_request_number) as [url removed, login to view] and email the zipped file to email-ID. Promotion name would be in the 'config' file.

i) Rename [url removed, login to view] to Content_name_encrypted_request_number and move the file to an archive folder. Delete the Content_name_encrypted_request_number folder.

j) Write all the data (time/date, all input data provided by user except for password) to a text file.

Create a script to write all the data in the logfile to a database - this script would be run as a cron job once a day. It would also delete log entries already inserted into the database.

An additional option should be to run the script to create multiple customized content files through one command-line execution - the number of files to create would be provided as input. The Request_Number would become a running (increasing) number - one for each file. There is no need to email out the output files.

Perl PHP

Projekt ID: #2710662

Om projektet

2 bud Remote projekt Aktiv Mar 5, 2012

2 freelancere byder i gennemsnit $243 timen for dette job

phpguru2012

See private message.

$250.75 USD in 14 dage
(212 bedømmelser)
6.5
YoctoPetaBorg

See private message.

$234.56 USD in 14 dage
(27 bedømmelser)
4.8