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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

808 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