Vista Xampp Problem?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Vista Xampp Problem?

Postby Chris Champion » 07. September 2008 20:11

Hi

Has anyone encountered problems running a local website on Vista.

Never had a problem when I ran xampp on XP. I keep getting a dialogue box pop-up with a message asking 'Do you want to save this file, or find a program online to open it?'

This happens everytime I try to load my website when I type http://localhost/championfh in the browser.

I've loaded Xampp Version 1.6.7 which I thought had been modified for Vista, and have checked that xampp is loaded. If you type 'localhost' it finds the default xampp home page.

TM
Chris Champion
 
Posts: 3
Joined: 07. September 2008 17:35

Postby glitzi85 » 08. September 2008 22:10

Hello,

what file do you call when opening localhost/championfh? I guess you have an index.* file inside the championsfh folder, could you post the code of this file?

It souns like either the script delivers a wrong header or the extension of the file is wrong.

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Postby Chris Champion » 10. September 2008 20:14

Hi G

Yes, my site calls an index.php file from the championfh folder.

Can't see how to insert a file so I have copied the code.

Chris

Code: Select all
<?php
include("begin.php");
include($cms[tngpath] . "genlib_home.php");
include($cms[tngpath] . "getlang.php");
include($cms[tngpath] . "$mylanguage/text.php");
tng_db_connect($database_host,$database_name,$database_username,$database_password) or exit;
include($cms[tngpath] . "checklogin.php");

$flags[noicons] = true;
/* $flags[noheader] = true; */
tng_header( $text[mnuheader], $flags );
?>
<!-- Added by CC 02/03/08 -->
<body>

<div id="frame">
<div id="container">
<table width="100%"  border="0" cellpadding="0" cellspacing="0" background="images/cfh_home_pic.gif">
  <tr>
    <td height="270" valign="top"><h1><a href="http://www.championfh.net"><img src="images/cfh_logo.gif" alt="Champion Family History" width="231" height="46" hspace="10" vspace="10" border="0"></a></h1></td>
    <td align="right" valign="top">


