A few newbie questions
Posted: Sat Dec 04, 2004 7:32 am
Hi there,
I've only just started to use PHP so I have a few questions that I desparately need to know before I can really bog down with development.
1) Are PHP scripts (source) totally invisible to the client? One of my scripts contains sensitive information and I'm frightened that there is a way to get the source of the page.
2) I want to make reusable functions / classes that I can "compile" and call in any PHP page to save myself from having to copy the script. Can this be done and how? Bearing in mind I am developing on a Windows XP Home system and uploading straight to the web server to test. One such function for example increments a hit counter and outputs HTML to display the counter. I would like to call this with 1 line, passing it the necessary parameters to increment the correct hit counter etc.
3) I've just made a function to parse the HTTP query, is there an easier way of doing this? Surely there is a function already written? I don't want to re-invent the wheel so to speak just because I miss something.
Thanks *LOADS* in advance for any help, I've been trying to post in the PHP newsgroups but my posts aren't getting through so I've come to a bit of a brick wall. Cheers again.
Nick.
I've only just started to use PHP so I have a few questions that I desparately need to know before I can really bog down with development.
1) Are PHP scripts (source) totally invisible to the client? One of my scripts contains sensitive information and I'm frightened that there is a way to get the source of the page.
2) I want to make reusable functions / classes that I can "compile" and call in any PHP page to save myself from having to copy the script. Can this be done and how? Bearing in mind I am developing on a Windows XP Home system and uploading straight to the web server to test. One such function for example increments a hit counter and outputs HTML to display the counter. I would like to call this with 1 line, passing it the necessary parameters to increment the correct hit counter etc.
3) I've just made a function to parse the HTTP query, is there an easier way of doing this? Surely there is a function already written? I don't want to re-invent the wheel so to speak just because I miss something.
Thanks *LOADS* in advance for any help, I've been trying to post in the PHP newsgroups but my posts aren't getting through so I've come to a bit of a brick wall. Cheers again.
Nick.