What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Help with PHP included files

Pages: (2): « First « 1 [ 2 ] Last »
Help with PHP included files
Author: Message:
KeyStorm
Elite Member
*****

Avatar
Inn-sewer-ants-pollie-sea

Posts: 2156
Reputation: 45
38 / Male / –
Joined: Jan 2003
RE: Help with PHP included files
code:
<?php
if($_SERVER['SCRIPT_FILENAME'] == __FILE__)
{
  header("HTTP/1.0 401 Unauthorized");
  die("Go away");
}
?>

Is a universal solution to the problem. (Y)

This post was edited on 09-14-2005 at 10:39 PM by KeyStorm.
09-14-2005 10:39 PM
Profile E-Mail PM Web Find Quote Report
wj
Former Admin
*****

Avatar
I aim to misbehave.

Posts: 2224
Reputation: 52
39 / – / Flag
Joined: Mar 2002
RE: Help with PHP included files
That would be a NICE way to protect CSS files.....
"A towel is about the most massively useful
thing an interstellar hitchhiker can have."
09-15-2005 04:20 PM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On