Spacer
Spacer

NGCODERS.COM

[ NEXT GENERATION CODERS ]

Spacer

Archive for the 'PHP' Category

VideoBB Video downloader and streamer php script

Here is a small php script which will grab VideoBB download link and is able to stream it to JW Player. Streaming uses server bandwidth due to VideoBB same IP restriction.

You can also use the included class separately to suit your own needs.

This will not work as now videobb uses Encryption to generate tokens , I will update the php script when i get some time.

Till then unless you have the php solution avoid commenting.

For a reliable and always working streaming look into Vidfetch , Both VideobBB and VideoZer work using Vidfetch.

Web Application Devlopment tools

A Small time filler presentation i gave at the hackers meet on 25th Sep 2010 @ Foundation for MSME Clusters.

People had asked to share it so here it is –

This covers my most commonly used tools for web development. Using these tools you can greatly speed up your development effort.

MegaVideo Video downloader and streamer php script

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 ).

Simple PHP Google PageRank checker script

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.

Youtube Java Applet to Download Videos

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 the latest version with support of over 100 sites –

Java Applet Downloader Demo




Download it Here

JTemplate – Joomla tempaltes on Drupal

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.

Joomla and Drupal together – Joodr ( Social Networking Script )

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.

PHP automatic file and database backup script

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.

PHP Youtube video downloader script

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();

$links = $tube->get($_POST['url']);

New Version with much much more : FreeDown Downloader



PQuery – PHP and JQuery

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 )