Welcome to GuardiansWorlds.com
 
 

  User Info Box

Anonymous
3.14.135.79
Nickname:

Password:

Security Code:
Security Code
Type Security Code:


User Stats:
Today: 0
Yesterday: 0
This Month: 0
This Year: 0
Total Users: 117
New Members:
Online Now:
  Guests: 18
3.14.xxx.xx
172.70.xxx.xxx
43.153.xx.xx
3.136.xx.xxx
85.208.xx.xxx

  Total Online: 18
Server Time:
Apr 04, 2025
04:19 pm UTC
 

  Modules/Site Links

· Home
· Bible-MM
· Birds-MM
· Car_Show-MM
· Christmas-MM
· Content
· Domaining-MM
· Downloads
· Drugs-MM
· Event Calendar
· FAQ
· Feedback
· Fish-MM
· Gambling_Guide-MM
· Guardians Worlds Chat
· HTML_Manual
· Internet_Traffic_Report
· IP_Tracking Tool
· Journal
· Members List
· Movies-MM
· Music_Sound-MM
· NukeSentinel
· PHP-Nuke_Tools
· PHP_Manual-MM
· PING Tool
· Private Messages
· Recommend Us
· Reptiles-MM
· Search
· SEO_Tools
· Statistics
· Stories Archive
· Submit News
· Surveys
· Top 30
· Topics
· Visitor Mapping System
· Web Links
· Webcams
· Web_Development-MM
· YahooNews
· YahooPool
· Your Account
 

  Categories Menu

· All Categories
· Camaro and Firebird
· FTP Server
· New Camaro
· News
· Online Gaming
 

  Survey

Which is your favorite generation Camaro or Firebird?

1st Gen. 67-69 Camaro
2nd Gen. 70-81 Camaro
3rd Gen. 82-92 Camaro
4th Gen. A 93-97 Camaro
4th Gen. B 98-2002 Camaro
1st Gen. 67-69 Firebird
2nd Gen. 70-81 Firebird
3rd Gen. 82-92 Firebird
4th Gen. A 93-97 Firebird
4th Gen. B 98-2002 Firebird



Results
Polls

Votes: 66
Comments: 0
 

  Cluster Maps

Locations of visitors to this page
 

  Languages

Select Interface Language:

 

 
  Rar::getAttr

Rar::getAttr

(no version information, might be only in CVS)

Rar::getAttr -- Get attributes of the entry

Description

int Rar::getAttr ( void )

Rar::getAttr() returns attributes of the archive entry.

Example 1. Rar::getAttr() example

<?php

$rar_file
= rar_open('example.rar') or die("Can't open Rar archive");

$entry = rar_entry_get($rar_file, 'dir/in/the/archive') or die("Can't find such entry");

$host_os = $entry->getHostOs();
$attr = $entry->getAttr();

switch(
$host_os) {
    case
RAR_HOST_MSDOS:
    case
RAR_HOST_OS2:
    case
RAR_HOST_WIN32:
    case
RAR_HOST_MACOS:
        
printf("%c%c%c%c%c%c\n",
                (
$attr & 0x08) ? 'V' : '.',
                (
$attr & 0x10) ? 'D' : '.',
                (
$attr & 0x01) ? 'R' : '.',
                (
$attr & 0x02) ? 'H' : '.',
                (
$attr & 0x04) ? 'S' : '.',
                (
$attr & 0x20) ? 'A' : '.');
        break;
    case
RAR_HOST_UNIX:
    case
RAR_HOST_BEOS:
        switch (
$attr & 0xF000)
        {
            case
0x4000:
                
printf("d");
                break;
            case
0xA000:
                
printf("l");
                break;
            default:
                
printf("-");
                break;
        }
        
printf("%c%c%c%c%c%c%c%c%c\n",
                (
$attr & 0x0100) ? 'r' : '-',
                (
$attr & 0x0080) ? 'w' : '-',
                (
$attr & 0x0040) ? (($attr & 0x0800) ? 's':'x'):(($attr & 0x0800) ? 'S':'-'),
                (
$attr & 0x0020) ? 'r' : '-',
                (
$attr & 0x0010) ? 'w' : '-',
                (
$attr & 0x0008) ? (($attr & 0x0400) ? 's':'x'):(($attr & 0x0400) ? 'S':'-'),
                (
$attr & 0x0004) ? 'r' : '-',
                (
$attr & 0x0002) ? 'w' : '-',
                (
$attr & 0x0001) ? 'x' : '-');
        break;
}

rar_close($rar_file);

?>

Rar::getAttr() returns FALSE on error.

See also Rar::getHostOs().

 
 


 
  Disipal DesignsAnti-Spam
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2002 by me.
You can syndicate our news using the file backend.php or ultramode.txt This site contains info,links,chat,message board/forum for online games,gaming,other features.Check out my servers and stats for Killing Floor, Quake3 Rocket Arenas & Deathmatch,Trade Wars 2002 & FTP server.Camaro/Firebirds, car info.