Here is a good easy sample of pagination using Oracle in PHP, Please notice that I have a layer, running different queries which I need, and in some lines below I've used them but the names of the function and variable which I've called are obviously seen that how they perform.
Further, Please note that you would be expected to call your own oracle database through PHP oracle functions, and as you can see, I have a table storing page sessions and the function "oracle->select" runs the query "SELECT * FROM SESSION_ID" and returns its result and the variable "numberrows" has the number of rows which the implemented query has returned.
The page you quoted has one big problem: it does an oci_fetch_all() and then only prints a few rows.
This is very wasteful of RDBMS processing and network transfer costs to find & ship all the rows back to PHP.
The PHP code for paging is not specific to Oracle, and there are plenty of examples on the web.
Here's another one which does use Oracle DB:
Edited by: cj on Feb 28, 2012 3:45 PM Added comment on the previously referenced page