PHP not working

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

PHP not working

Postby Fork » 18. September 2008 11:26

Hi, i am new here and i o not understand German(?)

I am having problems running PHP script.

After installing XAMPP and starting the Apache server, i have opened localhost in my firefox.

What i get is the source code (not the result of the script) of the index file.

like so:

Code: Select all
<?
        if(file_get_contents("lang.tmp")=="")
        {
                header("Location: splash.php");
                exit();
        }
?>
<html>
<head>
<meta name="author" content="Kai Oswald Seidler">
<meta http-equiv="cache-control" content="no-cache">
<?include("lang/".file_get_contents("lang.tmp").".php"); ?>
<title><?=$TEXT['global-xampp']?> <?include('.version');?></title>

<frameset rows="74,*" marginwidth="0" marginheight="0" frameborder="0" border="0" borderwidth="0">
    <frame name="head" src="head.php" scrolling=no>
<frameset cols="150,*" marginwidth="0" marginheight="0" frameborder="0" border="0" borderwidth="0">
    <frame name="navi" src="navi.php" scrolling=no>
    <frame name="content" src="start.php" marginwidth=20>
</frameset>
</frameset>
</head>
<body bgcolor=#ffffff>
</body>
</html>


can someone help me get the regular result of the script?
Fork
 
Posts: 4
Joined: 18. September 2008 11:14

Postby Wiedmann » 18. September 2008 11:35

Hi, i am new here and i o not understand German(?)

That's the reason for an English subforum ;-)

i have opened localhost in my firefox. What i get is the source code

Is this link working?
http://localhost/xampp/phpinfo.php
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Fork » 18. September 2008 11:44

Thanks for moving my topic.

and not it is not working

Code: Select all
<?
   phpinfo();
?>


all that is displayed

when i try to stop apache i get this. (I don't know if its related)

Code: Select all
XAMPP: Stopping Apache with SSL...
/Applications/xampp/xamppfiles/bin/apachectl: line 70: ulimit: open files: cannot modify limit: Invalid argument
Fork
 
Posts: 4
Joined: 18. September 2008 11:14

Postby Fork » 18. September 2008 12:19

Is there an uninstall script?

I would like to clean up all remains of XAMPP. And Start fresh
Fork
 
Posts: 4
Joined: 18. September 2008 11:14

Postby Fork » 18. September 2008 12:31

Well i seem to have found a (the) problem.

If i type 127.0.0.1 instead of localhost it works fine.

Now where can i make localhost = 127.0.0.1?
Fork
 
Posts: 4
Joined: 18. September 2008 11:14

Postby jorann » 18. September 2008 14:02

jorann
 
Posts: 7
Joined: 22. August 2008 14:14
Location: Amstelveen, Holland


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 31 guests