It calculates the hash value needed by EZMLM
Example
<?php
echo $hash = ezmlm_hash(“info@phpcodez.com”);
?>
Output
5
It calculates the hash value needed by EZMLM
Example
<?php
echo $hash = ezmlm_hash(“info@phpcodez.com”);
?>
Output
5
Example
<?php
echo “<pre>”;
$dir = ‘/var/www/test/’;
$files1 = scandir($dir);
print_r($files1);
?>
Output
Array
(
[0] => .
[1] => ..
[2] => index.php
[3] => enc.php
)
Example
<?php
$dir = opendir(“/var/www/test/”);
while (($file = readdir($dir)) !== false)
echo $file . “<br />”;
rewinddir($dir);
closedir($dir);
?>
Output
index.php
..
.
Example
<?php
$path = “/var/www/test/”;
if (is_dir($path)) {
if ($dir = opendir($path)) {
echo $directory = readdir($dir);
closedir($dir);
}
}
?>
Output
index.php
Example
<?php
echo getcwd() . “<br />”;
chdir(‘../’);
echo getcwd() ;
?>
Output
/var/www/test/date
/var/www/test
Example
<?php
$dir = dir(“/var/www/test/date/”);
echo “Handle: ” . $dir->handle . “<br />”;
echo “Path: ” . $dir->path . “<br />”;
while (($val = $dir->read()) !== false) {
echo $val.”<br />”;
}
$dir->close();
?>
Output
Handle: Resource id #3
Path: /var/www/test/date/
index.php
enc.php
..
.
Example
<?php
$path = “/var/www/test/”;
if (is_dir($path)) {
if ($dir = opendir($path)) {
echo $directory = readdir($dir);
closedir($dir);
}
}
?>
Output
index.php
Example
<?php
chroot(“YOUR-CHROOT-PATH”);
echo getcwd();
?>
Output
/
Example
<?php
echo getcwd() . “<br />”;
chdir(‘../’);
echo getcwd() ;
?>
Output
/var/www/test/date
/var/www/test