downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<Phar::isFileFormatPhar::isWritable>
Last updated: Thu, 26 Jun 2008

Phar::isValidPharFilename

(PECL phar:1.2.0-1.2.1)

Phar::isValidPharFilename — Returns whether the given filename is a valid phar filename

Description

bool Phar::isValidPharFilename ( string $filename [, bool $executable ] )

Returns whether the given filename is a valid phar filename that will be recognized as a phar archive by the phar extension. This can be used to test a name without having to instantiate a phar archive and catch the inevitable Exception that will be thrown if an invalid name is specified.

Parameters

filename

The name or full path to a phar archive not yet created

executable

This parameter determines whether the filename should be treated as a phar executable archive, or a data non-executable archive and is TRUE by default

Return Values

Returns TRUE if the filename is valid, FALSE if not.



add a noteadd a note User Contributed Notes
Returns whether the given filename is a valid phar filename
There are no user contributed notes for this page.




<Phar::isFileFormatPhar::isWritable>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs