473,804 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

where oh where can my php.ini be?

Hello,

Everything started with me wanting to write a little command line php
script that uses some gd functions. After a little research, I realized I
need to unccomment the line in my php.ini that references the gd module. I
did that, and still no gd (I get the error message at run time, that
imagecreatefrom jpeg() doesn't exist). At first I thought that I changed the
wrong php.ini file, even though I changed the one in c:\windows, which is
the one php_info() says it's using. I then proceeded to delete every php.ini
file on my computer except the one in c:\windows (there was one more). Same
problem, no GD. Then just for fun I decided to rename the php.ini file in
c:\windows to php.bak. I then ran my script again thinking I would get an
error about a missing php.ini. To my dismay this was not the case, as I
received the same complaint about imagecreatefrom jpeg() not existing. I'm
perplexed. There is absolutely no file named php.ini on my entire PC, much
less in c:\windows where it says it's looking for it. I've search through
hidden folders, and nothing.
What is php using as the ini file? Basically, I need to get to the point
where php is using an ini file, of which I know exactly where this file is
and I can modify it. Can anyone shed some light on this for me?

Thanks,

Robert.
Jul 17 '05 #1
2 1659
hello,
At first I thought that I changed the wrong php.ini file, even though I
changed the one in c:\windows, which is the one php_info() says it's
using.
So you changed the right php.ini, you can trust in what phpinfo() says. ;)
Then just for fun I decided to rename the php.ini file in c:\windows to
php.bak. I then ran my script again thinking I would get an error about a
missing php.ini.


Have you restarted your webserver before running your script again?
If not, try to do that. You should always do a restart of your webserver,
after you have changed something in php.ini. Otherwise, your changes won't
have any effect.

kind regards,
David
Jul 17 '05 #2
On Fri, 15 Oct 2004 16:45:00 -0500, "Robert Misiorowski" <rm****@yahoo.c om>
wrote:
Everything started with me wanting to write a little command line php
script that uses some gd functions. After a little research, I realized I
need to unccomment the line in my php.ini that references the gd module. I
did that, and still no gd (I get the error message at run time, that
imagecreatefro mjpeg() doesn't exist). At first I thought that I changed the
wrong php.ini file, even though I changed the one in c:\windows, which is
the one php_info() says it's using. I then proceeded to delete every php.ini
file on my computer except the one in c:\windows (there was one more). Same
problem, no GD. Then just for fun I decided to rename the php.ini file in
c:\windows to php.bak. I then ran my script again thinking I would get an
error about a missing php.ini. To my dismay this was not the case, as I
received the same complaint about imagecreatefrom jpeg() not existing. I'm
perplexed. There is absolutely no file named php.ini on my entire PC, much
less in c:\windows where it says it's looking for it. I've search through
hidden folders, and nothing.
What is php using as the ini file? Basically, I need to get to the point
where php is using an ini file, of which I know exactly where this file is
and I can modify it. Can anyone shed some light on this for me?


Create a file containing just <?php phpinfo(); ?>.

Then look near the top, and see what it says next to "Configurat ion File
(php.ini) Path". (And post that here exactly as it displays, if the php.ini
file it references doesn't seem to be being read)

--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #3

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

Similar topics

47
3654
by: Andrey Tatarinov | last post by:
Hi. It would be great to be able to reverse usage/definition parts in haskell-way with "where" keyword. Since Python 3 would miss lambda, that would be extremly useful for creating readable sources. Usage could be something like: >>> res = where: >>> def f(x):
3
22007
by: A.V.C. | last post by:
Hello, I found members of this group very helpful for my last queries. Have one problem with CASE. I can use the column name alias in Order By Clause but unable to use it in WHERE CLAUSE. PLS TELL ME IF IT IS POSSIBLE TO USE IT IN WHERE CLAUSE AND SOME ALTERNATIVE. QUERY: SELECT
3
2288
by: Xiangliang Meng | last post by:
Hi, all. In 1998, I graduated from Computer Science Dept. in a university in China. Since then, I've been using C Language for almost 6 years. Although I'm using C++ in my current job, I'm also interested in understanding C more and deeper at the same time. In the past half year, I decide to improve myself on C, read some books on C and digest some posts on comp.lang.c and comp.lang.c++. Now, I feel I have a better insight on C than...
7
3046
by: Britney | last post by:
Original code: this.oleDbSelectCommand1.CommandText = "SELECT TOP 100 user_id, password, nick_name, sex, age, has_picture, city, state, " + "country FROM dbo.users WHERE (has_picture = ?) AND (sex = ?) ORDER BY age " this.oleDbSelectCommand1.Parameters.Add(new System.Data.OleDb.OleDbParameter("has_picture", System.Data.OleDb.OleDbType.Boolean, 1, "has_picture")); this.oleDbSelectCommand1.Parameters.Add(new...
5
2405
by: comp.lang.php | last post by:
if ($willLimitByDB) $sql = preg_replace('/#(+)#/i', '$$1', $sql); This does not give me the results I want, instead of the value of $where in $sql, I literally get '$where' instead. How do I substitute #where# with $where? Thanx Phil
5
5520
by: John | last post by:
I just cannot manage to perform a SELECT query with NULL parameter... My CATEGORY table does have one row where TCATEGORYPARENTID is null (real DB null value). TCATEGORYID and TCATEGORYPARENTID are uniqueidentifier columns. My questions: - is Type="Object", below, necessary? - what shall I specify for DefaultValue in my function? I tried everything.
0
80737
NeoPa
by: NeoPa | last post by:
Background Whenever code is used there must be a way to differentiate the actual code (which should be interpreted directly) with literal strings which should be interpreted as data. Numbers don't usually have this problem but Dates can too. Debug.Print Me.ControlName refers to a control on a form. Whereas, Debug.Print "Me.ControlName" simply prints the literal text Me.ControlName Where to Use Each Quote Type (' or ") In some places...
1
2771
by: not_a_commie | last post by:
I was hoping for increased functionality with the where clause in C# 3.0. Using the new keyword 'var' would really allow us to take nice advantage of these. Specifically: 1. I want to limit it to primitives: "where T : System.Type.Primitive" or something like that. 2. I want to limit it to an unspecified generic: "where T : List<>". 3. I want to limit it to a generic with a subset of types: "where T : List<new TTwhere TT : class" or...
9
19161
by: Emin | last post by:
Dear Experts, I have a fairly simple query in which adding a where clause slows things down by at least a factor of 100. The following is the slow version of the query ------------------------- SELECT * FROM ( Select x.event_date From x FULL OUTER JOIN y ON x.event_date = y.event_date
8
3483
by: chrisdavis | last post by:
I'm trying to filter by query or put those values in a distinct query in a where clause in some sort of list that it goes through but NOT at the same time. Example: ROW1 ROW2 ROW3 ROW4 , etc. I want to go to the first row, do a WHERE statement, return the
0
9594
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
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10341
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
9171
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
7634
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
5530
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
4308
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
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.