PHP Breadcrumbs Class 1.0 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News PHP Breadcrumbs Class 1.0 (Default branch)
# 1  
Old 04-16-2008
PHP Breadcrumbs Class 1.0 (Default branch)

PHP Breadcrumbs Class is a little helper PHP class that will let you create and manage your breadcrumbs in an OOP fashion. It is very simple to use and includes documentation and an example file. Its display is controlled through templates.Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
PHAR.GETSTUB(3) 							 1							   PHAR.GETSTUB(3)

Phar::getStub - Return the PHP loader or bootstrap stub of a Phar archive

SYNOPSIS
public string Phar::getStub (void ) DESCRIPTION
Phar archives contain a bootstrap loader, or stub written in PHP that is executed when the archive is executed in PHP either via include: <?php include 'myphar.phar'; ?> php myphar.phar RETURN VALUES
Returns a string containing the contents of the bootstrap loader (stub) of the current Phar archive. ERRORS
/EXCEPTIONS Throws RuntimeException if it is not possible to read the stub from the Phar archive. EXAMPLES
Example #1 A Phar.getStub(3) example <?php $p = new Phar('/path/to/my.phar', 0, 'my.phar'); echo $p->getStub(); echo "==NEXT== "; $p->setStub("<?php function __autoload($class) { include 'phar://' . str_replace('_', '/', $class); } Phar::mapPhar('myphar.phar'); include 'phar://myphar.phar/startup.php'; __HALT_COMPILER(); ?>"); echo $p->getStub(); ?> The above example will output: <?php __HALT_COMPILER(); ?> ==NEXT== <?php function __autoload($class) { include 'phar://' . str_replace('_', '/', $class); } Phar::mapPhar('myphar.phar'); include 'phar://myphar.phar/startup.php'; __HALT_COMPILER(); ?> SEE ALSO
Phar.setStub(3), Phar.createDefaultStub(3). PHP Documentation Group PHAR.GETSTUB(3)