xampp index page and lang.tmp

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

xampp index page and lang.tmp

Postby Riksoft » 20. June 2008 15:11

I got errors on index page (localhost or admin button or /htdocs/xampp/index.php to be more clear). Few days ago was working right.

The problem is the lang.tmp file. Almost every cleaning tool delete .tmp files, and that was what happened to me. :)

So the first 7 lines of the index.php page of xampp could be changed this way:

Code: Select all
if(file_exists('lang.tmp')){
  if(file_get_contents("lang.tmp")==""){
    header("Location: splash.php");
    exit();
  }
}
else{
  header("Location: splash.php");
  exit();
}


avoiding error if lang.tmp is not existing.
Riksoft
 
Posts: 1
Joined: 20. June 2008 15:02

You need only two characters

Postby spinnifex » 20. June 2008 19:35

Hi Riksoft,

try this: the lang.tmp contains only the international shortcut for your language. Create a lang.tmp with an editor, type in "de" for German for example and save it to the same folder.

To avoid this problem next time set the attribute of the new file to write-protected.

Good luck!

I do not know if Sokrates said, he knows that he knows nothing ...
Ich weiß nicht, ob Sokrates gesagt, dass er weiß, dass er nichts weiß ...
spinnifex
 
Posts: 3
Joined: 06. June 2008 14:31


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 50 guests