sangkrit

How To Easily Edit Your PHP.INI File From cPanel ?

What is PHP.INI File ? PHP.INI is a configuration file which is read when PHP starts up. For server module versions of PHP, it only happens once when the webserver is started. For the CGI and CLI versions, it happens on every invocation.

[...]

How To Easily Convert HTML Code To PHP Online In Just A Click ?

Its easy to convert HTML code to PHP without hiring any PHP programmer or downloading any application, you can simply do this online free of cost. There are many online free tools that converts HTML to PHP in quick way.

[...]

Create Your Own YouTube Like Video Broadcasting Website Using PHPmotion

What is PHPmotion ?

PHPmotion is a free video sharing software also supports other media types like audio/mp3 sharing. This CMS allows you to create and run your own Video Sharing Site, Music Sharing Site, Picture Sharing Site very easily, you can now have a website just like youtube.com , dailymotion.com, veoh, hi5 [...]

How To Add Hacks In Your BuddyPress Site Without Loosing Them In The Next Update ?

Add actions and hacks without touching your theme’s function.php file. So that you don’t loose them anytime while running BuddyPress update.

[...]

What is the full form of PHP ?

What is the full form of PHP ?

Function For Defining Default Post Thumbnail In WordPress

Open your theme’s function.php file and add the given function editing the thumbnail image URL (given in bold text) with your own image URL.

add_action( ‘save_post’, ‘wptuts_save_thumbnail’ ); function wptuts_save_thumbnail( $post_id ) { $post_thumbnail = get_post_meta( $post_id, $key = ‘_thumbnail_id’, $single = true ); if ( !wp_is_post_revision( $post_id ) ) { [...]

How To Edit WordPress ‘Posts’ Label ?

You can edit WordPress post label to something Else. For example if you want to edit Posts (label) to Article so that anytime you or any other member visit you wp-admin (dashboard) he can see Article as a label on sidebar menu not posts (which is by default).

Different Ways Of Defining Arrays In PHP

How to define an empty array ?

$my_array_1 = array();

How to define an auto incremented array?

$my_array_2 = array(“one_1″,”two_2″,”three_3″);

How to define a multidimensional array ?

$multi_dim_array = array(); $multi_dim_array[] = array(“one_1″,”two_2″); $multi_dim_array[] = array(“three_3″,”four_4″); echo $multi_dim_array[0][1]; echo $multi_dim_array[1][0];

How to define an array with assigned index stings ?

$my_array_4 = array( “name”=>”your_name”, “age”=>20, [...]

Restricting Image Upload Size and Upload Time Using PHP

How to Limit File Upload Size using PHP ?

For reducing high bandwidth usage network admins can limit file size to be uploaded on server by other users. Following script limits file size a user can upload:

<?php if ($_FILES["file"]["size"] < 25000)) // Max File Size: 25KB { echo “File size [...]

Page 1 of 12123...10...Last »