Here is a small php script which will grab Mega Video download link and is able to stream it to JW Player. Streaming uses server bandwidth due to MV same IP restriction. The script supports paid accounts for bypassing Megavideo time limit and showing streams to your users ( Technique used by many Anim sites ).
Archive for the 'PHP' Category
This is a simple google pagerank script which can be used to show a graphic pagerank on your website. Or use it in your traffic stats script. Calling is very simple –
pr.php?prurl=http://www.ngcoders.com
It will show the small famous pagerank graphic with a bar graph and numeric page rank.
Lately all major download sites have shifted to using Java applet based downloaders. This is due to the new IP locking introduced by Youtube.
So i was asked by a few clients to do the same, Here is the theory behind it if you want to build your own.
Here is my version using FreeDown template which support a few more site including Youtube. -
If you wish to Buy just use the form below –
Supported sites : Youtube, Vimeo, videoweed, tudou, ted, megavideo, metacafe, google, facebook, dailymotion and many more …
Basic version is the one you see in the demo ( the Popup will contain FreeDownApplet and Vikas Patial as Publisher).
Custom versions will be signed for your site and will be more convincing. The template will be modified for your site.
Custom version and Setup is for those who cannot set it up or dont have the time.
- After Payment i would get back to you with the required details and within 24 hours have you up and running.
- Support is available for 3 months after the payment.
- Every time a custom version is generated a you will be charged 30 USD for the process.
Jtemplate is the first step towards Joodr,It aims at allowing usage of vast number of premium joomla templates with drupal with minimal effort. It is basically a set of Drupal Module and a templating Engine based on phptemplate. The idea is to allow the use of Joomla templates on Drupal as good templates for drupal are missing, drupal templating is expensive and few premium template providers who are there charge really high.Currently you just need to upload the template to the themes directory and just create a dummy template_name.infofile in the directory and the rest everything is taken care by Jtemplate.
Currently a lot of work is still remaining but here are a few features -
- Drupal 6 supported
- Joomla 1.5 templates compatible
- Little to no changes required to Joomla templates
- Support for Template params and Template styes from admin
- Effects and Suckerfish menus supported
- Tested with premium templates from some providers.
Anyhow will be releasing the download soon , am looking for people to help me improve it for now.As everything does not work
.
You can check a demo here – http://joodr.org/demo/ . The demo is running plain Drupal 6.5 with Jtemplate installed. The template is from rocketheme , with no changes or editing done
.
Here is an alpha release as im not getting time to work on it , this is meant for people comfortable with drupal and know what they are doing.
Upload the site structure in the zip file and enable jtemplate module in the admin. To create menus use joomla like names mainmenu,footer,usermenu etc for drupal menu name. Also make the default drupal theme as admin theme from settings.
I have been building sites for a long time. and have user both drupal and Joomla , even built a lite version of Joomla called Limbo CMS long time back. They are both quite good CMS’s. Given the two I would choose drupal any day for myself ( though would never recommend it , cause its still not easy to make it do what u want ) , but am no designer and drupal templates are a big let down, though not hard but templating drupal is just a pain. And template wise Joomla simply is Awesome ( the quality of premium templates available is just so good ) , and its easier to work with for not so technically inclined.
And i have been looking for a good social networking script since last year , and having looked far and wide from paid scripts like phpfox,handshakes,socialengine etc to free ones like Dolphin(not really free),elgg,phpizabi,Joomla+CB. Most of them are really bad and nothing i would build a big site on , its just that bad. There is hope in hosted platforms like ning,socialgo,colletivex but they are hosted , never recommended for anything serious. The only good social networking platform out there is Drupal – has everything i need from scalabilty , security , documentation etc . But again the base install requires hours of tweaking to make it look anything like a normal social script.
So my after taking a few months off from freelancing , ive decided to work on a new personal project called Joodr. It aims to be something like ning but free, based on drupal so that its as flexible,scalable,secure and use Joomla 1.5 templates so your sites look awesome without much effort. The name Joodr i simpley got from Joomla + Drupal , though its a basically a customized install profile of Drupal.
Work has started so keep reading for further updates !!! And if you have any ideas and suggestions let them flow.
This is a pure php implementation of a php backup script. So it should work fine on windows and linux. But its not suited for takeing very large backups.
I just wrote it cause most of the script i saw offered file or database backup and broke down to usage of exec and unix commands , for which i had to contact hosting.
Some basic features -
- File and Directory backup
- Multiple database/table sql backup
- Backup email
The script is supposed to be called using automatically using CRON , and the backup folder in which backup it taken should be writable.All you have to do is run backup.php .
Edit config.php before use. Released under GNU GPL license.
I was searching for a simple script which would allow me to download videos from youtube using php. I did find some implementation but only one of them worked and it used Pear. So here is a simple script to help you download videos from youtube. Allows you to download restricted videos too by logging into youtube.
The script is a simple youtube class which uses CURL.
Sample usage of the youtube class –
include(‘curl.php’);
include(‘youtube.php’);
$tube = new youtube();
// Only required for restricted videos
// $tube->username = “userid”;
// $tube->password = “password”;
$download_link = $tube->get($_POST['url']);
New Version with much much more : FreeDown Downloader
PQuery is a set of helper classes for JQuery JavaScript library.This library allows you to easily integrate AJAX , Effects and other JQuery functionality into your PHP scripts.IT has a small foot print and is compatible with PHP4 and PHP5.
PQuery Demos : PQuery Demos.
Documentation : PQuery Documentation .
License : MIT or GPL ( what ever you wish to use )
I have some sites which have been running for a long while, and due to not having time on my part to upgrade them they still run pretty old scripts with custom coding ( If it aint broke dont fix it
). Some time back i realized the rel=”nofollow” thing and how people posting links on those sites got Backlinks for free. After doing a little backlink checking i found that my sites were linking to competitor sites , which is totaly unacceptable.Also with so maybe free backlinks going out PR can be affected ( am not shore about that though ). So with a few lines of PHP you can kill all free back links people have been getting through ur side.
So if you are stuck with the same situation here is a little help , Assuming your site is running in php. What we do is buffer all the content and find all non site links and replace them with a additional nofollow tag.
// Your sites code goes here
$content = ob_get_contents();
@ob_end_clean();
preg_match_all(‘!href[\s]*=[\s]*["\']{1}([\w]+?://[\w#$%&~/.\-;:=,?@\[\]+]*)["\']{1}!’,$content,$matches);
// Replace all outbound links with nofollow
$replaced = array();
for($i=0;$i<count($matches[0]);$i++)
{
if(strstr($matches[1][$i],’http://www.sitename.com’)) continue;
if(strstr($matches[1][$i],’http://sitename.com’)) continue;
if(in_array($matches[0][$i],$replaced))continue;
$content = str_replace($matches[0][$i],$matches[0][$i].’ rel=”nofollow”‘,$content);
$replaced[] = $matches[0][$i];
}
echo $content;
Now i hope this code increases the PR for the sites , they are PR 5 for now … will post results if i see any changes in the site stats.
Since last year i have been working on lots of Web Application,During this time I have gone through many frameworks like Code Igniter , CakePHP , Symfony and RoR trying to find what will suit me best. RoR i learned and used a little but never got to using it in a release app , but i did learn a few of the cool stuff which RoR is famous for. CI i just found a little too simple but i still recommend it to beginners, Symfony was a configuration mess. So Cake PHP is what i was working on mostly , But when delivering Small applications to clients i found it a mess to deliver a 1 MB framework with a 30 kb of actual code. Actually coming from an embedded systems background i like my work to be small , fast and do max possible in minimal code.
So i found another framework released by the author of Frog CMS , It was blazingly fast , really small ( 30 kb file ) and php5 with pdo.But i wanted php4 and php5 support and i was used to CakePHP and liked the way it worked. So i started writing my own thing based on the Light framework and modified API And directory structure to be more like cake among other things. I hate to reinvent the wheel , but using truck tyres for a bicycle dosent really make sense and stripping these mammoths would have taken more time.
I have a basic framework ready and will base all my work on the new framework . For a start it has most basic features of cakePHP under < 30k zipped. Here are some of the features -
- FAST – Really fast
- SMALL – Really small
- SIMPLE – Few API to get u started fast
- Fully OO MVC Code
- Almost Zero Configuration
Before i release my framework as documentation is left and any advice any of you guys would like to give ?

