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
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

752 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