How to disable direct access to a file

Posted on 16th Feb 2014 01:33 pm by admin

Suppose I've 2 Files. 1.php & 2.php

I don't want anybody to access 2.php directly from browser. Eg: http://localhost/2.php but I want 2.php show up in 1.php like:
Line number On/Off | Expand/Contract<?phpinclude("2.php");?>

My question is how can I disable direct access using php not .htaccess

No comments posted yet

Your Answer:

Login to answer
299 Like 38 Dislike
Previous forums Next forums
Other forums

Longines часы, Longines HydroConquest
[b]Реплика часы[/b] [b][url=]Ð

Christian Louboutin Sie Sie Peep Toe Pumps Stain Off White [Christian Louboutin0723] - €132.06 : Christian Louboutin Steckdose,
Christian Louboutin Steckdose
Christian Louboutin Rabatt

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

Omega de- ville , de- ville
[b][url=]omega constellation mens[/url][/b] [b]omega deville wa

Replica Baume Mercier Uhren
[b][url=]Kopieren Graham Uhren im Ang

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Google+ Indyaspeak @ Pinterest RSS