05-19-2012
OK, if anyone wants to sell me their bits, I'll buy them back at $1 per million this month, money via Paypal (seller pays transfer fees), minimum quantity 5 million
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
(yes i read the man page for chmod) and i did a basic search on the web.
but it never really went into any info on it.
the reason i ask is. when my systems receaves an email @ at certer user it has a specific mailer specified and that mailer writes stuff to /tmp well the orig. perms were... (3 Replies)
Discussion started by: Optimus_P
3 Replies
2. UNIX for Dummies Questions & Answers
I'm have some trouble, I'm doing some unix stuff for fun and I can't get something to work
I have a getquote.sh script:
wget "http://finance.yahoo.com/q?s=$1" -o /dev/null -O quote
echo `echo $1; egrep "Last Trade:" quote | cut -d ">" -f 3 | cut -d "<" -f 1`
to get the current trading price... (1 Reply)
Discussion started by: hinch
1 Replies
3. UNIX for Dummies Questions & Answers
Im using Mozilla Firefox on my Linux laptop.
When I'm logged in at Facebook I can see the general page but when I'm going to my "own" page I can't see the posts, just the head of the page.
I don't know if it's a problem related to Linux or Mozilla.
Greatful for any help. (1 Reply)
Discussion started by: Midde
1 Replies
4. Shell Programming and Scripting
Input data:
read1_data1
read1_data1
read2_data1
read3_data1
read4_data1
read4_data1
read4_data1
read5_data1
.
.
Desired output result:
read1_data1
read1_data2
read2_data1
read3_data1
read4_data1 (3 Replies)
Discussion started by: perl_beginner
3 Replies
5. What is on Your Mind?
(0 Replies)
Discussion started by: Neo
0 Replies
6. Post Here to Contact Site Administrators and Moderators
Some posts have a live link to Facebook. This is a banned site here and on many commercial sites. It triggers alerts.
How can we stop the system trying and failing to connect to Facebook?
Example hidden (hugely long) link is:
Like
Interestingly, posting the link triggers the ERROR box on... (4 Replies)
Discussion started by: methyl
4 Replies
FPRINTF(3) 1 FPRINTF(3)
fprintf - Write a formatted string to a stream
SYNOPSIS
int fprintf (resource $handle, string $format, [mixed $args], [mixed $...])
DESCRIPTION
Write a string produced according to $format to the stream resource specified by $handle.
PARAMETERS
o $handle
-A file system pointer resource that is typically created using fopen(3).
o $format
- See sprintf(3) for a description of $format.
o $args
-
o $...
-
RETURN VALUES
Returns the length of the string written.
EXAMPLES
Example #1
fprintf(3): zero-padded integers
<?php
if (!($fp = fopen('date.txt', 'w'))) {
return;
}
fprintf($fp, "%04d-%02d-%02d", $year, $month, $day);
// will write the formatted ISO date to date.txt
?>
Example #2
fprintf(3): formatting currency
<?php
if (!($fp = fopen('currency.txt', 'w'))) {
return;
}
$money1 = 68.75;
$money2 = 54.35;
$money = $money1 + $money2;
// echo $money will output "123.1";
$len = fprintf($fp, '%01.2f', $money);
// will write "123.10" to currency.txt
echo "wrote $len bytes to currency.txt";
// use the return value of fprintf to determine how many bytes we wrote
?>
SEE ALSO
printf(3), sprintf(3), sscanf(3), fscanf(3), vsprintf(3), number_format(3).
PHP Documentation Group FPRINTF(3)