Leave a comment

Last week I was working on a  project,that was developed  using YII.Client requested some new features in the existing application and asked us to change the old layout of the application.In this post I am using a HTML template to integrate in YII app.

I have built a default webapp using YII command line tool.If you are not familair with YII command line basic app creation you can check my previous post on YII.

The three simple steps are:

1.Choose a HTML template and keep it under the theme directory an declare it in application configuration.

2.Making valid directory structure so that framework configuration can identify the theme

3.Add PHP code to the static HTML template

Step 1.For this post I have used a Open Source Free HTML5  template,you can choose you own and play with it.

Declare the theme name into the application configuration and it is application/protected/config/main.php and add

Here…

View original post 263 more words

Removing the Windows XP

Leave a comment

  1. Log in to your PC using an account with administration rights.
  2. Open the Start menu, type “regedit” into the search box and press enter.
  3. Navigate to the “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents” directory in the registry.
  4. Double-click on the registry entry labeled “OOBETimer.”
  5. Change the current string of letters and numbers to “FF D5 71 D6 8B 6A 8D 6F D5 33 93 FD” and then hit “OK” to save the settings.
  6. Right-click on the “WPAEvents” folder and select “Permissions.”
  7. Deny permission access for the “System” listing and click “OK” to save the configuration. The Windows XP® activation notice is now disabled and removed. Your computer will now be activation popup free!

[PHP] Get Image Size

Leave a comment

Syntax :

getimagesize(“image_name”);

Penggunaan :

$info = getimagesize(“my-great-photo.jpg”);

Mendapatkan width : echo  $info[0];


Berikut value yang disimpan di dalam array :

Array (

[0] => 300

[1] => 200

[2] => 2

[3] => width=”300″height=”200″

[bits] => 8

[channels] => 3

[mime] => image/jpeg

)

Sumber : http://www.electrictoolbox.com/php-get-image-size/