Read on! Earnings from this blog will go to charity; to sponsor a child!

Tag | "php"

How to generate random password (VB.Net/C#[ASP.Net]/PHP)


Lately I was googling for the shortest and simplest way of generating some random passwords. So here we go. I'll share with you what I found and how I applied them. VB.Net Public Function GenerateRandomPassword(ByVal length as Integer) as String Dim strGuid as String = System.Guid.NewGuid().ToString() strGuid= strGuid.Replace("-", String.Empty) Return strGuid.Substring(0, length) End Function Read the full story

Tags: , , , , , , , , ,

Written by Felix Ker on March 29th, 2008 with 1 comment.
Read more articles on .NET and Programming.

Related entries:

PHP - What did I learn?

Lately I touched more PHP than felixker.com. (Notice that I blog less!) I'll keep this entry short and simple since it's 12am and I should be in bed by now. Some in-built functions I found very useful. urlencode This is a must-use function if you're going to use query strings ($_GET) to pass variable to another page! Remember to use urldecode when using the variable! Example: $string = "i have a cute & tiny dog!" header("Location: http://felixker.com/foo?bar=)); htmlentities Wonderful function to use if you've got a page with form submission. Prevents users from playing tricks! Example: $str = "A 'quote' is <b>bold</b>"; // Outputs: A 'quote' is &lt;b&gt;bold&lt;/b&gt; echo htmlentities($str); Conclusion I must end this entry. I ...

Tags: , , ,

Written by Felix Ker on October 12th, 2007 with 2 comments.
Read more articles on So random! and Technology.

Related entries:

Learn PHP the easy and humorous way!

Learning PHP made easy and humorous!

Tags:

Written by Felix Ker on August 13th, 2007 with no comments.
Read more articles on Interesting Articles.

Related entries:



Miscellaneous





web tracker



FAQ | Sitemap | Disclosure Policy | Privacy Policy
100 queries. 2.693 seconds.
© 2007 felixker.com (Felix Ker's blog)