Solved

I use php for a website.  Can a web user access or see code of these php files?

Posted on 2008-10-12
3
185 Views
Last Modified: 2012-05-05
Can php files be accessed or seen by the public?  If so, how can they?
0
Comment
Question by:reontareha
3 Comments
 
LVL 9

Accepted Solution

by:
Sander Stad earned 125 total points
ID: 22700838
PHP is like all other server-based languages meant to only return static content and execute code on the server.
With this in mind, why would you want people to be able to access your PHP pages?
0
 

Author Comment

by:reontareha
ID: 22701324
I DON'T want people to access them for security reasons, thats why i asked the question.  Thanks for your solution.
0
 
LVL 1

Expert Comment

by:butterhook
ID: 22701340
The php scripts themselves will NOT be visible to the outside world.

However the HTML content that they render at execution WILL be visible... but this is the whole idea!

0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question