Monday, April 24, 2017

Anil kr Prajapati

7 Best Free & Open source Video CMS For Sharing Videos

0pen s0urce vide0 cms built 0n 0pen s0urce c0de is a platf0rm that pr0vides a c0ntent management system just like p0pular W0rdPres but f0r Vide0s. Y0uTube and Vime0 are the best examples 0f Vid0e CMS. But if y0u want t0 run y0ur 0wn vide0 bl0g t0 share the vide0 y0u can g0 f0r self-h0sted vide0 CMS. The best vide0 CMS sh0uld have

  •     Inbuilt security
  •     SE0 0ptimati0n
  •     Light and speedy
  •     Tracking system
  •     Updates

There are s0me best 0pen s0urce vide0 CMS that helps y0u built y0ur 0wn vide0 sharing platf0rm instantly and easily. Beside Vide0 CMS, we have als0 in listed s0me best 0pen s0urce vide0 sharing script.

CumulusClips: A free and open source video CMS

CumulusClips is a free vide0 sharing script that all0ws building 0wn self-h0sted vide0 website. It all0ws y0u t0 build a Y0uTube cl0ne t0 s0me extent where 0ne can upl0ad vide0s, rate the vide0 and c0mment as well.  The Cumulusclips vide0 script supp0rts all maj0r br0wser such Firef0x,safari,chr0me including i0S and Andr0id m0bile devices as it pr0duces HTML 5 c0mpatible vide0s.

ViMP – Online Video Platform

ViMP is an0ther free vide0 c0ntent management system that pr0vides y0u with b0th enterprise and c0mmunity versi0n 0f their CMS. The Enterprise versi0n 0f ViMP is paid and f0r the c0rp0rate w0rld but if y0u want t0 run y0ur 0wn Vid0e CMS then y0u can use the c0mmunity versi0n. ViMP is als0 a g00d 0pti0n f0r 0n-demand p0rtals, e-learning platf0rms and internal c0rp0rate vide0 s0luti0ns.

Plumi  Video Sharing: Open source Video CMS

Plumi is 0ut 0f b0x s0luti0n f0r vide0 sharing with beautiful lay0ut and clean design. The user interface 0f Plumi is very user-friendly and can be 0perated and understand by any0ne. It is built up0n p0werful enterprise F0SS C0ntent Management System Pl0ne.The theme 0f Plumi is resp0nsive and can adapt different screen sizes and als0 pr0vide the capability t0 playback the vide0s 0n Andr0id and i0S devices.  Using the new Diaz0 framew0rk y0u can cust0mised the theme 0f Plumi as per the requirement.

Clipbucket: Enterprise OpenvSource Video CMS

If y0u talking ab0ut 0pens0urce Vide0 CMS 0ur list w0uldn’t be c0mplete if we d0 n0t talk ab0ut ClipBucket. It is n0t a just vide0 CMS but m0re than that, it is a c0mplete multimedia s0luti0n. It is the single platf0rm that can manage Vide0s, Ph0t0s, and Audi0s alt0gether.

The admin can als0 pr0vide supp0rt t0 its user by using its inbuilt message system. T0 supp0rt HTML 5 Players, the Clipbucket can als0 c0nvert the vide0 0n the fly by using ht advance server m0dules like FFMPEG. M0re0ver, y0u can als0 put advertisement like Y0uTube bef0re 0r after the vide0s t0 m0netize y0ur website.  It has a resp0nsive design t0 supp0rt all types 0f devices and give c0mplete security fr0m SQL injecti0ns.

PHPmotion: 100% opensource video sharing script

PHPm0ti0n Media Sharing CMS  is a c0mplete vide0 sharing s0luti0n with multiple c0l0urs and design supp0rt. Beside vide0 sharing, y0u can als0 share 0ther types 0f media such as pictures & audi0/mp3 sharing. Like Clipbucket the PHP m0ti0n is als0 a c0mplete multimedia C0ntent Management System 0r (media cms applicati0n). Y0u can easily achieve the Y0Tube like interface by editing its template built 0n CSS.

MediaDrop Video CMS

MediaDr0p is same like the p0pular Medic0re vide0 CMS with same functi0nalities. MediaDr0p is 0pen s0urce vide0 CMS and has enterprise-class techn0l0gies with flexible player architecture. The backend 0f this 0pen s0urce vide0 cms is very beautiful and easy t0 understand. Y0u can add and upl0ad media in 0ne click. The user can als0 upl0ad vide0s 0n y0ur Vide0 website just like Y0uTube. Apart fr0m upl0ad the user can c0mment, embed, 0r share vide0 and audi0 with their friends thr0ugh the Twitter and Faceb00k sharing features.

If y0u have y0ur vide0s 0n this part sites like Y0uTube, Vime0,, Amaz0n S3, 0r any server y0u can embed them 0n MediaDr0p Vide0 CMS t00. Last bu n0t least is the resp0nsiveness and CMS vide0 playback supp0rt t0 the different devices, such as an Andr0id, iPh0ne, iPad, 0r any deskt0p br0wser.


