In responding to a script error in a test page, a moderator pointed out a typo on the live page on my site. I very much appreciate his having brought that to my attention, and I thank him. (The typo has now been corrected.) However, the moderator's ability to have accessed the source code on the server in the first place surprised me. In retrospect, I probably should not have been surprised. I now see how he accessed it, and wonder whether there is a simple way to hide the data on the server page from the world. The particular typo was in an entry in an array.
Thinking out loud, I suppose I could put the array in its own file on the server and access the particular element that I want of the array from the main script. But wouldn't that array file be equally accessible to those who seek it?
A.



Reply With Quote

Bookmarks