|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
page.php?id=blablabla
Can someone sort out the code for me?
thanks I wanna make it so all pages will be in /pagecontent/ folder and it will only do pages from that folder If you can do it, that would be great |
#2
|
||
|
Code:
<? $id=$_GET['id']; If(eregi("^[A-Za-z0-9_-]+$",$id) AND file_exists("./pagecontent/".$id.".php")) { include("./pagecontent/".$id.".php"); } Else { echo "file dosen't exist"; } ?>
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq Last edited by Scott; 12-22-2005 at 11:34 AM. |
#3
|
||
|
Cheers Panther, one more thing though mate - can i chat to you on MSN later?
Thanks |
#4
|
||
|
No!
He needs to go out and get a life. It's Xmas for crying out loud!! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Uploader leaking PHP in page | brink | phphq.Net Forums | 1 | 09-29-2008 07:21 PM |
PHP Page Problem | Webviper2006 | Web design and Programming | 7 | 02-01-2006 08:45 PM |
php?id= | spinal | Web design and Programming | 15 | 06-20-2005 04:27 PM |
<Previous page 1 2 3 4 5 6 next page> script | big n00b at php | phphq.Net Forums | 4 | 03-11-2005 12:35 PM |
php-page | XenoMorpH | Web design and Programming | 1 | 05-03-2003 04:34 AM |