Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
Targetting in PHP |
Page: 1 2 | Reply |
Jan 27th 2004 | #139788 Report |
Member since: Apr 20th 2002 Posts: 3000 |
The more, the merrier. ;) Off the top of my head, from Marble's [php]Upload Page [/php] [php] $page=(file_exists("includes/".$page.".inc")) ? $page : "default"; include("includes/".$page.".inc"); [/php] Defines page depending if the file exists, if it does, it'll assign page to itself, else sets page to the default. If $page is empty, the file_exists function will return false (unless you have a .inc file in your includes folder... which you won't). |
Reply with Quote Reply |
Page: 1 2 | Back to top |
Please login or register above to post in this forum |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |