Alright, I've been given a new challenge and am trying to work out the logistics of a solution to it. I'm decent at PHP, but far from an expert. Normally though I can bulldoze through a challenge with what I know, and with an arsenal of resources from books to messageboards. This time, however, I can't quickly visualize a solution. For all the PHP pro's out there, I was wondering if you could provide some general guidence on if PHP could even provide a solution to this particular challenge...
Alright, a freind of mine owns a printing company specializing in clubflyer and business card printing. It's a quick turnaround business (24hr) and would greatly benefit from an eCommerce solution. He'd be selling printing, but depends on files from a client to provide his service, therefore needs to incorporate a file upload tool as well. I can code a shopping cart without too much problem and have already modified a third party script for file uploading that's quite nice (independent of the shopping cart). Now here's the issue...
I'm wondering if there would even be a way to set up a method so that the opportunity to upload a file would only be presented to a successful transaction from the shopping cart, and further, only work one time. In other words, can anyone visualize a way so that the file upload would somehow be 'unlocked' dynamically after the transaction, and then be disabled after it's been used once?
Currently, the file upload exists at a specific URL. Anyone that gets it can upload a file and use it as many times as they want. This is creating an issue with clients uploading files that sometimes mistakenly get printed without being paid for. Unfortunately, there's too many people involved in the process for coherrent communication, so they were hoping for a dummy proof solution like if a file is uploaded, it's paid for a ready to print.