Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php.ini help needed

Status
Not open for further replies.

gjm68

MIS
Joined
Sep 4, 2005
Messages
9
Location
GB
I am new to php and mysql so please bear with me.

In my php directory I have

php.ini-dist
php.ini-recomended

I have setup mysql and have added a database using the console.

However when I try to access it from php commands the web page is blank

I am guessing that this has something to do with my setup of the php.ini file.

Do I have to rename one of the above two files to php.ini? If so then which on. Also what do I have to change within this file in order to make my web page display the records within the database?

many thanks
 
You need to post your code (this is a PHP forum after all ;-)) that is failing. Also, your php.ini is usually in /etc/php.ini or your distro may put it somewhere like /etc/php/php.ini. The important thing is you have php-mysql support either compiled into the binary, or available as a module. If loading it via a module, you need to make sure the path is correct in php.ini.

----
JBR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top