Simple Web Image Script
I need a simple PHP script to do the following on a website.
• I want to be able to show an JPG image X amount of times when a URL with certain parameters are called.
• When the image is displayed an email should be sent containing the date / time / IP address look up location and name of image shown
• When the image If the image has already been shown more than X then the image should not be displayed.
• As the parameters are really simple I dont want the hassle of maintaining a SQL database. I want to the information in a text file (which will be read and written to by the script).
• The image must remain hidden unless the correct URL is provided. The image cannot be accessible without the correctly formated URL
The deliverable s will be the script on my webserver. I will provide FTP details.
IMAGE1: [[login to view URL]] - where AAA = image name e.g "[login to view URL]"
NAME1: [BBB] - where B = the image name e.g. "pic"
TRIESLEFT1: [C] - where C = the amount tries on that URL for that image
TIME1: [D] - time in seconds the image is displayed before the screen refreshes
IMAGE2: etc etc - as above
TIME2: etc etc
up to four images in the Text file.
The script needs to check up to 4 possible images in the fields IMAGE1 /2/3/4 - so you will need to open the TXT file and parse it.
The Images need to be in a hidden directory (use an .htaccess) so no one can access them.
IMAGE1: [[login to view URL]]
If the URL http:\\[login to view URL]\?pic=piccyone is called then the follow actions should happen
1) IF TRIESLEFT <>0 then the picuture [IMAGE1 path] will show in the screen
2) after 5 seconds the screen will clear and the picture be removed (try and stop people pausing the script). Blank screen
3) the Text file should be opened adn TRIESLEFT should be decreased by 1
4) Send the email with the subject SUCCESS “piccyone” viewed at YY/MM/DD @ HH:MM from IP “New York, USA”. No need for email body
5) IF TRIESLEFT = 0 then print “Link Expired”
6) And Send an email with the subject “FAIL EXPIRED “piccyone” viewed at YY/MM/DD @ HH:MM from IP “New York, USA”. No need for email body
Team or single person fine.
17 freelanceria on tarjonnut keskimäärin 28£ tähän työhön
Hi, I shall implement a text parser script base on your specifications and process within 2hrs. Kindly reach out. I will be using core php programming to achieve this.
Hi, i can code your script to to display an Image based upon text file config. I can do this in 2 days, all payment after script tested and delivered. I wait your message to start work on it, best regards. Nicolas