You are here: Re: Prevent loading of php pages « PHP Programming Language « IT news, forums, messages
Re: Prevent loading of php pages

Posted by Jerry Stuckle on 04/27/06 07:59

Garry Jones wrote:
> I have a website consisting of php segments.
>
> Example
> page1.html calls in code from seg1.php and seg2.php
>
> If the user goes directly to www.mydomain.com/seg1.php they see everything
> visible to a browser on that page.
>
> Can I prevent users from loading individual php segments. The only time that
> seg1.php should be visible is in its original context on page1.html
>
> Garry Jones
> Sweden
>
>
>

Simply put them outside of your DOCUMENT_ROOT where they can't be accessed
directly by a browser.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация