PHP Settings Selector in Ver 1.7.2

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP Settings Selector in Ver 1.7.2

Postby DW00844 » 09. October 2009 01:05

\Can anyone plz tell me where i can go to select my PHP core settings, since i cannot seem to find it anywhere on the XAMPP ver 1.7.2 control panel...!(Question Mark)

Thanks,
DW

\What i really want to do is simply set (Magic Quotes GPC: ON)
DW00844
 
Posts: 3
Joined: 09. October 2009 00:22

Re: PHP Settings Selector in Ver 1.7.2

Postby Izzy » 09. October 2009 04:33

You will find the php.ini file in the C:\xampp\php folder in a default 1.7.2 XAMPP installation.
php.ini file about line 735 wrote:; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
; escape any character sequences in GET, POST, COOKIE and ENV data which might
; otherwise corrupt data being placed in resources such as databases before
; making that data available to you. Because of character encoding issues and
; non-standard SQL implementations across many databases, it's not currently
; possible for this feature to be 100% accurate. PHP's default behavior is to
; enable the feature. We strongly recommend you use the escaping mechanisms
; designed specifically for the database your using instead of relying on this
; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is
; scheduled for removal in PHP 6.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/magic-quotes-gpc
magic_quotes_gpc = Off
Change the line to:
magic_quotes_gpc = On
by using a text editor (Notepad for example) then save the file and restart Apache to have the edits recognised - please take note of the comments re the deprecation of this feature and is why it is set to Off by default in XAMPP.

Good luck.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: PHP Settings Selector in Ver 1.7.2

Postby DW00844 » 09. October 2009 06:23

You will find the php.ini file in the C:\xampp\php folder in a default 1.7.2 XAMPP installation.
i tried editing the php.ini with changes, restarted almost everything but phpinfo() made no change wat so ever,
i had a (light-bulb moment) and tried putting the php.ini in the C:/xampp/apache/bin/ folder, did resets; no luck with that

Thanks for the very informative and on point input Izzy
really no fuss If it gonna be removed in PHP 6 anyway!! !!,
It was for my php-nuke install and they say it isn't really required soo.. yea!
I proceeding with it Off
Screenshot:
https://cid-3481db86be3a4ad6.skydrive.live.com/self.aspx/IMVU%20credit/install.GIF

OS: XP Pro x64
DW00844
 
Posts: 3
Joined: 09. October 2009 00:22

Re: PHP Settings Selector in Ver 1.7.2

Postby Izzy » 09. October 2009 10:41

In 1.7.2 the php.ini file must be in the php folder.

Clear your browser's cache and do it often when developing at localhost level then try your phpinfo() page again.

Here is what I see (an error message) from your Screenshot link.
XML Parsing Error: not well-formed
Location: http://cid-3481db86be3a4ad6.skydrive.live.com/self.aspx/IMVU%20credit/install.GIF
Line Number 120, Column 20:for (var i = 0; i < selfPageData.items.length; i++)
There should not be a space in the red characters so remove the space so it looks like this <s

If you are having the Screenshot image hosted then use another image host like ImageShack etc.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: PHP Settings Selector in Ver 1.7.2

Postby DW00844 » 10. October 2009 17:51

Hey , just wanted to say thanks again, it worked !
was able to edit php.ini.

c-ya
DW

ps ..sorry bout the link!
DW00844
 
Posts: 3
Joined: 09. October 2009 00:22

Re: PHP Settings Selector in Ver 1.7.2

Postby sumon65189 » 18. February 2015 05:21

i tried editing the php.ini with changes, restarted almost everything. but now show the message
'Directive 'magic_quotes_gpc' is no longer available in PHP'
sumon65189
 
Posts: 1
Joined: 18. February 2015 05:18
Operating System: windows-7

Re: PHP Settings Selector in Ver 1.7.2

Postby Altrea » 18. February 2015 06:07

Thats true. Magic Quotes no longer exists in current PHP versions and you should not use PHP projects requireing this setting
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8290
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 90 guests