mssakib Posted June 30, 2011 Share Posted June 30, 2011 Hi guys i want that there will be 2 part in my index . (or 2 index files) and after clicking yes first part will show and clicking no 2nd part will show. Means When i click yes it will SHOW SERVER IN MAINTENANCE MODE and when no ... normal index page Link to comment https://forums.phpfreaks.com/topic/240836-php-file-to-switch-between-index/ Share on other sites More sharing options...
wildteen88 Posted June 30, 2011 Share Posted June 30, 2011 define what your mean by "clicking no" and "click yes". What are you clicking? What is your question/problem you need help with. Link to comment https://forums.phpfreaks.com/topic/240836-php-file-to-switch-between-index/#findComment-1237011 Share on other sites More sharing options...
MadTechie Posted June 30, 2011 Share Posted June 30, 2011 Better of adding to a config file.. config.php define("MAINTENANCE_MODE",false); start of index.php require_once('config.php'); if(MAINTENANCE_MODE){ header("Location: maintenance.php"); } Link to comment https://forums.phpfreaks.com/topic/240836-php-file-to-switch-between-index/#findComment-1237015 Share on other sites More sharing options...
mssakib Posted June 30, 2011 Author Share Posted June 30, 2011 I mean bro like this So when i click Yes this message will show SITE IN MAINTENANCE MODE and when no the normal index will show Link to comment https://forums.phpfreaks.com/topic/240836-php-file-to-switch-between-index/#findComment-1237016 Share on other sites More sharing options...
xyph Posted June 30, 2011 Share Posted June 30, 2011 A variant of MadTechie's solution is probably your best bet. Link to comment https://forums.phpfreaks.com/topic/240836-php-file-to-switch-between-index/#findComment-1237047 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.