Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Where to find out php.ini?
Old 11-29-2012, 12:54 PM Where to find out php.ini?
Novice Talker

Posts: 7
Trades: 0
Hi all,

I've just installed WAMP, I would like to change some parameters in php.ini but I could not find where it is. Please advise. Thanks
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

Last edited by nhunet; 11-29-2012 at 12:56 PM..
nhunet is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-29-2012, 01:32 PM Re: Where to find out php.ini?
chrishirst's Avatar
Defies a Status

Posts: 43,966
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
use Windows search.

or /bin/php/php%version% in where you installed it.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-01-2012, 06:32 PM Re: Where to find out php.ini?
Novice Talker

Posts: 11
Trades: 0
The problem with just doing a search is that there can often be multiple versions of php.ini around. Especially in multi-user environments. To find out where your specific php.ini is:

Code:
php5 -i | egrep "php.ini"
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini

Of course in Windows you'll probably not have any grepping tools, unless you've installed them manually so something like:

Code:
php5 -i >php.txt
and then you can load the text file into an editor and search for php.ini
wgfreelancer is offline
Reply With Quote
View Public Profile
 
Old 12-08-2012, 06:52 AM Re: Where to find out php.ini?
Junior Talker

Posts: 1
Trades: 0
The path where PHP looks for its php.ini file is built into PHP on compile time. To find out that path, use a PHP script that does a phpinfo() call. This will display a huge table of all of PHP's configuration variables. The path to php.ini can be found in the first part of that table, near the start of the page.

Geeklog ships with a phpinfo script in /path/to/geeklog/admin/install/info.php. Or you can simply create a new file (name it "phpinfo.php", for example) that contains the single line

<?php phpinfo(); ?>

Upload that file anywhere on your website and call it up in your browser.

FAQ Manager » General » Where is my php.ini?
__________________

Please login or register to view this content. Registration is FREE
logangibs is offline
Reply With Quote
View Public Profile
 
Old 12-08-2012, 11:23 AM Re: Where to find out php.ini?
King Spam Talker

Posts: 1,091
Name: Paul W
Trades: 0
But don't leave phpinfo scripts floating around public-facing servers ...
__________________
Great music:
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
PaulW is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Where to find out php.ini?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19088 seconds with 11 queries