[thelist] PHP Includes Script

Jeanne Pelletier jpellet at mediaone.net
Fri Feb 8 17:14:01 CST 2002


I think what you're after is this:
example querystring:
index.php?page=links


 include ("$page.txt");

Jeanne
----- Original Message -----
From: <kathryn42 at hushmail.com>
To: <thelist at lists.evolt.org>
Sent: Friday, February 08, 2002 5:43 PM
Subject: [thelist] PHP Includes Script


>
> Hello ... I am trying to write a simple script using PHP but I find myself
very confused ... what I want is something like this:
>
> if there is a querystring (like index.php?links) then grab the query, add
a .txt file extension, and include that file (like if there is the above
address, include links.txt)
> otherwise, include default.txt
>
> The part I'm having the most trouble with is adding the extension - It
works when the address is index.php?links.txt, but not when it's
index.php?links
>
> TIA ~ kathryn
>
> Hush provide the worlds most secure, easy to use online applications -
which solution is right for you?
> HushMail Secure Email http://www.hushmail.com/
> HushDrive Secure Online Storage http://www.hushmail.com/hushdrive/
> Hush Business - security for your Business http://www.hush.com/
> Hush Enterprise - Secure Solutions for your Enterprise
http://www.hush.com/
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !




More information about the thelist mailing list