473,326 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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
imagecreatefromjpeg() 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 imagecreatefromjpeg() 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 1638
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.com>
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
imagecreatefromjpeg() 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 imagecreatefromjpeg() 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 "Configuration 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.andyhsoftware.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
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...
3
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...
3
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...
7
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...
5
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...
5
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...
0
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...
1
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...
9
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 ...
8
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 ,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.