473,811 Members | 3,344 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php.ini not being read in vista

I tried to turn on magic_quotes_gp c

behavior shows that it is Off
phpinfo shows it is Off
phpinfo shows path to config file as C:\php\php.ini
setting:
magic_quotes_gp c = On
in C:\php\php.ini does nothing

putting garbage into C:\php\php.ini results in NO error in
Apache's error.log

renaming C:\php\php.ini has No effect

So it must be using default settings. How do I fix?

I hate vista
Feb 27 '08
12 1598
Tony wrote:
Did you restart Apache?
yes, thanks. Many times. It would have been nice if Apache gave a
notice that it was using a default ini config.

I am using .htaccess on the server to give a directive to disable
Magic Quotes. I suppose I could also use that approach to enable
them on my local machine, if ever necesary. IIRC there is a
performance hit that comes with using .htaccess (since each
subdirectory must then be searched for the existence of any
overriding .htaccess). But in my case, with low traffic, that
shouldn't matter much at all.
Feb 28 '08 #11
On Feb 28, 6:31 am, Jerry <Je...@nospam.n otwrote:
Tony wrote:
Did you restart Apache?

yes, thanks. Many times. It would have been nice if Apache gave a
notice that it was using a default ini config.

I am using .htaccess on the server to give a directive to disable
Magic Quotes. I suppose I could also use that approach to enable
them on my local machine, if ever necesary. IIRC there is a
performance hit that comes with using .htaccess (since each
subdirectory must then be searched for the existence of any
overriding .htaccess). But in my case, with low traffic, that
shouldn't matter much at all.
If you installed it using xammp then it will use the php.ini in apache/
bin folder. and not one in other places. Check correctly in phpinfo()
output which php.ini they are using. Then change the php.ini and
restart apache. You may have tried it. Still telling!
Feb 28 '08 #12
Satya wrote:
On Feb 28, 6:31 am, Jerry <Je...@nospam.n otwrote:
>Tony wrote:
>>Did you restart Apache?
yes, thanks. Many times. It would have been nice if Apache gave a
notice that it was using a default ini config.

I am using .htaccess on the server to give a directive to disable
Magic Quotes. I suppose I could also use that approach to enable
them on my local machine, if ever necesary. IIRC there is a
performance hit that comes with using .htaccess (since each
subdirectory must then be searched for the existence of any
overriding .htaccess). But in my case, with low traffic, that
shouldn't matter much at all.

If you installed it using xammp then it will use the php.ini in apache/
bin folder. and not one in other places. Check correctly in phpinfo()
output which php.ini they are using. Then change the php.ini and
restart apache. You may have tried it. Still telling!
Did you read his first post?

phpinfo shows path to config file as C:\php\php.ini
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Feb 28 '08 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
3039
by: Mark Rae | last post by:
Hi, On Friday I attended the Microsoft EVO conference in London where they talked about Vista, Office 2007 and Exchange 2007 and how they all work together beautifully, how they were all "people-ready" etc... I asked a couple of questions about Visual Studio.NET on Vista, especially on 64-bit Vista, and they became *very* nervous... To cut a long story short, Microsoft will not support ANY version of Visual
56
3647
by: Squishy | last post by:
I tried installing my VS2005 Pro on Vista Ultimate 32 bit RTM today and got errors stating that VS2005 was not compatible with Vista. Microsoft......please pull your finger out of my ass and tell me this is a joke. It must be a joke....because I also have read that VS2002 and VS2003 will not be supported on Vista. This clearly violates Microsoft's own terms of support for these products.
6
4280
by: j2ee.singh | last post by:
Hi, I'm looking to buy a new laptop primarily to learn & practice .NET and C#. My Question is: Is there any requirement for .NET and C# in terms of the following Operating Systems: - Windows Vista Home Basic - Windows Vista Business
11
3583
by: vovan | last post by:
I'm using this approach to read from registry. Dim f As New RegistryPermission(RegistryPermissionAccess.AllAccess, _ "HKEY_LOCAL_MACHINE\SOFTWARE\SRS Enterprises\Coordinator\Settings") 'Vlad 02/12/2007 Dim f2 As New RegistryPermission(RegistryPermissionAccess.AllAccess, _ "HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\SRS Enterprises\Coordinator\Settings")
8
2476
by: =?Utf-8?B?U3RldmVU?= | last post by:
Under Vista, my program, when reading the system event log, will not show the message saying I don't have the right permission. All I wisht to do is read the event log and show the error messages. Do I need to somehow use EventLogPermission? I can't find any examples of how to use it properly. Does someone know how to correctly read the system event log messages? -- ----------- Thanks, Steve
4
11841
by: Jim | last post by:
I have the following piece of code: Directory.CreateDirectory(myDir); DirectoryInfo lDir = new DirectoryInfo(myDir); lDir.Attributes = FileAttributes.Normal; When this code runs, my directory is created fine, but my directory is always read only. At first I thought it was something with using DirectoryInfo. However, I also ran the following line of code:
1
4120
by: Marc Bartsch | last post by:
Hi, My C# app throws the following exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. From what I read so far I found that the problem can be connected to P/Invoke and that the places at which this exception is thrown might not reflect the actual problem. In my case, the exception is thrown, when I try to minimise my main window to the system...
1
2615
by: Vasya | last post by:
Hello, My goal is to setup and configure the "Community MySQL server" on my "Vista" laptop. I want to run the server and clients on the same "machine" using the "loopback" IP addr (127.0.0.1) to talk between MySQL clients and the MySQL server. 1) When I run the Config Wizard, I get the following message: "The security settings could not be applied. Error number 2003.
2
1728
by: 13Rockes | last post by:
I am in the process of writing programs using VB6 in XP Pro. However, I am thinking about starting over using VB2005 as my company is migrating to Vista. Two questions... What kinds of problems will I have installing and running my VB6 app under Vista? If I develop VB2005 apps under XP, what kinds of problems will I have
11
1931
by: idoublepress | last post by:
Hi all, I've been struggling with an issue that I hope you can comment on or provide suggestions to. Our .NET 2.0 (VS2005) based product is crashing (when the user selects a particular feature on the UI) on Vista. It works fine on XP. In a nutshell: - user makes a selection on the UI - System.Reflection.MethodInfo.Invoke() calls into one of our .NET library dlls - Inside the library dll, System.Activator.CreateInstance() is called
0
9734
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9607
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10413
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10138
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5700
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3879
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.