473,800 Members | 3,038 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 #1
12 1596
Jerry wrote:
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
Does the webserver's userid have access to the php.ini file?

Now you know why I don't use Vista :-)

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Feb 27 '08 #2
Jerry Stuckle wrote:
Jerry wrote:
>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_g pc = 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

Does the webserver's userid have access to the php.ini file?
thanks. I guess there's no easy fix and I'll have to delve into
accomplishing that tomorrow. I had the quaint notion that I
shouldn't have the OS fighting me at every turn - and so I could
focus on actually using the computer instead of fighting the OS.
>
Now you know why I don't use Vista :-)
nobody had told me that it was permanent beta, either. As in how
it won't connect to some routers. As in how it might disconnect
dialup when switching users. On and on. Sometimes it won't come
out of sleep (why doesn't that happen to Bill gates?) hehe...
Feb 27 '08 #3
Jerry wrote:
Jerry Stuckle wrote:
>Jerry wrote:
>>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_ gpc = 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

Does the webserver's userid have access to the php.ini file?

thanks. I guess there's no easy fix and I'll have to delve into
accomplishing that tomorrow. I had the quaint notion that I shouldn't
have the OS fighting me at every turn - and so I could focus on actually
using the computer instead of fighting the OS.
If that's the problem, there is an easy fix. Get he webserver user
access to the php.ini file. It's pretty easy - at least on W2K and W2K3
servers.
>>
Now you know why I don't use Vista :-)

nobody had told me that it was permanent beta, either. As in how it
won't connect to some routers. As in how it might disconnect dialup when
switching users. On and on. Sometimes it won't come out of sleep (why
doesn't that happen to Bill gates?) hehe...
It's Microsoft. :-(. Seriously, I won't install an MS product until at
least 2 service packs have been issued. Then I only install it on a
test system to see if it works yet.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Feb 27 '08 #4
Jerry wrote:
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
So I may not have the answer, but ....
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
...... have you set the path in httpd.conf?

# configure the path to php.ini
PHPIniDir "c:/php"

(I don't even know enough about Apache to know if this is necessary, but
it's in my config file.)
I hate vista
I hope I never have to use it. XP does just fine.

--
*************** **************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Nothing he's got he really needs
Twenty first century schizoid man.
*************** *************** *****

Feb 27 '08 #5
..oO(Jerry)
>I tried to turn on magic_quotes_gp c
Besides the other responses: Why do you want to turn them on?
Magic quotes are broken and will be completely removed in PHP 6.
There's no reason to use them.

Micha
Feb 27 '08 #6
Jerry wrote:
<snip>
>
nobody had told me that it was permanent beta, either. As in how it
won't connect to some routers. As in how it might disconnect dialup when
switching users. On and on. Sometimes it won't come out of sleep (why
doesn't that happen to Bill gates?) hehe...
Upgrade to Ubuntu, unless you use some Windows applications (like
photoshop, illustrator, etc). Recent WINE update has fixed quite a few
bugs related to Windows program running in Linux.

Unlike what people say, Linux was easier to install on an older laptop
of mine. No need to search for drivers. No need to insert CDs and do 10
re-starts to just install the basic device drivers.
Feb 27 '08 #7
Michael Fesser wrote:
>
Besides the other responses: Why do you want to turn them on?
Magic quotes are broken and will be completely removed in PHP 6.
There's no reason to use them.
well, the shared hosting server had them enabled.

But this morning, I determined how to disable them on the server
and so now I am going with magic_quotes_gp c disabled and using
mysql_real_esca pe_string() for every INSERT and SELECT to MySQL
(those are all the MySQL that I use.)

So: the PHP manual page on "mysql_real_esc ape_string" gives the
following example. My question: why are numbers or numeric
strings deliberately not escaped?

// Quote variable to make safe
function quote_smart($va lue)
{
// Stripslashes
if (get_magic_quot es_gpc()) {
$value = stripslashes($v alue);
}
// Quote if not a number or a numeric string
if (!is_numeric($v alue)) {
$value = "'" . mysql_real_esca pe_string($valu e) . "'";
}
return $value;
}
(sorry for the double-post before. The newsserver had told me
that the first posting had timed out.)
Feb 27 '08 #8
..oO(Jerry)
>Michael Fesser wrote:
>>
Besides the other responses: Why do you want to turn them on?
Magic quotes are broken and will be completely removed in PHP 6.
There's no reason to use them.

well, the shared hosting server had them enabled.

But this morning, I determined how to disable them on the server
and so now I am going with magic_quotes_gp c disabled
Good.
>and using
mysql_real_esc ape_string() for every INSERT and SELECT to MySQL
(those are all the MySQL that I use.)
You should also consider to use PDO and prepared statements instead.
On the long run this will be the much more flexible and powerful way.
>So: the PHP manual page on "mysql_real_esc ape_string" gives the
following example. My question: why are numbers or numeric
strings deliberately not escaped?
If you've checked that the value is a number actually, you don't have to
escape it, simply because a number can't do any harm to the database.
Strings OTOH may contain characters that have a special meaning in an
SQL query. If you want the DB to interpret those chars literarily, you
have to escape them. That's what mysql_real_esca pe_string() does.

Micha
Feb 27 '08 #9
Jerry wrote:
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?
Did you restart Apache?

I hate vista
Doesn't thrill me either.
Feb 28 '08 #10

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

Similar topics

13
3035
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
3644
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
4279
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
3581
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
2475
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
11839
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
4117
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
1726
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
1929
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
9690
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
9550
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
10501
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...
0
10032
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
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7574
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
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
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
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

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.