Recommended:

  • phpclasses.org
  • jsclasses.org
  • jsmag.com
  • siteapps.com
  • View our reviews on Hot Scripts
  • JS Tutorial
  • scripts.com
  • securesignup.com




Recent Comments

Powered by Disqus




Large background images

What are the problems with large background images? Well, lot's of them. It needs to be resized to show largest area possible on different resolutions, fill webpage background from edge-to-edge and keep it's proportions. You can't use background-image attribute because it's no possible to resize it (not in CSS2), and there...

Comments Read more

Using fonts unsupported by CSS

It is common problem that webdesigners want from webdevelopers more than they can give. For example font specially created for this design. It is not bad thing, becaue sometimes font might be just that element that adds twist to website design, but main problem is that these fonts are unsupported by CSS. If font is supported, there is a...

Comments Read more

Prevent custom font flickering

Main problem with custom fonts, that it usually flickers when loading content. Text appears in default font, and then when custom font is downloaded, text changes to custom font. So user sees default font and only then custom font. How you can deal with this situation? It is possbile to hide text until font preloads. Google provides library...

Comments Read more

CSS reset for browser compatibility

One of the main issues in web development is to make sure you website looks the same (or at least acceptable) in most popular browsers like IE, Mozilla, Opera and Safari. And although it is advised to keep css smaller for faster page load, sometimes you'll need to abuse this rule, to achieve  browser compatibility goal. This...

Comments Read more

Pre filled text input

From marketing point of view, visitor is more likely to submit information to form if he or she is any way encouraged to do that. One way to encourage visitor is to prefill input with encouraging text. Most common mistake to do that is to use predefined text value in input and delete it on focus event. It's a mistake because, for...

Comments Read more

PHP Zend Optimization

For many generic programming languages, efficiency of applications depends also on compiler used to compile application. But PHP is a general-purpose scripting language. It means PHP code is processed by an interpreter application. So is it still possible to optimize PHP applications performance on a "compilation"...

Comments Read more

Get skype status

Skype is a popular voice communication program that is used by many millions of users worldwide. Many companies all over the world are using skype to provide support for their customers online, so it is necessarily to show skype status of support accounts on companies websites. To do it, you can use this simple function fro retrieving skype...

Comments Read more

Prevent hotlinking using mod rewrite

Save your bandwidth and protect your content with simple mod rewrite rules. Just create .htaccess file in your website root directory and add code below, edited to match your needs: Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ #your domain name RewriteCond %{HTTP_REFERER} !domain.com #all file...

Comments Read more

Caching using mod_expires and mod_headers

With all growing traffic to websites, heavy graphic files and multiple simultaneous visitors, sometimes you need to use every tool you can, to optimize your site loading and achieve bets performance. One of the thing you must consider then is caching.  Main advantage of caching is that there is no need to download file again if it was...

Comments Read more

Get full URL of current page

To get full URL of current, you would probably use this code: <?php echo !empty($_SERVER['HTTPS']) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; But, what if you want to modify URL to exclude some parameters, so they won't get added many...

Comments Read more

PHP word wrapping

There is a built in function wordwrap, that can divide long text into multiple lines by specified character amount, but sometimes that's just not enough. There are situations when you need more custom approach to divide text into multiple lines. For example, when dealing with UTF-8, you should use multi-byte safe functions, plus...

Comments Read more

Ajax calendar class

Here is AJAX Calendar, which can be used to display month calendars browsable using AJAX. It can generate HTML and JavaScript to display a month calendar with links to browse the months using AJAX to avoid page reloading. The class can make given days be displayed as links to event pages. The browsing may be restricted to given dates....

Comments Read more

Get Twitter account information based on username

Here is a function that uses Twitter API, to get information about Twitter account based on Twitter username. If there is no account with that username, an error will be returned, if Twitter account is protected - empty array will be returned, else array with user information and latest account activities will be returned. Use print_r to...

Comments Read more

Secure login over HTTP

It is important to keep passwords secure by storing hash of password in database or $_SESSION variables, so if anybody would get to those, they still couldn't easily know what your password is. But it doesn't matter how secure you make it on server side, if everything could be seen on user side. What I mean is, if user is logging in...

Comments Read more

Episode tracker class

Here is Episode tracker class, which can be used to get TV show episodes information from IMDB. This class uses IMDB API from http://imdbapi.poromenos.org/ which is database of TV series and Episodes updated every day from IMDB interface files It can search for TV series by exact names or similar names or combined method, return list of...

Comments Read more

PHP array rotation

Here are some functions to change positions of elements values in array, without changing their order, thus making array rotate. These functions do not preserve array keys, only rotating values. This function rotates array values by specified amount of steps. Positive number will make array rotate forward, negative -...

Comments Read more

Sitemap generator class

Here is Curl multi sitemap class, which can be used to generate multiple sitemaps by crawling sites It can crawl one or more sites to retrieve its pages and follow links recursively and determine the addresses of all pages to include in a XML sitemap. It can ignore given URLs to avoid crawling and including in the sitemap. The...

Comments Read more

QR code generator class

Here is a QR code generator class in PHP that can be used to generate QR Code images using Google Chart API. It can send an HTTP request to the Google Chart API Web server to request the generation of a PNG image that represents the QR code graphic for a given information snippet. Currently the class can request the generation of QR...

Comments Read more

Generate calendar using PHP and browse it using AJAX

Here is a way to generate calendar using PHP and allow user to browse it using AJAX. You will need http://webcodingeasy.com/jquery.js to parse json structure. You can modify this code, to limit month and year user can browse, and also attach link to specific dates, based on your database records. So here is PHP code which generates json...

Comments Read more

Simple PHP class tutorial

Here is an example of simple PHP class and explanations of how things are done, what they mean and example usage. You should be familiar with programming basics to understand this. In classes functions are called methods and variables are called properties. <?php //defining class name which will be used to create instance class...

Comments Read more



1 2 3 4 5 6 7 8 9 10 11