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,873 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
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 create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

770 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