Category

PHP

You are now browsing the posts filled under PHP.

Multilingual Website with CakePHP

Multilingual Website with CakePHP

We all know that developing a website in CakePHP is very easy and also fast. Here’s how to create a multilingual website fast.
First open app/config/bootstrap.php and set the languages you want available for your website:

Configure::write(‘Config.languages’, array(
‘ro’ => array(
‘language’ => ‘Romanian’,
‘locale’ => ‘rum’,
[...]

Sava’s Single File Upload Script

Sava's Single File Upload Script

Single file upload script. All the variables can be easily changed to suit your needs: – maximum file size that can be uploaded – allowed file extensions of files that are uploaded Easy to integrate into any design as it is very easy to remove it’s css and use your own. You can also view [...]

Sava’s GuestBook v2.0

Sava's GuestBook v2.0

Features
New simple layout will easy on the eye colors
The entries submitted will stay pending untill the admin approves them.
Image captcha
Pagination system – the GuestBook will display the entries in pages so that your page will load faster and be smaller. You can edit the number of entries displayed per page in includes/db.php
Statistics : your guestbook [...]

Sava’s ReviewMe Offer Notifier

Sava's ReviewMe Offer Notifier

With this scripts you can easily get the latest offers from ReviewMe directly to your email address.
Script needs to be added as a cron job. If you don’t know how to set up a cron job read this article.
No Preview | Download (4.72KB) ( 1906 downloads )

Sava’s Random Quote

Sava's Random Quote

Quotes are stored in a text document. Just include the quotes.php file wherever you want to display random quotes on your website and you are done. Inserting your quotes: – HTML can also be used with your quotes. – To enter another quote in the text file hit enter. – you can use as many [...]

Sava’s Password Protect

Sava's Password Protect

Sava’s Password Protect Script offers it’s users the option to password protect the pages that others aren’t supposed to see. Just edit the file and set your login and password and then just include the file on every page you want to have a password. You can also choose that the script will request just [...]

Sava’s Link Manager v2.0

Sava's Link Manager v2.0

Features

Easy to use admin panel (edit/delete/add links)
Cool display – can be integrated into any website
Link counter – displays how many times a link was clicked
Users are able to submit links themselves, but are shown only after admin approval
Shows a links description also if you enter one so your visitors know what that site is about. [...]

Sava’s Simple CSS Switcher

Sava's Simple CSS Switcher

Simple PHP script to change the css file of your website. It can handle unlimited number of css files. The users choice is stored in a session variable so the css theme won’t change until the user switches to another. Read me file included in the archive. With the script you can easily have more [...]

Sava’s Contact Form

Sava's Contact Form

Features

very easy to install and use
captcha to prevent spam protection
very easy to style and integrate into your existing website

Preview | Download (2.98KB) ( 2491 downloads )

Display the time passed in any format you want

If you use digg you probably noticed that they displayed the time passed since a comment has been posted in the following way:

To obtain a rezult in this format we will use the function strtotime. This function counts the seconds that have passed since the 1st of January 1970.
In order to obtain the number of [...]

ss_blog_claim=35efd881137b13aae56d7e24920f8a2b