You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marshall Jiang <ma...@thizlinux.com.cn> on 2005/02/24 08:45:55 UTC
[users@httpd] Re: apache "index.php starts downloading on my computer instead of
opening a web page"
Khawaja Sohail Qamar wrote:
> Hi, after running apache 1.3, i cannot open the web
> page of my site. instead when i try to open the web
> page of my site, a window pops up and print that,
> "you have chosen to open index.php which is a PHP file
> from http://mywebsite,org/tacc2. what should mozilla
> do with this file ...open ...save it to
> disk................###i have pasted the index.html
> and index.php file below. I will greatly appreciate ur
> help. thanks. sohail.
>
> ------------------------------------------------------
> <script language=javascript>
> location.href='http://tacc.postech.ac.kr/tacc2/index.php'
> </script>
> ------------------------------------------------------
>
> and the index.php file is
> ------------------------------------------------------
> <?
> include("../include/global_define.php");
> //$permNo = 10;
> //include("../include/chkPerm.php");
> include("../include/f_form.php");
> include("../include/f_page.php");
>
> switch ($menu) {
> case "tacc": $no="1"; $bg="#996633"; break;
> case "prog": $no="2"; $bg="#996633";break;
> case "call": $no="3"; $bg="#996633";break;
> case "reg": $no="4"; $bg="#996633";break;
> case "fin": $no="5"; $bg="#996633";break;
> case "loc2": $no="6"; $bg="#996633";break;
> case "loc": $no="6"; $bg="#996633";break;
> case "visa": $no="7"; $bg="#996633";break;
> case "cont": $no="2"; $bg="#996633";break;
> case "photo": $no="16"; $bg="#996633";break;
> default: $no='1'; break;
> }
> if (!$menu) $menu="tacc";
> if (!$page) $page="";
> ?>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
> Transitional//EN">
> <html>
> <head>
> <title>TACC:::Theory and Applications Computational
> Chemistry</title>
> <link rel="stylesheet"
> href="http://tacc.postech.ac.kr/tacc2/tacc.css"
> type="text/css">
> <META http-equiv="Content-Type" content="text/html;
> charset=ISO-8859-1">
> <script language=javascript>
> function newWindow_speakerinfo( url )
> {
> window.open( url,
> 'speakerinfo','width=480,height=640,resizable=no,scrollbars=no,
> status=0');
> }
> function newWindow_card( url )
> {
> window.open( url,
> 'card','width=480,height=640,resizable=no,scrollbars=no,
> status=0');
> }
> </script>
> </head>
> <body bgcolor="#FFFFFF" text="#000000" leftmargin="0"
> topmargin="0" marginwidth="0" marginheight="0" >
> <a name="a"></a>
> <table width="100%" border="0" cellspacing="0"
> cellpadding="0">
> <tr>
> <td width="780" valign=center height=232
> background="/tacc2/img/bg_0<?=$no?>.gif"><img
> src="/tacc2/img/banner_0<?=$no?>.jpg" border=0
> width="780" height="232" valign=top></td>
> <td background="/tacc2/img/bg_0<?=$no?>.gif"
> width=100%> </td>
> </tr>
> </table>
> <table width="780" border="0" cellspacing="0"
> cellpadding="0">
> <tr>
> <td width="157" valign="top">
>
> <?
> include("/home/csm/public_html/tacc2/inc/leftmenu.php");
>
> ?>
>
> </td>
> <td width="622" valign="top" align=left>
>
> <?
>
> include("inc/body_"."$menu"."$page".".php");
>
> ?>
>
>
> </td>
> <td> </td>
> </tr>
> </table>
> <br>
> <table width="100%" border="0" cellspacing="0"
> cellpadding="0">
> <tr height=100%>
> <td width="780"> </td>
> <td> </td>
> </tr>
> <tr>
> <td background="img/bg_0<?=$no?>.gif" height="60"
> class="contents-program">
> <table width="623" border="0" cellspacing="0"
> cellpadding="0" align="left">
> <tr>
> <td width="38"><img
> src="img/copyright_logo.gif" width="38"
> height="38"></td>
> <td class="copyright">
> <div align="left">Symposium Web Page: <a
> href="http://www.postech.ac.kr/chem/tacc">http://www.postech.ac.kr/chem
>
> /tacc</a><br>
> Symposium E-mail: <a
> href="mailto:tacc@postech.ac.kr">tacc@postech.ac.kr</a><br>
>
> Sponsors: <a
> href="http://csm.postech.ac.kr"
> target="_blank">CSM</a>(KISTEP),
> BK21(MOE, KOREA), BSRI(<a
> href="http://www.postech.ac.kr"
> target="_blank">POSTECH</a>),
> KRF, KOSEF</div>
> </td>
> </tr>
> </table>
> </td>
> <td background="img/bg_0<?=$no?>.gif"> </td>
> </tr>
> </table>
> </body>
> </html>
> ------------------------------------------------------
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Easier than ever with enhanced search. Learn more.
> http://info.mail.yahoo.com/mail_250
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
it seems that you didn't config the httpd.conf correctly.and did you
install the php?
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org