What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP Help Wanted (how do I do this: page.php?section=something)

PHP Help Wanted (how do I do this: page.php?section=something)
Author: Message:
Yousef
Full Member
***

Avatar
(previously known as Juzzi)

Posts: 487
Reputation: 19
35 / Male / Flag
Joined: Jul 2004
RE: PHP Help Wanted (how do I do this: page.php?section=something)
quote:
Originally posted by saralk
I would do something like this...

code:
<header>
<?php
if (!$a) { $a = "home"; }

include $a.".txt";
?>
<footer>

then have a file for each page, so index.php?a=links would load links.txt in the middle of the page. This way is better i think because you can add new pages without changing the main file.

It's dangerous to do that. What if I browse to page.php?a=../some_passwd_file
The visitor will be able to access a lot of private files on the server when you use the way saralk suggested, you should build in a protection at least.
Developer of BuddyFuse: Google Talk, Twitter and Hyves in Windows Live Messenger
Ex-Microsoft intern and Windows Live Developer MVP in 2007 & 2008
06-03-2005 09:07 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP Help Wanted (how do I do this: page.php?section=something) - by rav0 on 06-03-2005 at 04:41 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by -dt- on 06-03-2005 at 05:06 AM
RE: RE: PHP Help Wanted (how do I do this: page.php?section=something) - by rav0 on 06-03-2005 at 05:38 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by RaceProUK on 06-03-2005 at 07:09 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by saralk on 06-03-2005 at 09:02 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Yousef on 06-03-2005 at 09:07 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Ezra on 06-03-2005 at 09:13 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Yousef on 06-03-2005 at 09:19 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Ezra on 06-03-2005 at 09:21 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Stigmata on 06-03-2005 at 09:35 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by rav0 on 06-03-2005 at 10:57 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Dempsey on 06-03-2005 at 11:05 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by KeyStorm on 06-03-2005 at 11:21 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by rav0 on 06-03-2005 at 11:23 AM
RE: RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Dempsey on 06-03-2005 at 11:25 AM
RE: RE: RE: PHP Help Wanted (how do I do this: page.php?section=something) - by rav0 on 06-03-2005 at 11:26 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by KeyStorm on 06-03-2005 at 11:33 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