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,779 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
Comment Utility
Option 1: Enable register_globals in the php.ini
Option 2: Replace $PHP_SELF by $_SERVER['PHP_SELF']
0
 

Author Comment

by:Veikko_Niemi
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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 count occurrences of each item in an array.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now