Server : LiteSpeed
System : Linux terra.hostitbro.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : outerorb ( 1091)
PHP Version : 8.1.34
Disable Function : mail
Directory :  /home2/outerorb/emp.outerorbittech.in/scripts/

📁 Create New:
⬆️ Upload File:
Current Dir [ Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

📄 File: inspect_xls.php

Path: /home2/outerorb/emp.outerorbittech.in/scripts/inspect_xls.php

Size: 549 B

Permissions: 0666

<?php
require __DIR__ . '/../vendor/autoload.php';
$file = __DIR__ . '/../uploads/att/18-MAR-2026.xls';
try {
    $ss = \PhpOffice\PhpSpreadsheet\IOFactory::load($file);
    $sheet = $ss->getActiveSheet();
    $rows = $sheet->toArray(null, true, true, true);
    $out = array();
    $i = 0;
    foreach ($rows as $r) {
        $i++;
        if ($i > 12) break;
        $out[] = $r;
    }
    echo json_encode($out, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
} catch (Throwable $e) {
    echo 'ERROR: ' . $e->getMessage();
}

← Back to Directory Edit File 🔒 Chmod

WP File Manager