For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > January 2006 > code stays hidden ... right ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author code stays hidden ... right ?
Peter

2006-01-18, 6:57 pm

Hi,

I want to try and make a small interactive (word) game voor a group of young
people (part of a bigger game we're setting up for a local scouts group).
They get puzzles and need to send the answer before they get a new puzzle
etc.
I want to do this via php (POST to php script) but I want to make sure that
the only thing they get to see is what the php script echos ?
Or are there ways to download the full php files so that they can see the
code behind it ?? (which would allow them to see the answers) ?


Adam Plocher

2006-01-18, 6:57 pm

As long as you have apache and php setup properly there shouldn't be
any way they can see the source code, unless: they have access to the
web server, you have .phps (PHP Source) extensions setup and are using
them, or you setup your file extensions wrong in apache. If your
script renders the way you expect it to - most likely they can't see
the code.

If you were able to download .php scripts, everybody would be able to
see everyones MySQL passwords and other important hidden stuff.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com