Re: Forum displays PHP code, not website [message #177383 is a reply to message #177381] |
Fri, 23 March 2012 02:23 |
P E Schoen
Messages: 86 Registered: January 2011
Karma:
|
Member |
|
|
"Jerry Stuckle" wrote in message news:jkg6cn$mjd$1(at)dont-email(dot)me...
> On 3/22/2012 4:43 PM, M. Strobel wrote:
>> Hmm - shure? He said "PHP application on the server was missing or
>> defective?".
>
>> Missing not, the code was displayed. Defective? Only when the application
>> printed out PHP code - well, unlikely, but not impossible.
> Yes, it could be an application problem. For instance, using
> short_open_tags in the code and an update to the server disabled them.
Well, it seems fine now, and it's not my server. Thanks for the variety of
comments. I do have a few PHP pages on my websites, and I think they are
well protected enough that the server would never display the code - at
least I hope so, because I have passwords hard coded in them. They are in
directories which have permissions set to 711, so the contents should never
be readable by the public. When I have had configuration problems, generally
I have gotten an error message or not even that. What I have is not very
sensitive or critical but I do have some concerns because I don't really
know this stuff well enough for full confidence.
Just yesterday I had problems with email on my Dreamhost server, and I
noticed that the logs seemed to be missing and not updated since last
August. But apparently there was a change which now requires SFTP / SSH. I
downloaded and installed WinSCP per Dreamhost's recommendation but found
that I can also use FileZilla, so I'll stick with that.
I have a php file for which I have set permissions 711. If the PHP
executable or the configuration had problems, would the source be visible?
http://www.muttleydog.com/RandomQuoteImage.php
Thanks,
Paul
|
|
|