ac11ca
02-17-2012, 07:53 PM
Hello,
Hopefully this is a pretty basic questions, but my level of php knowledge is even more basic at this point...
On my website, a user enters at Page 1, completes a short game on Page 2, and is fare-welled on Page 3. Also on Page 3, a unique text file is created with data and stored on the server in a folder called "data".
Thus, the number of text files in the folder "data" is represents a count of how many users have made it to Page 3.
I would like to know how many users have made it to Page 3 on Page 1. Thus, I was thinking that there might be some php code I could use on Page 1 to search in the server side folder called "data", count how many text files there are, and then create a javascript variable with that number.
Any help would be very appreciated.
Cheers,
Adrian
Hopefully this is a pretty basic questions, but my level of php knowledge is even more basic at this point...
On my website, a user enters at Page 1, completes a short game on Page 2, and is fare-welled on Page 3. Also on Page 3, a unique text file is created with data and stored on the server in a folder called "data".
Thus, the number of text files in the folder "data" is represents a count of how many users have made it to Page 3.
I would like to know how many users have made it to Page 3 on Page 1. Thus, I was thinking that there might be some php code I could use on Page 1 to search in the server side folder called "data", count how many text files there are, and then create a javascript variable with that number.
Any help would be very appreciated.
Cheers,
Adrian