FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP page can't be loaded





takashiro
This is a part of PHPwind. IE always asks "open or save". It's no use if I press "open"
Code:
<?php
require_once('global.php');

if(!in_array($prog,array('index','cate','bbsinfo','login','quit'))){
   $prog   = 'index';
}
include_once(D_P.'data/bbscache/olcache.php');
$total=$userinbbs+$guestinbbs;
wap_header('index',$db_bbsname);
if($prog=='cate'){
   $fids = array();
   $query = $db->query("SELECT fid FROM pw_forums WHERE password='' AND allowvisit='' AND f_type!='hidden'");
   while($rt = $db->fetch_array($query)){
      $fids[] = $rt['fid'];
   }
} elseif($prog == 'bbsinfo'){
   $rt = $db->get_one("SELECT * FROM pw_bbsinfo WHERE id=1");
   $rs = $db->get_one("SELECT SUM(fd.topic) as topic,SUM(fd.subtopic) as subtopic,SUM(fd.article) as article,SUM(fd.tpost) as tposts FROM pw_forums f LEFT JOIN pw_forumdata fd USING(fid) WHERE f.ifsub='0' AND f.cms!='1'");
   $topic   =$rs['topic'] + $rs['subtopic'];
   $article=$rs['article'];
   $tposts   =$rs['tposts'];
} elseif($prog == 'login'){
   if($windid){
      wap_msg('login_have');
   }elseif($pwuser && $pwpwd){
      wap_login($pwuser,md5($pwpwd));
   }
} elseif($prog == 'quit'){
   require_once(R_P.'require/checkpass.php');
   Loginout();
   wap_msg('wap_quit','index.php');
}
require_once PrintEot('wap_index');
wap_footer();
?>
Roald
I hope you use this script on a host that has PHP enabled.
Dougie1
This happens sometimes if your script takes a long time to load I find.
Related topics
Tutorial: PHP Installed Modules Dynamic Reference Tool
PHP homepage recreation problem
Never Mind Problem Resolved
PHP Page
Creating a page with php
help - download pop up on php page
how do i make a window/iframe in a table within php page..??
php page flickering, maybe caused by flash item
pass varaibles to another page in PHP
PHP page turning problem
PHP Whos Online Code OR Page refresh..
Can a php page generate a file?
How to make a php page act differently
PHP error page, die()
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.