Đã hoàn thành

141844 Basic PHP Split Test Script

Specifications for Basic Split Test PHP Script

The name of the file should be index.php. It will be referenced as the root index file of a website OR subdirectory of a website.

The purpose of the file is to randomly serve a version of a webpage to website visitors, but serving the same file to repeat visitors.

Sequence of operation:

1. When someone triggers the script, it will first search for a cookie referencing a previously visited version of the webpage. If the cookie is found and the file referenced still exists, it serves that version.

2. If no cookie is found or the file referenced no longer exists, it looks in its current directory for files fitting the following pattern:

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]


The number of files is variable, it may be one, two, three, however many.

It picks one of these files randomly and serves it transparently.

For example,

if a visitor went to [url removed, login to view]

and [url removed, login to view] was the index file in the /test directory, along with three files fitting the above pattern,

all the visitor would see would be [url removed, login to view] in their address bar, never knowing they had been served a random version and cookied.

3. The script cookies the visitor so they see the same version each time. Since there may be several instances of this script running on the same website, the cookie should ONLY be for the specific URL requested.

4. Each time the script is activated, it should create and/or append (i.e. append to if it exists, create if not) to a csv file named [url removed, login to view] in the same directory where it's located. This CSV file should contain 3 columns: IP address of the visitor, URL requested, cookie status (found, written, or refused), and file version served (i.e. [url removed, login to view], [url removed, login to view], etc).

5. This file should NOT use MySQL or anything else- it should be "drag and drop" assuming appropriate permissions are setup. Try to think of ways it could crash and build in contingencies to make it robust.

I do not always pick the cheapest bidder, but a lower bid does increase the probability of getting the work. This should be quick and easy for someone who knows their stuff.

Kĩ năng: Bất kì công việc gì, PHP

Xem nhiều hơn: script ip address, i went to create website, ip address script, fitting it all in, e serve, basic test, test e, split, Pick basic, pattern repeat, mysql test, basic php, php split csv files, split file php script, file split php script, build website csv file, search bar index, someone knows knows, split file, php create csv file, php random file name, permissions php, php mysql cookie, mysql append, php random name

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

ID dự án: #1888019

Được trao cho:


Hi, this can be done. Available immediately.

$50 USD trong 1 ngày
(0 Đánh Giá)