ATM Posted September 14, 2006 Share Posted September 14, 2006 Could someone please tell me if there is a way to veiw the hidden sorce on peoples php pages, would it be safe to save a password in a php file? Link to comment Share on other sites More sharing options...
aspnetguy Posted September 14, 2006 Share Posted September 14, 2006 there is no way to view the source code in the browser. So yes it is safe to store a password in a php file. Link to comment Share on other sites More sharing options...
businessman332211@hotmail.com Posted September 14, 2006 Share Posted September 14, 2006 The reason noone can see the php information is because when it hits the browser, it's not there to see. The idea of the php processor is to take the php, and at some point output something. To the browser, or only output certain things based on certain conditions, like using includes in an if statement or something. So they request the page, it goes to the processor, it runs the program, and turns whatever it needs to into xhtml output, or css/javascript output if you are using it to output one of those, or vb script then it returns it to the browser, where it ends up running just naturally, as if it had been done with plain static pages, except the output is done with php, but the php is no longer there, just the xhtml/css/javascript or whatever markup that the php processor created with what you told it to create, with echo's and the like. Link to comment Share on other sites More sharing options...
Cronthenoob Posted September 14, 2006 Share Posted September 14, 2006 If someone finds a way to download the file from your web server then its not safe . . . Link to comment Share on other sites More sharing options...
aspnetguy Posted September 14, 2006 Share Posted September 14, 2006 If someone finds a way to download the file from your web server then its not safe . . .If you leave your webserver that open you should not be hosting sensitive information or if your host is that pathetic you need to switch. Link to comment Share on other sites More sharing options...
Cronthenoob Posted September 14, 2006 Share Posted September 14, 2006 If you leave your webserver that open you should not be hosting sensitive information or if your host is that pathetic you need to switch.I guess im a big fat moron. I'm pretty dumb sometimes. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now