I'm using PHP in my site.
I have txt files for news.
I reads the txt files and post the news.
i have a php function that finds the caracter asc(13) which is the enter, and puts a <br>.
It works in Windows, but not on Unix.
Can u help me with that.
Thanks (1 Reply)
When i come to the login screen i will put root and no password, and it will say its incorrect, but even when i try to enter a password nothing comes up in the box (2 Replies)
Hello, today i'm comment in /etc/vfstab fs /usr and my server load in SingleUser without anything commands :(
How i can enter to OBP from # ? or ILOM ?
I'm try CTRL+BREAK (F5) , CTRL+ALT+BREAK (F5) and #. but it's don't help me :(((( (5 Replies)
Hello,
I need to trigger every time enter has been clicked while some one on terminal
i tried to googleit but with out result any idea ??
thanks in advance (3 Replies)
Hi All,
I have a file , delimited by |
Last column of the file has a extra enter causing error in my program
Eg:
firstworld <enter>; NO EMP
i want data to be firstworld; NO EMP
Is there a way to remove enter from a file (2 Replies)
Do Tab or Enter behave like a command in some cases? For example,
I had been trying to plot with gnuplot by usinf shell script like command inside:
cat plot.gnu gives :
plot 'datafile1' , \
'datafile2'
Now gnuplot doesn't recognize the newline command "\"
unless I use "enter" in the... (12 Replies)
Hi folks,
I am on a very critical situation. I have a sun Solaris 10 MC with oracle 10G installed on it.
When i try to mount the DB, I can mount it, But when I try to access it, the DB is inaccessible.
SQL> select status from v$instance;
STATUS
------------
MOUNTED
SQL> shutdown... (6 Replies)
have three big data file, however I just need to see the mentioned below one line form the all the file which has SERVER_CONNECTION Value
File 1
export SERVER_CONNECTION=//dvlna002:10001/SmartServer
File2
export SERVER_CONNECTION=///SmartServer
File3
export... (1 Reply)
Discussion started by: Nsharma3006
1 Replies
LEARN ABOUT PHP
splfileobject.fputcsv
SPLFILEOBJECT.FPUTCSV(3) 1 SPLFILEOBJECT.FPUTCSV(3)SplFileObject::fputcsv - Write a field array as a CSV line
SYNOPSIS
public int SplFileObject::fputcsv (array $fields, [string $delimiter = ","], [string $enclosure = '"'], [string $escape = "
DESCRIPTION
Writes the $fields array to the file as a CSV line.
PARAMETERS
o $fields
- An array of values.
o $delimiter
- The optional $delimiter parameter sets the field delimiter (one character only).
o $enclosure
- The optional $enclosure parameter sets the field enclosure (one character only).
o $escape
- The optional $escape parameter sets the escape character (one character only).
RETURN VALUES
Returns the length of the written string or FALSE on failure.
Returns FALSE, and does not write the CSV line to the file, if the $delimiter or $enclosure parameter is not a single character.
ERRORS /EXCEPTIONS
An E_WARNING level error is issued if the $delimiter or $enclosure parameter is not a single character.
CHANGELOG
+--------------+-------------------------------+
| Version | |
| | |
| | Description |
| | |
+--------------+-------------------------------+
|5.5.21, 5.6.5 | |
| | |
| | Added the $escape parameter. |
| | |
+--------------+-------------------------------+
EXAMPLES
Example #1
SplFileObject::fputcsv example
<?php
$list = array (
array('aaa', 'bbb', 'ccc', 'dddd'),
array('123', '456', '789'),
array('"aaa"', '"bbb"')
);
$file = new SplFileObject('file.csv', 'w');
foreach ($list as $fields) {
$file->fputcsv($fields);
}
?>
The above example will write the following to file.csv:
aaa,bbb,ccc,dddd
123,456,789
"""aaa""","""bbb"""
SEE ALSO fputcsv(3), SplFileObject::fgetcsv.
PHP Documentation Group SPLFILEOBJECT.FPUTCSV(3)