Topic awaiting preservation: Can people read your php code? |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Australia |
posted 08-20-2005 02:13
I should probably test this but someone might know already! Is it possible for someone from domainB.com to read the contents of your php file (i.e the code) from domainB.com. |
Paranoid (IV) Inmate From: Florida |
posted 08-20-2005 02:52
Nothing online is secret. |
Bipolar (III) Inmate From: Australia |
posted 08-20-2005 04:56
Not true, but does anyone know the answer to the above? |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 08-20-2005 10:02
If your webserver is configured correctly, it will indeed not deliver unprocessed php files - so all anyone get's to see is the output of your script. |
Bipolar (III) Inmate From: Australia |
posted 08-20-2005 12:37
Cheers TP, thought so. Any idea if its possible to reverse code that has been compiled into binary?? Im guessing not. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 08-20-2005 18:06
If the webserver is configured correctly like TP said they will not be able to access your PHP file's code when they browse to your site via http (e.g. the normal web surfer). |
Bipolar (III) Inmate From: Australia |
posted 08-21-2005 02:54
Yeh, i like having .inc extensions and that sort of stuff, but i always do say myfile.inc.php, read about that somewhere! I *think* my server would be setup properly, the only way to tell would be for me to test it i guess! |
Maniac (V) Mad Scientist From: :morF |
posted 08-21-2005 04:04
The server works off the final extension (and the MIME type, I think, not entirely sure), so You could call the file myfile.inc.blah.foo.bar.quux.php and it would still process it as a PHP file, since the final etension is .php. I believe most Apache HTTPD servers are set up to process as PHP (by default) .php .php3 .php4 and .phtml... and they're setup to output as coloured syntax .phps |