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

Help with PHP included files
Author: Message:
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
O.P. Help with PHP included files
Hi, i need some help with PHP...

as you know, PHP allows you to include files in a similar way as C's #include......

Well, i want to know a way to detect if a file is being included or if it is called directly in the browser...

Example:

I have 2 files: a.php and b.php . In b.php i have:
code:
include 'a.php';


and I want to write some code to produce an error when the user goes to http://my_server/a.php but that everything goes well when the page is loaded through b.php


Thanks;)

This post was edited on 09-14-2005 at 08:09 PM by Choli.
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
09-14-2005 08:09 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help with PHP included files - by Choli on 09-14-2005 at 08:09 PM
RE: Help with PHP included files - by hmaster on 09-14-2005 at 08:17 PM
RE: Help with PHP included files - by Choli on 09-14-2005 at 08:42 PM
RE: Help with PHP included files - by KeyStorm on 09-14-2005 at 08:45 PM
RE: Help with PHP included files - by hmaster on 09-14-2005 at 08:48 PM
RE: Help with PHP included files - by Choli on 09-14-2005 at 09:29 PM
RE: Help with PHP included files - by surfichris on 09-14-2005 at 10:27 PM
RE: Help with PHP included files - by KeyStorm on 09-14-2005 at 10:29 PM
RE: Help with PHP included files - by Choli on 09-14-2005 at 10:32 PM
RE: Help with PHP included files - by surfichris on 09-14-2005 at 10:34 PM
RE: Help with PHP included files - by KeyStorm on 09-14-2005 at 10:39 PM
RE: Help with PHP included files - by wj on 09-15-2005 at 04:20 PM


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