php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
encryption.php File Reference

Go to the source code of this file.

Variables

if(!extension_loaded('zip')) $name = __DIR__ . '/encrypted.zip'
 
 $pass = 'secret'
 
 $file = 'foo.php'
 
 $zip = new ZipArchive
 
 $text = $zip->getFromName($file)
 
 $ctx
 

Variable Documentation

◆ $ctx

$ctx
Initial value:
'zip' => array(
'password' => $pass
)
))
stream_context_create(?array $options=null, ?array $params=null)
$pass
Definition encryption.php:8

Definition at line 42 of file encryption.php.

◆ $file

$file = 'foo.php'

Definition at line 9 of file encryption.php.

◆ $name

if (!extension_loaded( 'zip')) $name = __DIR__ . '/encrypted.zip'

Definition at line 7 of file encryption.php.

◆ $pass

$pass = 'secret'

Definition at line 8 of file encryption.php.

◆ $text

$text = $zip->getFromName($file)

Definition at line 36 of file encryption.php.

◆ $zip

$zip = new ZipArchive

Definition at line 13 of file encryption.php.