PHP is a widely used programming language for web development. Although there are a lot of alternative programming languages for web development such as ASP and Ruby, but PHP is still the most popular among them.
... read more »
Kategori Inspiration, PHP, written at 25 Ekim 2009 yapan uralozden
Content Management System, or CMS is an application used to manage news easily so that users can publish, edit and delete articles from the back-end admin system. HTML and other scripting language are not necessary to operate a CMS, though having them will add more advantages.
... read more »
Kategori Inspiration, PHP, written at 24 Ekim 2009 yapan uralozden
1. Validate E-Mail
function is_valid_email($email)
{
if(eregi(”^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$”,$email))
return true;
else
return false;
}
2. Validate domain name
function is_valid_url($url)
{
if (preg_match(’/^(http|https|ftp)://([A-Z0-9][A-Z0-9_-]*(?:.[A-Z0-9][A-Z0-9_-]*)+):?(d+)?/?/i’, $url)) {
echo “Your url is ok.”;
else
echo “Wrong url.”;
}
3. Truncate String
This function takes a long string and shortens it to a defined length and adds appends an ellipsis (or custom string) to the [...]
... read more »
Kategori PHP, written at 08 Ekim 2009 yapan emincan