Find Jobs
Hire Freelancers

Webpage Replication script via searc/replace (php)

$30-250 USD

Closed
Posted over 15 years ago

$30-250 USD

Paid on delivery
I would write this myself, but don't have time - any good programmer could do this quickly. I need a php script that replicate/create web pages based on a single web page template. This script will search a template page for string markers and substitute a given string for each marker. A single CSV file is used to guide the substitution and replication. Each line in the file is a record and used to create a single new(replicated) web page. The comma-seperated values(fields) in each record(line) contains the information(string) to be substituted in the page. One field in each line is also used to create the web page file name. The script will create a new web page from the template for each and every record(line) in the CSV file. ## Deliverables programmer will deliver a SINGLE working php script called ***[login to view URL]*** that will work on any website supporting php 5.0 or above. I will provide the test CSV file and template. The script will read the template and CSV files and create and name multiple replicated copies of the template page with substitutions from the CSV file made in the copied page. It will also set/change the chmod permissions for the file (assume a unix/linux environment for this). I will provide detials on how I wish the script to work. Except for the first line of the CSV file, the script will create a new replicated/copied web page for each record(line) in the CSV file, looping through the file till all the pages are created. If, for example, the CSV file has 100 records(lines) NOT counting line 1, it will create 100 new pages. The script, for each page created, will loop thru the template as many times as necessary to find ALL occurances of the marker text (from line 1) for as many fields as there are in the record(line). If Line 1 has 10 fields, then the script will be making 10 sets of search and replace operations for each page. NOTE! If a value "skip" is passed to the script, before it copies/creates the replicated page, the script will check to make sure it does not exist. If it does, and skip was specified, that page is NOT created and that record(line) in the CSV is skipped. The script will use variables to identify the files to use, location paths, etc. The fields(values) in the very first record(line) of the CSV file will contain the text strings (markers) in the template file to look for, to be substituted. All the rest of the records(lines) will contain the text to substitute where the corresponding marker is found in the template. **for example:** if field 2 of the first line is FIRSTNAME, and the contents of field 2 in record(line) 2 is "joe", then the script, when creating the page for record(line) 2, will search the template file for EVERY occurance of the string FIRSTNAME and change FIRSTNAME to "joe" For each page created, [login to view URL] will chmod the created page to 775. * * *This broadcast message was sent to all bidders on Wednesday Oct 8, 2008 12:35:38 AM: More Information: === the web page template will vary. But will always be basic html 3.2 page with variables for replacement in the form: blah blah blah ]}FIRSTNAME{[more blah blah === csv will be like: IDCODE,FIRSTNAME,LASTNAME,ADDRESS,CITY,STATE 001,Joe E.,Clayton,890 Lisk,Orange City,FL 002,Steve,Thomas,760 White St.,Orlando,FL OR like: IDCODE,FIRSTNAME,LASTNAME,ADDRESS,CITY,STATE "001","Joe E.,Clayton","890 Lisk","Orange City","FL" "002","Steve","Thomas","760 White St.","Orlando","FL" the output would look like, for page 001,: blah blah blah Joe [login to view URL] blah blah ==== the first field of the CSV will always be a number string, which be used inside the template as well as to name the file. Example is: IDCODE,FIRST NAME,LAST NAME 001,Joe e.,Clayton the template will have a file name like: [login to view URL] which means the first replicated page is named [login to view URL] and since I expect robust error checking ==== * * *This broadcast message was sent to all bidders on Wednesday Oct 8, 2008 2:50:16 AM: I changed the max bid amount to 100. This program is just not that difficult. :-) * * *This broadcast message was sent to all bidders on Sunday Oct 12, 2008 10:37:37 PM: additional information: One small item left out of initial write-up: all CSV files will always have 2 fields - an IDCODE used to number and name the output files, and an email address of the output file user. The script needs to send an email to the email addrss (I will provide the email text template) notifying them when the page has been created.
Project ID: 3287573

About the project

17 proposals
Remote project
Active 16 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
17 freelancers are bidding on average $111 USD for this job
User Avatar
See private message.
$170 USD in 5 days
4.9 (712 reviews)
8.6
8.6
User Avatar
See private message.
$76.50 USD in 5 days
4.7 (74 reviews)
6.8
6.8
User Avatar
See private message.
$51 USD in 5 days
4.9 (116 reviews)
6.6
6.6
User Avatar
See private message.
$85 USD in 5 days
5.0 (60 reviews)
5.7
5.7
User Avatar
See private message.
$169.15 USD in 5 days
4.9 (32 reviews)
5.4
5.4
User Avatar
See private message.
$85 USD in 5 days
5.0 (45 reviews)
5.4
5.4
User Avatar
See private message.
$127.50 USD in 5 days
5.0 (32 reviews)
4.6
4.6
User Avatar
See private message.
$68 USD in 5 days
4.9 (40 reviews)
4.5
4.5
User Avatar
See private message.
$42.50 USD in 5 days
5.0 (42 reviews)
4.4
4.4
User Avatar
See private message.
$204 USD in 5 days
5.0 (20 reviews)
4.2
4.2
User Avatar
See private message.
$212.50 USD in 5 days
4.2 (14 reviews)
5.0
5.0
User Avatar
See private message.
$59.50 USD in 5 days
5.0 (19 reviews)
3.9
3.9
User Avatar
See private message.
$61.20 USD in 5 days
4.9 (40 reviews)
4.1
4.1
User Avatar
See private message.
$25.50 USD in 5 days
5.0 (19 reviews)
2.9
2.9
User Avatar
See private message.
$25.50 USD in 5 days
4.9 (10 reviews)
2.6
2.6
User Avatar
See private message.
$212.50 USD in 5 days
4.5 (1 review)
1.3
1.3
User Avatar
See private message.
$212.50 USD in 5 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of
4.9
38
Member since Aug 13, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.