Free Php Scripts, Articles and Resources
    home  Home   php  PHPscripts   articles  Articles   contact  Contact
Date: 13 March 2010
in

Total scripts: 203
Total downloads: 25548
Total articles: 11

Latest Scripts
Free Contact Us Script +...
Free PHP ODP Script

Top Downloaded Scripts
Captcha Security Images
dGallery

Best Rated Scripts
File Searcher
Transparent Watermark

CATEGORIES

PHP ARTICLES

Latest PHP Articles

How to replace a text in a mysql table
         Sometimes, we need to replace a text in all the entries from a mysql table. For example, you want to replace all the absolute links from your articles with relative links. This can help you if you move the site to a new domain, or from a test...

Creating subdomains dynamically with .htaccess
         This tutorial presents a way to create subdomains dynamically using .htaccess You will be able to change the way you access a page from 'www.site.com/subdomain' to 'www.subdomain.site.com'Say we have, for example, a site where...

How to convert mpeg/avi files to .flv at server side
         Video streaming has become a very popular feature on many sites. One of the most convenient ways to add this feature on a web site is to use a flash player (e.g. FlowPlayer - it's nice and free). In order to use a flash player you will need to...

Adding a number of days to a calendaristic date
         Many times it is needed to add a number of days to a date (e.g. to determine the expiration date for a link). To do this, you may use the following php code:$days_to_add = 30;$current_date = date('Y-m-d H:i:s'); //get the current...

How to open a web page in php
         The following function can be used to open a url and retreive the content from the given web address. The content of the web page is saved in a variable that can be later used to parse or display the retrieved content. $url =...

How to send html mail in php
         The following code can be used to send html emails using php: /** define email fields **/$email_text   = "<strong>Hello</b> <br /> This is an email in html format.";$subject        =...

How to generate a random string in php
         You can generate a random string, using the following php function. The function takes as an argument the length of the generated string.     function generateRandomString($length=5)    {   ...

How to resize an image in php, preserving the aspect ratio
         The following function will resize a jpeg/png or gif image. Parameters: $source - Path to the image that has to be resized $dest - The name/path of the resized image $w - The desired width for the new image $h - The desired height for...

10 most common problems and mistakes done by PHP coders
         1. Not escaping entities It's basic knowledge; ALL untrusted input (especially user input from forms) has to be sanitized before it is being output. echo $_GET['username']; Can for instance output: /*snooping cookie or changing admin...

Installing PHP 4 and PHP 5 concurrently ...
         Currently in PHP community there are many people that are still programming their code in PHP 4. PHP 5 is not yet completely adopted by the programmers (or hosting companies) in spite of having been around for quite some time now. This could be...