9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
For one of our requirements, we are using curl command from a Linux box to call the servlet using PEM certificates type. Once servlet is trigger, the data will be loaded through servlet. If the servlet thread is completed successfully, then the control should return to Unix and based on... (0 Replies)
Discussion started by: subhransun
0 Replies
2. What is on Your Mind?
Hi,
Last year, I took Solaris 9 part 1 certification and passed. Due to many things in my life I never took part 2. I am ready to take it now. But I see every one is using Solaris 10 now. In my company, we use 10 on few boxes but mostly we are still on Solaris 9.
so my question is should... (1 Reply)
Discussion started by: samnyc
1 Replies
3. AIX
Hi,
a friend of mine passed there 223 last year and they gave me there testkiller document which was 65 questions, i am looking at doing my 223 exam and i have gone to testkiller recently and noticed there is an updated version which is now 383 questions.
I did the ibm pre-exam and all the... (1 Reply)
Discussion started by: rorted
1 Replies
4. UNIX for Dummies Questions & Answers
I came across a question studying for my Linux+ exam. The question deals with a customer who installed a new hard drive on a Linux system. Question asks what is the order of task to allow a MP3 collection to be put on the new drive. The answer given is cfdir, mkfs, mount. My question is what is... (1 Reply)
Discussion started by: dreday13
1 Replies
5. What is on Your Mind?
This is a very serious post. I am a Cell Technician (Cellular Base Station Tech) who is completely bored because my job has basically evolved into a Field Secretary position. I love working on T1's and troubleshooting equipment outages and so on and so forth but my job has become VERY... (2 Replies)
Discussion started by: CoopDeVille
2 Replies
6. UNIX for Advanced & Expert Users
--ns-cert-type client|server
Require that peer certificate was signed with an explicit nsCertType designation of "client" or "server".
This is a useful security option for clients, to ensure that the host they connect with is a designated server.
See the easy-rsa/build-key-server script for... (0 Replies)
Discussion started by: kungpow
0 Replies
7. UNIX for Dummies Questions & Answers
Does anyone have the question or a practice exam for the Solaris 8 Certification. If so email me at (1 Reply)
Discussion started by: aojmoj
1 Replies
8. New to Unix. Which books should I read?
Hi,
I am an NT MCSE who has decided to abandon the MSCE Win2K path and take the UNIX/Linux Path.
But since I am very new to that field, I am not sure exactly what Certification I should get that would cover the biggest area of that field as possible. Not to mention if I should got with... (10 Replies)
Discussion started by: aliissa
10 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am an NT MCSE who has decided to abandon the MSCE Win2K path and take the UNIX/Linux Path.
But since I am very new to that field, I am not sure exactly what Certification I should get that would cover the biggest area of that field as possible. Not to mention if I should got with... (10 Replies)
Discussion started by: aliissa
10 Replies
SEEKABLEITERATOR(3) 1 SEEKABLEITERATOR(3)
The SeekableIterator interface
INTRODUCTION
The Seekable iterator.
INTERFACE SYNOPSIS
SeekableIterator
SeekableIteratorextends
Iterator
Methods
o abstractpublic void SeekableIterator::seek (int $position)
Inherited methods
o abstractpublic mixed Iterator::current (void )
o abstractpublic scalar Iterator::key (void )
o abstractpublic void Iterator::next (void )
o abstractpublic void Iterator::rewind (void )
o abstractpublic boolean Iterator::valid (void )
Example #1
Basic usage
This example demonstrates creating a custom SeekableIterator, seeking to a position and handling an invalid position.
<?php
class MySeekableIterator implements SeekableIterator {
private $position;
private $array = array(
"first element",
"second element",
"third element",
"fourth element"
);
/* Method required for SeekableIterator interface */
public function seek($position) {
if (!isset($this->array[$position])) {
throw new OutOfBoundsException("invalid seek position ($position)");
}
$this->position = $position;
}
/* Methods required for Iterator interface */
public function rewind() {
$this->position = 0;
}
public function current() {
return $this->array[$this->position];
}
public function key() {
return $this->position;
}
public function next() {
++$this->position;
}
public function valid() {
return isset($this->array[$this->position]);
}
}
try {
$it = new MySeekableIterator;
echo $it->current(), "
";
$it->seek(2);
echo $it->current(), "
";
$it->seek(1);
echo $it->current(), "
";
$it->seek(10);
} catch (OutOfBoundsException $e) {
echo $e->getMessage();
}
?>
The above example will output something similar to:
first element
third element
second element
invalid seek position(10)
PHP Documentation Group SEEKABLEITERATOR(3)