Archive for the ‘PHP’ Category

 

Richard on Sep 16th, 2008PHP - Generate a random password based on length

function generate_password($int_num_of_chars)
{  
    if (is_numeric($int_num_of_chars) && ($int_num_of_chars > 0))
    {
        $str_chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";

        for ($i = 0; $i < $int_num_of_chars; $i ++)  
        {
            $str_password .= $str_chars[rand(0, strlen($str_chars)-1)];
         }
    }
       
  […]

Richard on Sep 10th, 2008PHP - Truncate a string to a given length

This is a function I use to display the ellipses when I want to truncate and display a summary of a larger body of text.

function truncate_string($int_length = 0, $str_text = "")
{
    if ($int_length == 0)
    {
        return $str_text;
    }
       
    if(strlen($str_text) > $int_length)
    { […]

Richard on Jul 17th, 2008Magento - Powerful Open Source E-Commerce Software

Magento is the open-source eCommerce solution that promises to revolutionize the industry. It’s modular architecture and unprecedented flexibility means your business is no longer constrained by your eCommerce platform. Magento is total control.

Richard on Jul 16th, 2008jobberBase - Free Job Board Software

jobberBase based on the popular Romanian Job Board Jobber, is an open source job listing software which is great for creating a single-industry job board.

Richard on Jul 12th, 2008Open Flash Chart

Open Flash Chart, is open source. It is free to use and you get the source code to fiddle with!

Richard on Jul 6th, 2008Vista-like Ajax Calendar with Mootools

The Vista-like Ajax Calendar (vlaCalendar) is a unobtrusive web version of the slick and profound Windows Vista taskbar calendar, by using the Mootools Javascript Framework, AJAX, XHTML, CSS and PHP.

The Vista-like Ajax Calendar script is licensed under the Creative Commons Attribution- NonCommercial 3.0 License. What that means is: Use these files however you […]

Richard on Jul 3rd, 2008pChart - a PHP class to build charts

pChart is a PHP class oriented framework designed to create aliased charts. Most of todays chart libraries have a cost, our project is intended to be free. Data can be retrieved from SQL queries, CSV files, or manually provided.

Focus has been put on rendering quality introducing an […]