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
183 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now