PHP Classes

File: fwphp/glomodul/z_examples/ora11g/ACXE2/equip_graph_page.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/ora11g/ACXE2/equip_graph_page.php   Download  
File: fwphp/glomodul/z_examples/ora11g/ACXE2/equip_graph_page.php
Role: Example script
Content type: text/plain
Description: Example script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: Update of fwphp/glomodul/z_examples/ora11g/ACXE2/equip_graph_page.php
Date: 1 year ago
Size: 1,074 bytes


Class file image Download
// H:\dev_web\htdocs\t_oci8\ACXE2\equip_graph_page.php
  Display page containing graph
Image is included in normal HTML img tag.
If image doesn't display, it might be a problem in equip_graph_img.php
due to text such as an error message or even because of white space
before the <?php tag. This text will be included in image stream
and make the picture invalid. To help debug this kind of problem
you could comment out $session checks
and also header() call in equip_graph_img.php.
$sess = new \Equipment\Session;
if (!isset(
$sess->username) || empty($sess->username)
         || !
$sess->isPrivilegedUser()) {
header('Location: index.php');

$page = new \Equipment\Page;
$page->printHeader("AnyCo Corp. Equipment Graph");
$page->printMenu($sess->username, $sess->isPrivilegedUser());
echo <<<EOF
<div id='content'>
<img src='equip_graph_img.php' alt='Graph of office equipment'>