PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Not if the file has an extension that the webserver recognises as one that needs to be parsed by the PHP engine. For example most webservers are setup with .php as the extension for PHP files, if someone attempts to download one of these files they'll get the output of the PHP script. However, if the same code is placed in a file with a .inc file extension then it might be possible for someone to download the PHP page without it being executed (only not possible if the webserver is setup to view .inc's as PHP files).
Oromian wrote:They aren't nessesarily that big of a security problem.
Of course the question may not be about security it may be that he wants to make PHP source available for download (that's why I purposely didn't phrase my answer as though I was answering a question about security and tried to just give a general response to the actual question asked).
Mac
Last edited by twigletmac on Wed Apr 16, 2003 5:58 am, edited 1 time in total.
Frostbite wrote:you could just put it in a .txt file using notepad and link to it, it will either show the script or you might have to download it first
or you could just use the addslashes() and encode_url() functions.