11-20-2011
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?
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Actually, I'm going to be setting up my new hard drive to boot 3-4 OSes...so far I'm definite on Windows 2000 Advanced Server and FreeBSD 4.4, and I'm stuck between RedHat 7.2 and Mandrake 8.1 for my Linux choice...anyways....
I'm gonna be using boot.ini as the boot loader thing. I've already... (3 Replies)
Discussion started by: DownSouthMoe
3 Replies
2. Shell Programming and Scripting
Hi,
I have a sample data file that contains name-value pairs in it.
For example:
name1=value1
name2=value2
name3=value3
...
...
...
My concern is
1. How to get values of name1, name2, name3 using korn shell script?
2. I don't want to access each varible using $name1,$name2, $name3... (2 Replies)
Discussion started by: vinna
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I want to access MS SQL Server database through Informatica which is an ETL tool installed on sun solaris Unix operating system. For me to access the MS SQL Server i studied that i need to update the odbc.ini file on Unix box. Could you please let me know how and where i can access this file... (1 Reply)
Discussion started by: Ariean
1 Replies
4. Web Development
I can't use mysql .How should i config the file of php.ini . the message:
Fatal error: Call to undefined function mysql_errno() in /var/www/html/inc/dv_clssql.php on line 129
how should i do? please help me (2 Replies)
Discussion started by: fang_xiaoan
2 Replies
5. UNIX for Dummies Questions & Answers
I have a working directory on a server with over 100 INI files. For the most part, they are configured the same way. Each line will contain 1 or none variables listed from the first character in the line such as VariableName=0.
Unfortunately there are comments everywhere using the... (4 Replies)
Discussion started by: hindesite
4 Replies
6. Shell Programming and Scripting
Hi there, my english is not the best but i try to tell what i want.
i want a Shell Script with this i can creat a Shoutcast Stream and stop, start and restart it. I have found this Script:
http://serversupportforum.de/forum/sonstige-serverdienste/10602-shoutcast-server-init-script.html
When i... (1 Reply)
Discussion started by: Cannon
1 Replies
7. Shell Programming and Scripting
hi people,
i'm having a hard time trying to extract a list of vars delimited by section inside a ini file ...
let's consider this ini file :
; config file
DESC = "channel synchro TGG01"
DMM_VER = DMM23
PATH_FIFO = /users/tgg00/fifo
QRT = BTS01.TGG.01.2
MODE_TRACE... (5 Replies)
Discussion started by: odium74
5 Replies
8. UNIX for Dummies Questions & Answers
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
LEARN ABOUT PHP
pg_last_notice
PG_LAST_NOTICE(3) PG_LAST_NOTICE(3)
pg_last_notice - Returns the last notice message from PostgreSQL server
SYNOPSIS
string pg_last_notice (resource $connection)
DESCRIPTION
pg_last_notice(3) returns the last notice message from the PostgreSQL server on the specified $connection. The PostgreSQL server sends
notice messages in several cases, for instance when creating a SERIAL column in a table.
With pg_last_notice(3), you can avoid issuing useless queries by checking whether or not the notice is related to your transaction.
Notice message tracking can be set to optional by setting 1 for pgsql.ignore_notice in php.ini.
Notice message logging can be set to optional by setting 0 for pgsql.log_notice in php.ini. Unless pgsql.ignore_notice is set to 0, notice
message cannot be logged.
PARAMETERS
o $connection
- PostgreSQL database connection resource.
RETURN VALUES
A string containing the last notice on the given $connection, or FALSE on error.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 4.3.0 | |
| | |
| | This function is now fully implemented. Earlier |
| | versions ignores database connection parameter. |
| | |
| 4.3.0 | |
| | |
| | The pgsql.ignore_notice and pgsql.log_notice |
| | php.ini directives were added. |
| | |
| 4.0.6 | |
| | |
| | PHP 4.0.6 has problem with notice message han- |
| | dling. Use of the PostgreSQL module with PHP |
| | 4.0.6 is not recommended even if you are not |
| | using pg_last_notice(3). |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
pg_last_notice(3) example
<?php
$pgsql_conn = pg_connect("dbname=mark host=localhost");
$res = pg_query("CREATE TABLE test (id SERIAL)");
$notice = pg_last_notice($pgsql_conn);
echo $notice;
?>
The above example will output:
CREATE TABLE will create implicit sequence "test_id_seq" for "serial" column "test.id"
SEE ALSO
pg_query(3), pg_last_error(3).
PHP Documentation Group PG_LAST_NOTICE(3)