Skip to Content
Webmaster in a Nutshell, Second Edition
book

Webmaster in a Nutshell, Second Edition

by Stephen Spainhour, Robert Eckstein
June 1999
Intermediate to advanced
540 pages
21h 39m
English
O'Reilly Media, Inc.
Content preview from Webmaster in a Nutshell, Second Edition

File Functions

The following functions manipulate the local filesystem in some manner:

string basename(string path)

Return the filename component of the path

int chgrp(string filename, mixed group)

Change the file group

int chmod(string filename, int mode)

Change the file mode

int chown(string filename, mixed user)

Change the file owner

void clearstatcache(void)

Clear the file stat cache

int copy(string source_file, string destination_file)

Copy a file

string dirname(string path)

Return the directory name component of the path

int fclose(int fp)

Close an open file pointer

int feof(int fp)

Test for end-of-file on a file pointer

string fgetc(int fp)

Get a character from the file pointer

string fgets(int fp, int length)

Get a line from the file pointer

string fgetss(int fp, int length)

Get a line from the file pointer and strip HTML tags

array file(string filename)

Read an entire file into an array

int file_exists(string filename)

Check whether a file exists or not

int fileatime(string filename)

Get the last access time for a file

int filectime(string filename)

Get the last inode status change for a file

int filegroup(string filename)

Return the group ID of the file

int fileinode(string filename)

Return the inode number of the file

int filemtime(string filename)

Return the time the file was last modified

int fileowner(string filename)

Return the user ID of the owner of the file

int fileperms(string filename)

Return the file permission bits of the file

int filesize(string filename) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Webmaster in a Nutshell, Third Edition

Webmaster in a Nutshell, Third Edition

Robert Eckstein, Stephen Spainhour
Back-end Performance

Back-end Performance

Bruno Skvorc, Christopher Pitt, Tonino Jankov, Reza Lavaryan, Daniel Berman

Publisher Resources

ISBN: 1565923251Purchase bookErrata Page