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:
surfichris
Former Admin
*****

Avatar

Posts: 2365
Reputation: 81
Joined: Mar 2002
RE: Help with PHP included files
quote:
Originally posted by hmaster
A friend (Zero1) has told me you need to create a session
I have no idea how to work it (im still figuring it out) if you wanna have a crack at it
http://php.net/session_start

Oh and he said example 1 should really do what you want to do
What kind of dodgy way is that? Why do something like that when it can be accomplised like this:

a.php
code:
<?php
if(!defined("IN_SCRIPT"))
{
    die("You can't call this file directly");
}
... your code here
?>


b.php
code:
<?php
define("IN_SCRIPT", 1);

.. your code here
?>


Easy!

This post was edited on 09-14-2005 at 10:28 PM by surfichris.
09-14-2005 10:27 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