Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2010-08-26
3
Medium Priority
?
4,094 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
svgmuc earned 2000 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
The viewer will learn how to dynamically set the form action using jQuery.
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 …

722 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