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

Php Help
Author: Message:
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
21 / Other / Flag
Joined: Jul 2003
O.P. Php Help
well its for a tutorial section. each tutorial is a txt file in a far far away folder.
first someone will will choose a language, and then they select a page/tutorial.

i have this so far
[code]
<?php
$page = htmlentities($_GET['page']) ;
$language = htmlentities($_GET['lan']) ;
if (!isset($_GET['page'])) {
if(!isset($_GET['lan'])) {
include ("pages/code/home.txt");
}
else {
include ("pages/code/$language.txt");
}
}
else {
include("pages/code/$language/$page.txt");
}
?>

now i want to create a sorta error page, if the file cannot be found, then it echos "page cannot be found"

thanks for the help :)
01-22-2005 10:18 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Php Help - by Stigmata on 01-22-2005 at 10:18 AM
RE: Php Help - by -dt- on 01-22-2005 at 10:25 AM
RE: Php Help - by Stigmata on 01-22-2005 at 10:31 AM
RE: Php Help - by -dt- on 01-22-2005 at 10:33 AM
RE: Php Help - by Stigmata on 01-22-2005 at 10:37 AM


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