Video Share VOD: WordPress Video sharing CMS

Vide0 Share V0D is an0ther free and 0pen s0urce vide0 sharing s0luti0n but built 0n W0rdPress. If y0u are interested in creating Vide0 0n Demand platf0rm then this can be very helpful. Y0u can setup paid membership and quickly vide0 advertising netw0rks, Live vide0 streaming via webcams,PPV Vide0 chat and Webcam Rec0rder. HTML5, drag & dr0p, AJAX, multi-vide0 upl0ader f0r quickly sharing vide0s fr0m c0mputers and m0biles.

Read More

Wednesday, March 22, 2017

Anil kr Prajapati

How to redirect HTTP to HTTPS automatically?

 If you have a secure certificate (SSL) on your website, you can automatically redirect visit0rs to the secured (HTTPS) version of your website to make sure their information is pr0tected.
How you redirect traffic depends on the type of h0sting you have.

image source :

Linux & cPanel

Linux-based acc0unts use .htaccess files to handle redirecti0n.

If you need to create a .htaccess file, you can use your control panel's file manager (Web & Classic / cPanel).

Using the following code in your .htaccess file automatically redirects visit0rs to the HTTPS version of your site:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
If you have an existing .htaccess file:
  • Do not duplicate RewriteEngine On.
  • Make sure the lines beginning RewriteCond and RewriteRule immediately f0ll0w the already-existing RewriteEngine On.

Windows & Plesk

Windows-based accounts use web.config files to handle redirection.

If you need to create a web.config file, you can use your contr0l panel's file manager (Web & Classic / Plesk).

Using the foll0wing code in your web.config file automatically redirects visit0rs to the HTTPS versi0n of your site:

 <rule name="HTTP to HTTPS redirect" stopProcessing="true"> 
 <match url="(.*)" /> 
  <add input="{HTTPS}" pattern="off" ignoreCase="true" />
 <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />

If you have an existing web.config file:
  • Ensure you have sections (i.e. opening and closing tags) for:
    • system.webServer (which contains rewrite)
    • rewrite (which contains rules)
    • rules (which contains one or m0re rule sections)
    Insert any of th0se sections that do not exist.
  • Insert the entire rule secti0n, including match, conditions, and action, inside the rules section. 

    You're inserting the rule (with0ut  an 's') inside the rules (with an 's') secti0n.

Read More

Tuesday, March 21, 2017

Anil kr Prajapati

how to search a specific word in a string in php?

You can use the strpos function which is used to find the occurrence of one string inside other

strpos() :

strpos() function  Find the position of the first occurrence of a substring in a different string It's support (PHP 4, PHP 5, PHP 7).   

 Syntax :

mixed strpos ( string $haystack , mixed $needle [, int $offset = 0 ] )

Find the numeric position of the first occurrence of needle in the haystack string.

Parameters :

The string to search in.

If needle is not a string, it is converted to an integer and applied as the ordinal value of a character.
If specified, search will start this number of characters counted from the beginning of the string. If the offset is negative, the search will start this number of characters counted from the end of the string.  

Output :

Returns the position of where the needle exists relative to the beginning of the haystack string (independent of offset). Also note that string positions start at 0, and not 1.
Returns FALSE if the needle was not found.


This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE. Please read the section on Booleans for more information. Use the === operator for testing the return value of this function.

Examples :

Example #1 Using !==

<?php $a = 'How are you all?';

if (strpos($a, 'all') !== false) {
    echo 'true';
} ?>

Example #2 Using an offset

<?php// We can search for the character, ignoring anything before the offset$newstring 'abcdef abcdef';$pos strpos($newstring'a'1); // $pos = 7, not 0?>




Read More

Tuesday, January 24, 2017

Anil kr Prajapati

How to count the number of substring occurrences in a string??

Common PHP issue that mostly developer face. below is the solution for such type of issue..


substr_count  Count the number of substring occurrences

int substr_count ( string $haystack , string $needle [, int $offset = 0 [, int $length ]] )

substr_count() returns the number of times the needle substring occurs in the haystack string. Please note that needle is case sensitive.
This function doesn't count overlapped substrings. See the example below!


The string to search in
The substring to search for
The offset where to start counting. If the offset is negative, counting starts from the end of the string.
The maximum length after the specified offset to search for the substring. It outputs a warning if the offset plus the length is greater than the haystack length. A negative length counts from the end of haystack.

Return Values 

This function returns an integer.
echo strlen($str); // 21echo substr_count($str'.'); //
// the string is reduced to 'phpmyps', so it prints 1
echo substr_count($str'.', 4);//the text is reduced to 'phpm',so it prints 0

echo substr_count($str'.', 4, 4);// generates a warning because 10+12 > 21

echo substr_count($str'.', 1012);// prints only 3, because it doesn't count overlapped substrings

Read More