![]() Topic awaiting preservation: Can people read your php code? (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Australia |
![]() 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 |
![]() Nothing online is secret. |
Bipolar (III) Inmate From: Australia |
![]() Not true, but does anyone know the answer to the above? |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() 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 |
![]() 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 |
![]() 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 |
![]() 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 |
![]() 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 |