<!-- "Home Page" (the text for these messages can be found at near the bottom of text.php -->
<!-- <h1><?php echo $text[mnuheader]; ?></h1> -->

<div class="login">
<form action="processlogin.php" method="post" name="form1">

<?php
   if( $currentuser ) {
      echo "<span class=\"welcome\"><p><strong>$text[welcome] $currentuserdesc</strong></p></span>\n";
   }

   if( $currentuser ) {
      //this means you're logged in
      echo "<span class=\"logout\"><a href=\"logout.php\">$text[mnulogout]</a></span>\n";
   }
   else {
      //this means you're logged out
      echo "<span class=\"normal\">Username:</span>
           <input type=\"text\" name=\"tngusername\"/>
           <span class=\"normal\">Password:</span>
           <input type=\"password\" name=\"tngpassword\"/>
           <span class=\"button\"><input type=\"submit\" value=\"Login\" /></span>
           <p>Don't have a login? <a href=\"newacctform.php\">Register for New User Account</a></p>
          
           \n";

   }
   
?>
</form>
</div>
<!-- Added by CC 02/03/08 -->
   </td>
  </tr>
</table>

<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
   
<div id="homebox">
<h2><a href="cfh_census.php">Census Records</a></h2>
Covers period 1841 through to 1901 for Champion ancestors. </div>

<div id="homebox">
          <h2><a href="browsemedia.php">Media Gallery</a></h2>
Browse and search for any related documents, histories and photos. </div>

<div id="homebox">
<h2><a href="parishrecords.php">Parish Records</a><a href="#"></a></h2>
Search through Champion parish records pre-1837 in the South West Counties</div>

<div id="homebox">
<h2><a href="ww1.php">WW1 Records</a></h2>
Browse and search for Champion's who served during the Great War. </div>

<div id="homebox">
          <h2><a href="whatsnew.php">What's New</a></h2>
View the latest updates on this website.</div>

<div id="homesearch">
<h2>Quick Search</h2>

<!-- <h2><?php echo $text[mnusearchfornames]; ?></h2> -->
<!-- Do not change the form action or field names! -->
<form action="search.php" method="GET">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
   <tr><td><?php echo $text[mnulastname]; ?>: <br/><input type="text" name="mylastname" size="14"></td>
     <td rowspan="2"><br>
       <input type="hidden" name="mybool" value="AND"><input type="hidden" name="offset" value="0"><input type="submit" name="search" value="<?php echo $text[mnusearch]; ?>">
      </td>
   </tr>
   <tr><td><?php echo $text[mnufirstname]; ?>:<br/><input type="text" name="myfirstname" size="14"></td>
     </tr>
</table>
</form>
<!-- Aded by CC 02/03/08 -->
<a href="searchform.php" class="homesearch_link2">Advanced Search </a>
</div>      

<!-- Modified by CC 02/03/08 -->
<!-- <h2><?php echo $text[mnufeatures]; ?></h2> -->

<!-- <ul>
<?php
/*   if( $currentuser ) {
      //this means you're logged in
      echo "<li><a href=\"logout.php\">$text[mnulogout]</a></li>\n";
   }
   else {
      //this means you're logged out
      echo "<li><a href=\"login.php\">$text[mnulogon]</a></li>\n";
   }
   echo "<li><a href=\"newacctform.php\">$text[mnuregister]</a></li>\n";
   echo "<li><a href=\"searchform.php\">$text[mnuadvancedsearch]</a></li>\n";
   echo "<li><a href=\"surnames.php\">$text[mnulastnames]</a></li>\n";
   echo "<li><a href=\"bookmarks.php\">$text[bookmarks]</a></li>\n";
   echo "<li><a href=\"browsetrees.php\">$text[mnustatistics]</a></li>\n";
   echo "<li><a href=\"browsemedia.php?mediatypeID=photos\">$text[mnuphotos]</a></li>\n";
   echo "<li><a href=\"browsemedia.php?mediatypeID=histories\">$text[mnuhistories]</a></li>\n";
   echo "<li><a href=\"browsemedia.php?mediatypeID=documents\">$text[documents]</a></li>\n";
   echo "<li><a href=\"browsemedia.php?mediatypeID=videos\">$text[videos]</a></li>\n";
   echo "<li><a href=\"browsemedia.php?mediatypeID=recordings\">$text[recordings]</a></li>\n";
   echo "<li><a href=\"browsealbums.php\">$text[albums]</a></li>\n";
   echo "<li><a href=\"browsemedia.php\">$text[allmedia]</a></li>\n";
   echo "<li><a href=\"cemeteries.php\">$text[mnucemeteries]</a></li>\n";
   echo "<li><a href=\"browsemedia.php?mediatypeID=headstones\">$text[mnutombstones]</a></li>\n";
   echo "<li><a href=\"places.php\">$text[places]</a></li>\n";
   echo "<li><a href=\"browsenotes.php\">$text[notes]</a></li>\n";
   echo "<li><a href=\"anniversaries.php\">$text[anniversaries]</a></li>\n";
   echo "<li><a href=\"reports.php\">$text[mnureports]</a></li>\n";
   echo "<li><a href=\"browsesources.php\">$text[mnusources]</a></li>\n";
   echo "<li><a href=\"browserepos.php\">$text[repositories]</a></li>\n";
   echo "<li><a href=\"whatsnew.php\">$text[mnuwhatsnew]</a></li>\n";
   echo "<li><a href=\"showlog.php\">$text[mnushowlog]</a></li>\n";
   echo "<li><a href=\"changelanguage.php\">$text[mnulanguage]</a></li>\n";
   if( $allow_admin )
      echo "<li><a href=\"admin/index.php\">$text[mnuadmin]</a></li>\n";
   echo "<li><a href=\"suggest.php\">$text[contactus]</a></li>\n";
  */?>
</ul>

<p><strong>Please customize this page!</strong></p> -->

   </td>
  </tr>
  <tr>
    <td valign="top">
<div id="hometext_left">
<h1><?php echo $text[mnuheader]; ?></h1>
<p>This site is a collection of historical data that is continually evolving thanks to the help of family and friends and has been created with the hope of preserving the memories of my ancestors.<br>
  <br>
  All photographs, document images and notes, were obtained from public libraries, local record offices, the public record office at Kew Gardens, local family history societies, local museums, lectures and contacts found on the internet. </p>
<p>All photographs and document images are either in '.jpg' or '.pdf' format, to view '.pdf' files you will need Adobe Acrobat Reader installed on your computer. If you do not have Adobe Acrobat Reader <a href="http://ardownload.adobe.com/pub/adobe/reader/win/6.x/6.0/enu/AdbeRdr60_DLM_enu_full.exe">Click here </a> to install.</p>
<p>Any information, photos or documents you are willing to share would be welcome.   Comments and suggestions for improvement are also welcome.<br>
</p>
</div>

<div id="hometext_right">
  <p>Tracing family roots in England and Wales has been relatively straightforward from the 19th century thanks to the introduction of national birth, marriage and death registrations in 1837 and from census returns dating from 1841. Some births before 1875 were not registered due to the belief that births did not have to be registered if a child had been baptised. Records pre-dating 1837 are only found in parish registers which were introduced by an Act of Parliament in 1597. Beyond 1597 it is extremely difficult although there are a few registers going back as far as 1538. </p>
  <p>18th Century Life was a period of great change in country society. From 1841 through to the 1901 census records, I have ascertained that my ancestors came from modest backgrounds, employed in labour intensive jobs ranging from farming, household servants, glove makers and merchant seaman. </p>
</div>

</td>
  </tr>
</table>

<?php
tng_footer( "" );
?>
</div>
</div>

</body>
</html>

Chris Champion
 
Posts: 3
Joined: 07. September 2008 17:35

Postby glitzi85 » 10. September 2008 21:51

Yeah, adding files is not possible here, pasting Code was good.

You call a function on line 11:

Code: Select all
tng_header( $text[mnuheader], $flags );


Could you put this code directly before this function:

Code: Select all
header("Content-type: text/plain");
echo "Header: ".$text['mnuheader']."\n\n"Flags: "$flags;
exit;


and then try to call the site. What output do you get?

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Postby Chris Champion » 12. September 2008 17:28

Hi G,

I applied the change, but still get the same dialogue box message.

Chris
Chris Champion
 
Posts: 3
Joined: 07. September 2008 17:35

Postby glitzi85 » 12. September 2008 17:31

OK, then you have to post every included file. Maybe the header is already sent out earlier in the code.

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 67 guests