rename()
April 12th, 2008 — admin— Renames a file or directory
Description
bool rename ( string $oldname , string $newname [, resource $context ] )
Attempts to rename oldname to newname . Continue reading “rename()”
— Renames a file or directory
Description
bool rename ( string $oldname , string $newname [, resource $context ] )
Attempts to rename oldname to newname . Continue reading “rename()”
If we need to rename all .html to .htm, we can use DOS command: ren
For example, we need to rename all the .html files under E:\dns\aagg, Continue reading “Rename all .html to .htm using DOS command”
Description
int fwrite ( resource $handle , string $string [, int $length ] )
fwrite() writes the contents of string to the file stream pointed to by handle . Continue reading “fwrite() example”
Description
string chr ( int $ascii )
Returns a one-character string containing the character specified by ascii . Continue reading “chr — Return a specific character”
Here are 2 kind php code can generat strong passwords:
$password_length = 9;
function make_seed() {
list($usec, $sec) = explode(’ ‘, microtime());
return (float) $sec + ((float) $usec * 100000);
}
srand(make_seed());
$alfa = “1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNMâ€;
$token = “â€;
for($i = 0; $i < $password_length; $i ++) {
$token .= $alfa[rand(0, strlen($alfa))];
}
echo $token;
If you want to make more money and profit from your affiliate links, you need to display them in different way. Don’t use the default link generated by your affiliate program script. Instead, hide it by using PHP file.
Today when I install XAMPP (www.apachefriends.org), an error comes out “The application failed to initialize properly( 0xc0150002).Click on OK to terminate applicationâ€, I search the internet and found the method to resolve the problem, it is very easy, just download and install the Visual C redistributable: http://www.microsoft.com/downloads/info.aspx?na=90&p=&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=200b2fd9-ae1a-4a14-984d-389c36f85647&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2fe%2f1%2fc%2fe1c773de-73ba-494a-a5ba-f24906ecf088%2fvcredist_x86.exe