Solved

Notice: Undefined variable: PHP_SELF in /Applications/XAMPP/xamppfiles/htdocs/xampp/lang/en.php on line 166

Posted on 2010-08-26
3
3,942 Views
Last Modified: 2013-12-13
Hi, When installing XAMPP to OSX Leopard and after sudo ... start and after http://localhost:80 opens XAMP page where I chose "English" I got this:
Notice: Undefined variable: PHP_SELF in /Applications/XAMPP/xamppfiles/htdocs/xampp/lang/en.php on line 166

Dont know what to do second to start XAMPP.
0
Comment
Question by:Veikko_Niemi
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
svgmuc earned 500 total points
ID: 33529712
Option 1: Enable register_globals in the php.ini
Option 2: Replace $PHP_SELF by $_SERVER['PHP_SELF']
0
 

Author Comment

by:Veikko_Niemi
ID: 33536259
Because it seems out that I cant write to php.ini, where should I save as a copy of it?
php.init explains:

PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).

Does that mean that I should save as it under htdocs? But I cant write under it, too! And when I do php programs I should save all programs under htdocs where I cant write?!?

I'm really newbie in Mac and php!
0
 

Author Closing Comment

by:Veikko_Niemi
ID: 33554529
Now I know how to change permissions as an admin and could save php.ini with register_globals on .
That really helped!!

Thanks!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question