Sponsored Content
Top Forums Web Development about php.ini and mysql linux Post 302449256 by fang_xiaoan on Sunday 29th of August 2010 10:01:02 PM
Old 08-29-2010
I can connect to my MySQL database,But i don't know how configure the file "php.ini".
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Linux/Unix/PHP/MySQL & servers?

Hello everyone! First I would like to say that I am very glad that I found this forum, and by some of the posts I have viewed, I see that I can learn a lot from you all! Secondly, I know next to nothing about Linux/Unix (gotta learn sometime right?) and need some assistance. I am a... (5 Replies)
Discussion started by: kolton
5 Replies

2. Linux

run MySQL on linux

Hi all, I want to know that how can we Install and Configure MySQL Server on LINUX.And how can we Use it after installation.As MySQL is also came with the Linux installer but i don't know how to Configure it and Use it.Thanks in advance Regards, Amanpreet Singh (1 Reply)
Discussion started by: aman_mlt
1 Replies

3. Programming

MySQL - PHP

Hello every one i have question i want to build DATAbase using PHP as interface i use shell to access to linux . i have in linux psql and SQLplus i'll call all html files that has db tabels from shell directory. what should to do before design php pages. can build the database sql design... (3 Replies)
Discussion started by: Scotch
3 Replies

4. Linux

PHP is not execute the query from mysql in Linux

Hi , I have ran the php script from Linux box. It is running, But I can able to see any html content. There is no mysql data on that page. I have checked . 1) Mysql and data bases are connected successfully. Please help and guild me If I missed any think during the configuration. ... (13 Replies)
Discussion started by: Mani_apr08
13 Replies

5. Ubuntu

php.ini

Hi, I have installed ubuntu server lamp. When I used the command locate to find the php.ini file I found two location. /etc/php5/cli/php.ini /etc/php5/apache2/php.ini When I want to change the setting of the php, which one of them should I change and why I have this file twice? (3 Replies)
Discussion started by: programAngel
3 Replies

6. Emergency UNIX and Linux Support

Migration of website... PHP/Mysql -which path for DB.php

Hi, I have two websites: website1.com and website2.com I didn't write either but have successfully moved all the files from website1.com to website2.com I (thought) I installed all the correct php modules and website2 is mostly up and running. However, my boss found that when we go to a... (15 Replies)
Discussion started by: Astrocloud
15 Replies

7. Programming

PHP and MySQL

Hello, While I was interpretation the PHP manual on database security the recent past, it said that you should by no means connect to the database as the super user but rather as one more user with more limited options. My question is: How do you generate new users and set access... (2 Replies)
Discussion started by: AimyThomas
2 Replies

8. UNIX for Dummies Questions & Answers

Append two lines of text to php.ini in the entire directory tree.e

I am looking to write a script that will read the php.ini files on my web host. If the two lines do exist do nothing. If not append two lines to the end of it then move on to the next directory and open the next php.ini file. I have the beginning of one that was given to me on another web site but... (6 Replies)
Discussion started by: Larrykh465
6 Replies
MYSQL_LIST_TABLES(3)							 1						      MYSQL_LIST_TABLES(3)

mysql_list_tables - List tables in a MySQL database

SYNOPSIS
Warning This function was deprecated in PHP 4.3.0, and will be removed in the future, along with the entirety of the original MySQL exten- sion. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include: oSQL Query: SHOW TABLES FROM sometable resource mysql_list_tables (string $database, [resource $link_identifier = NULL]) DESCRIPTION
Retrieves a list of table names from a MySQL database. This function is deprecated. It is preferable to use mysql_query(3) to issue an SQL SHOW TABLES [FROM db_name] [LIKE 'pattern'] statement instead. o $database - The name of the database o $ link_identifier -The MySQL connection. If the link identifier is not specified, the last link opened by mysql_connect(3) is assumed. If no such link is found, it will try to create one as if mysql_connect(3) was called with no arguments. If no connection is found or established, an E_WARNING level error is generated. A result pointer resource on success or FALSE on failure. Use the mysql_tablename(3) function to traverse this result pointer, or any function for result tables, such as mysql_fetch_array(3). +--------+-----------------------------------+ |Version | | | | | | | Description | | | | +--------+-----------------------------------+ | 4.3.7 | | | | | | | This function became deprecated. | | | | +--------+-----------------------------------+ Example #1 mysql_list_tables(3) alternative example <?php $dbname = 'mysql_dbname'; if (!mysql_connect('mysql_host', 'mysql_user', 'mysql_password')) { echo 'Could not connect to mysql'; exit; } $sql = "SHOW TABLES FROM $dbname"; $result = mysql_query($sql); if (!$result) { echo "DB Error, could not list tables "; echo 'MySQL Error: ' . mysql_error(); exit; } while ($row = mysql_fetch_row($result)) { echo "Table: {$row[0]} "; } mysql_free_result($result); ?> Note For backward compatibility, the following deprecated alias may be used: mysql_listtables(3) mysql_list_dbs(3), mysql_tablename(3). PHP Documentation Group MYSQL_LIST_TABLES(3)
All times are GMT -4. The time now is 03:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy