PHP Download MP3 File by URL

PHP Download MP3 File by URL 1. WGET It will save files on web server then use php header for prompting to download file. 2. CURL CURL will not work efficiently for big files i.e. MP3, ZIP, MP4 etc. 3. file_get_contents() This will consume too much memory on server. It can first read remote URL … Read more

How Webmasters Can Use SMS for Success – Part II

In the previous post, I outlined one way that SMS text messages can help you succeed. Today, I’m going to talk about how you can use SMS for success by integrating SMS functionality for your customers. Amazon Simple Notification Service Command Lines Build your customer database People are very attached to their mobiles. Literally taking … Read more

Batch Downloading in PHP

<?php for($d=1;$d<=100;$d++) { $link=”http://www.domain.com/demos/”.$d.”/source.zip”; if(http_url_exists($link)) {   echo”Processing: “.$link.”<br>”;      exec(“wget -O “.dirname(__FILE__).”/download/source-“.$d.”.zip “.$link.” 2>&1″,$pp);      echoimplode(“”,$pp);echo”<br><br>”; } } //$file_headers = @get_headers($file); //’HTTP/1.1 404 Not Found’   function url_exists($url){     if(!$fp=curl_init($url))returnfalse;     returntrue; } function http_url_exists($url){          $file_headers=@get_headers($url);          if($file_headers[0]==’HTTP/1.1 404 Not Found’)         returnfalse;          returntrue; } ?>

Video Overlay Ads

We can use overlay code to map video/image using DIV elements on main element. Concentrate Observe Imagine Launch Demo: http://demo.svnlabs.com/video-overlay/ Maturity is not when we start speaking BIG things But..Actually it is, When we start understanding small things.

Content with Spinners for SEO

Article / Content Spinning is a search engine optimization technique to provide unique relevant content on sites / blogs. Spinning is a process for rewriting existing articles. If the original articles are plagiarized and used without the permission of copyright owner, Spinning produce multiple versions of original writing to protect contents being copied to other … Read more

Install Red5Chat

Red5 Media Server is free solution for audio/video streaming. Red5chat is a free video chat plugin for Red5. Flash Part ————– Edit the FLA red5Chat.fla and configure these lines: _root.IP = “xx.yyy.xx.zzz”; _root.port=1935; _root.authentificateURL = “http://”+_root.IP+”/red5chat/testlogin.php”; _root.infoUserURL=”http://”+_root.IP+”/red5chat/infouser.php”; PHP part ————- If you use the AUTHENTIFICATION (_root.authentification=true): – Create tables form create_tables.sql – edit the PHP/connections … Read more

Compile or build flowplayer or jwplayer to create secure token for wowza server

I think you already read our last article for wowza mediasecurity addon package There are 2 methods to put secure token for video players like flowplayer or jwplayer… 1. Token inside javascript code (shared secret) 2. Token inside flowplayer or jwplayer source code (compile the token inside the plugin) The shared secret known by the … Read more

Facebook Application Development with Graph API Cookbook

Facebook Application Development with Graph API Cookbook is written by Shashwat Srivastava, Apeksha Singh for Facebook developers ranging from novice to expert. It uses PHP, HTML and jQuery, the most commonly used platforms, to build applications in Facebook. Learn from this book: Install Facebook PHP SDK and register your Facebook application Obtain access token and … Read more

Fatal error: Allowed memory size of 8388608 bytes exhausted

PHP Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y) in file.php 1. memory_limit globally from php.ini memory_limit = 64M 2. memory_limit using .htaccess php_value memory_limit 64M 3. memory_limit inside a php script. ini_set(‘memory_limit’, ’64M’); To change the memory limit for one specific script by including a line such as this … Read more