Urgent: Help!!! PHP.ini settings

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Urgent: Help!!! PHP.ini settings

Post by NewfieBilko »

Hey guys.. i think some idiot here at the shop went and edited my php.ini file. I am running PHP 4.3.7 or something around there. He tells me he changed the EXTENSION_DIR..

what is the best way to find out , where my extension_dir is located , or what I shouldput in my php.ini for EXTENSION_DIR.. i am on Linux.


WHATS THE BEST WAY TO FIND MY MODULE EXTENSIONS???? HELP>???? :oops:
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Code: Select all

<?php
phpinfo();
?>
It will tell you on there (search for extension_dir)
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Post by liljester »

if you're running windows, copy the extensions you have loaded in php.ini to /windows/system32 (may be /winnt/system32). then you dont have to worry about the extensions dir.
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Post by NewfieBilko »

IM ON LINUX
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Post by NewfieBilko »

i did phpinfo
it gives me
/usr/lib/php2

for it

to let u know, there are a fewe virtual hosts on this.. I just tested the phpinfo on php2.domain.com
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Post by NewfieBilko »

i look in my /usr/lib/ directory and all i see is /usr/lib/php4 wtf...
it has 3 files, mysql.so, imap.so, idap.so


so in my php.ini file i put /usr/lib/php4.. but it still no go
maybe ill try /usr/lib
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Post by NewfieBilko »

what should my include_path be then?
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Post by NewfieBilko »

nevermind


its just so weird though.. i got everything put back to what it was supposed ot be now.. but i get this weird thing happen. my php application cannot connect with the database for some reason.. my navicat can! but my application says it can't!?!?!?
Post Reply