Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
webdriver |
Page: 1 | Reply |
Oct 15th 2002 | #73791 Report |
Member since: Sep 28th 2002 Posts: 85 |
hey all i have made my own working webdriver.....in php [php] if ($act == "") { $act = main; } if ($act == main) { echo "HTML FOR MAIN"; } elseif ($act == about) { echo "ill add the html later but this is the about page"; } elseif ($act == tuts) { echo "HTML FOR TUTORIALS PAGE"; } ?> [/php] the webdriver works and has a atoumatic main if nothing is defined in url and well the only bad thing is i cant put php scripts inside the varibles that hold the html for all the pages and was just wondering how that would be done......later and a webdriver basically stores all pages to your site in one file |
Reply with Quote Reply |
Oct 15th 2002 | #73800 Report |
Member since: Mar 20th 2001 Posts: 3367 |
Try this [php] switch($act) { case "" : case "main" : include("mainpage.php"); break; case "about" : include("aboutpage.php"); break; case " tuts" : include("tutorialspage.php"); break; } ?> [/php] |
Reply with Quote Reply |
Oct 15th 2002 | #73824 Report |
Member since: Apr 1st 2002 Posts: 1487 |
yea be he only wants ONE file. not one file including other files. :/ either way, the switch statement would be alot better to use in my opinion. you can even have php variables. |
Reply with Quote Reply |
Oct 15th 2002 | #73827 Report |
Member since: Mar 20th 2001 Posts: 3367 |
Oh well, just change the stuff to fit your system. switch/case are quite flexible and the codes are alot shorter too
|
Reply with Quote Reply |
Oct 15th 2002 | #73880 Report |
Member since: Sep 28th 2002 Posts: 85 |
no, squid knows what i want
|
Reply with Quote Reply |
Page: 1 | 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. |