Jump to content

source security question


ifreborn

Recommended Posts

I think that there is a way for people to view the php source. But if you do that it is considered hacking unless you have privileges. I know this from something that happened to one of my friends website. There was a paypal thing, and someone got to see the source of his codes.
Link to comment
Share on other sites

No one can see your source code of your PHP scripts. It'll only display the output. The only way a person can see the source code to your scripts either the following:
* You save your script in either .phps which highlights the source code (the server must be configured in order for this to happen), or if you save your files with a file extension other than .php. But if you are saving your files as filename.inc everyone can see the source code. UNLESS your server is configured to parse .inc files as PHP
* A hacker manages to obtain your FTP/Web site control panel details

Thats the only way of someone managing to view the source code of your PHP scripts.

Now the reason why people may encode thier source code is because they may be selling thier scripts and dont want thier customers to edit the script in anyway, such as removing the copywrite from the script. Encode/Decoding PHP source code can be very expensive, unless the hacker has a few $1000+ hanging about in order to decrypt the source code.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.