I do make a simple php scripts and use the apache as server and mysql as database.... But when I browse on another PC the php programs output then brown then save the page as is in php format... it saves the same scripts as in what I programmed... How can I protect my scripts from browsing by the another pc / clients
How do I hide php script from browsing page source?
It sounds like Apache is not interpreting the PHP scripts as scripts, so that instead of executing the code, it is simply sending the scripts as data to the client. You'll have to change your server options, and unfortunately, you didn't give enough information for me to give you exact instructions.
Reply:Depending on the webserver, you'll need to add a handler for the php extension.
In apache for example you would add:
AddType application/x-httpd-php .php .phtml
Which tells the server to parse any file with a .php extension.
Reply:Yes, if it is seen as a script it won't be sent to the browser as text.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment