phpizabi is not dead

We almost thought phpizabi was dead. But with this statement by Claude D. at phpizabi.net it’s alive. A new version i under work. it’s named PHPizabi 2 VCP, Orion.

What would it be if we would break the barriers between the informative and the social web – If we would fusion applicative and interactive? What would it be if we would revise the nature of the software that became a powerful social platform and reorient it to become a global axe for virtual content distribution? – What would your V2 be?

I hope for all success of this project. please visit http://ww2.phpizabi.net/?L=special.vcp to know more about it.

Posted in phpizabi | 2 Comments

php frameworks

To let you know, I have never been fan of any CMS system or frameworks. I liked developing custom codes. I even developed my own small php framework to get the things done quickly. But working singly on it made it no good. Soon i realized, Why waste a bulk of time reinventing the wheel. I decided to use the available php framework. For my choice of framework, it had to be easy to get started, faster, scalable. I didn’t want to waste my time learning frameworks. After some reasearch over internet and googling stuffs, I lowered my framework search to Zend, cake, codeigniter.  And I choosed Codeigniter among these. I choosed it as it was easiest amongst to get started,  good support forum, nice tutorials. On my next framework choice will be Zend and cakephp. Currently codeigniter seems to be sufficient for my projects.

Posted in Uncategorized | 3 Comments

using youtube api to upload videos from your site

I wanted to create a video site but lacked the server resources to run it, I am using a shared server, it has ffmpeg but when converting a video it takes lot’s of system resources. I successfully made the fmpeg video site, But didn’t decide to use it. I searched for youtube APIs and i came to know we could simply use the youtube api to upload videos from our site to youtube. So i decided to use it for my video site. Below is step by step tutorial on using youtube api to upload videos from your site to youtube, I used the clientLogin method of youtube api to upload videos.

  1. First get the developer key for using youtube api.
    Go to http://code.google.com/apis/youtube/dashboard/ and regsiter a developer key
    You will be given client id and  developer key. Note it down, it will be used in your own application later.
  2. Get the php client libraries, Go to http://framework.zend.com/download/gdata
  3. extract it to your server. I assume you put the Zend direcctory in your server document root.
  4. Create a form in your site as below which i assume will be pointed to upload.php file in your srver.
<form action="upload.php"  method="post" enctype="multipart/form-data">
<select name="videoCategory">
<option value="Autos">Autos &amp;amp; Vehicles</option>
<option value="Music">Music</option>
<option value="Animals">Pets &amp;amp; Animals</option>
<option value="Sports">Sports</option>
<option value="Travel">Travel &amp;amp; Events</option>
<option value="Games">Gadgets &amp;amp; Games</option>
<option value="Comedy">Comedy</option>
<option value="People">People &amp;amp; Blogs</option>
<option value="News">News &amp;amp; Politics</option>
<option value="Entertainment">Entertainment</option>
<option value="Education">Education</option>
<option value="Howto">Howto &amp;amp; Style</option>
<option value="Nonprofit">Nonprofit &amp;amp; Activism</option>
<option value="Tech">Science &amp;amp; Technology</option>
</select>
<label for="title">Title</label>
<input id="title" name="title" type="text">
<label for="description">Description</label>
<textarea id="description" name="description" rows="5"></textarea>
<label for="keywords">Kewords (use comma , to separate)</label>
<input id="keywords" name="keywords" value="" type="text">
<br class="clr" />
<input value="Next -> choose video" name="add" type="submit" />
</form>

Create upload.php


<?php

if(isset($_POST['add'],$_POST['videoCategory'],$_POST['title'],$_POST['description']))
{
//add the video meta data to session
$_SESSION['vidmeta']['category'] = $_POST['videoCategory'];
$_SESSION['vidmeta']['title'] = $_POST['title'];
$_SESSION['vidmeta']['description'] = $_POST['description'];
$_SESSION['vidmeta']['keywords'] = $_POST['keywords'];

//application id change this to our applicationId
$applicationId = 'onnepalvideosite';
//client id change this to our own client id
$clientId = "ytapi-xxxxxx-xxxx-xxxxx";
//developer key change this to your own key
$developerKey = "xxxxxxx-xxxxxxx-xxxxxxxxx-xxxxxxx";
//include zend loader
require_once('Zend/Loader.php'); // the Zend dir must be in your include_path
//include youtube class
Zend_Loader::loadClass('Zend_Gdata_YouTube');
//include the client login class
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
//Client login
$authenticationURL= 'https://www.google.com/youtube/accounts/ClientLogin';
$httpClient = Zend_Gdata_ClientLogin::getHttpClient(
$username = 'your username here',
$password = 'our password here',
$service = 'youtube',
$client = null,
$source = 'onnepal', // a short string identifying your application
$loginToken = null,
$loginCaptcha = null,
$authenticationURL);

$yt = new Zend_Gdata_YouTube($httpClient, $applicationId, $clientId, $developerKey);
// create a new VideoEntry object
$myVideoEntry = new Zend_Gdata_YouTube_VideoEntry();

$myVideoEntry->setVideoTitle($_POST['title']);
$myVideoEntry->setVideoDescription($_POST['description']);
// The category must be a valid YouTube category!
$myVideoEntry->setVideoCategory($_POST['videoCategory']);

// Set keywords. Please note that this must be a comma-separated string
// and that individual keywords cannot contain whitespace
$myVideoEntry->SetVideoTags($_POST['keywords']);

$tokenHandlerUrl = 'http://gdata.youtube.com/action/GetUploadToken';
$tokenArray = $yt->getFormUploadToken($myVideoEntry, $tokenHandlerUrl);
$tokenValue = $tokenArray['token'];
$postUrl = $tokenArray['url'];
$nextUrl = 'http://www.yoursite.com/yt.php';
print <<< END
<br /><form action="${postUrl}?nexturl=${nextUrl}"
method="post" enctype="multipart/form-data">
<input name="file" type="file"/>
<input name="token" type="hidden" value="${tokenValue}"/>
<input value="Upload Video File" type="submit" />
</form>
END;
}
?>

This code takes the category, title, description and keywords from the form and generates a form to upload video to youtube. You can then upload video to youtube using the form.
Next make yt.php file which is the $nexturl file, $nexturl is the location to which youtube will redirect after the upload is complete. YouTube appends id and status parameters to the URL as shown in the following example

http://www.yoursite.com/yt.php?status=200&id=JPF-DXF7hzc

Afterou get the youtube video id in your yt.php file you can add it to your own database to show videos in your site. You can do anything you wish with the variables you get through yt.php.I hope it will be help ful to all wishing to use youtube apis to upload video.

This can also be implemented to phpizabi sites.

Posted in Tutorials, Uncategorized, api, google, php, phpizabi, socialnetwork | Tagged | Leave a comment

google is buying twitter

According to techcrunch google is in it’s early stage in talks to acquire twitter. Twitter has also turned down the offer to be bought by facebook lately. With these steps gogle is soon going to occupy all the major web share. In majority of internet users, google has a daily impact. It has become the most important part of all the internet users. It would be great to see the deal between twitter and google. If it will be successfull, We can be sure google will bring the changes that will reflect the dynamic effect to the twitter user.

Posted in google | Leave a comment

me2everyone.com

Hello

Something incredible has arrived!

Click here to know more

I just became a shareholder in me2everyone and I never had to pay a single penny for the shares! It can only be described as the gold-rush for 2009. This company is going to be huge and shares will soar in value over the coming months! You can register for free and it never has to cost you a single penny!

me2everyone is going to be a cool new virtual world where you can meet friends, chat, shop, play, watch videos, create an art gallery, open a virtual newspaper, play the free inworld lottery and make money from your own online store! You and everyone you know make the decisions, shape the world, create real incomes and share in the profits. It’s a new place where you meet new people or invite your friends. Learn new skills or expand your business. Find the love of your life or help the planet.

Membership is free and every member automatically becomes a shareholder in me2everyone Limited. Personally I have WRITE YOUR SHARES HERE shares in the venture and I am going to increase my shares very soon. This is an excellent chance for all of us to make some real progress in 2009 and beyond! Please do not miss it.

If you are looking for something really good in 2009: something that changes your view on the world, then you really have to spend just one minute and look at this website.

http://www.clrurl.com/j

Posted in site review | Leave a comment

toksta chat integration to your website [phpizabi, socialnetwork]

I was looking for a decent chat script and i found much better hosted solution toksta. It’s a hosted chat aplication. You can add instant chat messenger in your site with a couple of  lines of codes. I just installed it in phpizabi site and my custom script site at www.visualthailand.com and www.kiratisaathi.com You can find more information at www.toksta.com

Posted in php, phpizabi | Leave a comment

integrating phpfreechat with phpizabi

I was in need of a decent chat script to integrate to the phpizabi system. I searched for different chat script. Some were not cross browser compatible, some had integration problem and some didn’t worked well. I then tried phpfreechat this was all we needed. I integrated it with phpizabi and is working well. I will write about how i integrated it in my next post.

Posted in Uncategorized | 1 Comment

happy birthday to me

I want to wish  myself happy birthday. May i live long and get success in life.

Posted in Uncategorized | 1 Comment

using openinviter in your socialnetworking sites.

Hello,  if you are in to building a socialnetwork. You know the pain of getting users in to your site. It is really hard for the start up socialnetworking sites to get knowned by users. Since most of the socialnetworking script doesnot provides the viral marketting tools like importing contacts from the other socialnetworking sites and email services. If they do provide also there is no gurantee about when it will stop working. In this situation enters the open inviter tool.  It supports almost all the socialnetworking and email services. It’s easy to integrate in to your existing website. If you need hep integrating it to your website, feel free to contact me.

Openinviter link

Posted in Uncategorized | Leave a comment

UTL’s New internet scheme in Nepal

Hey, All internet surfers we have a good news. UTL has provided a new internet scheme with which we can get unlimited high speed internet surfing at a very cheap rate. It’s quite affordable. You can get the UTL’s cdma RIM card at about Nrs 250 and the internet is Nrs 500 per month only exclusive of taxes. Inorder to setup the UTL’s internet you will have to buy the CDMA modem which costs about NRs 2700, which you can get in any computer shops. I think this scheme is gonna rock in Nepal, coz it’s affordable and the network is good enough. It can become threat for ither ISP out there coz hey charge vvery high rate for internet. Even the NTC’s CDMA internet connection is data usage based, So it is costlier than UTL’s scheme. The gprs provided by meromobile is also data usage based. So now everybody’s turning to UTL. I have also swtched my internet connection to UTL. I am using it and I simply love it.

**This scheme is available in Nepal.

You can get the sim card at UTL’s office in hattisar.

** update UTL internet sucks

Posted in Uncategorized | 59 Comments