Sunday, February 22, 2009

To integrate escrow payment method in a website

Go to the site.

https://ecart.escrow.com/tools/confirmlink.asp


create a html code and change this code according to your requirement.
visite escrow.com for more info.




A short example is given below:


<form method="post" action="https://www.escrow.com/ecart/StartTransaction.asp">
<input name="pid" value="5665" type="hidden">
<input name="item" value="Item Name" type="hidden">
<input name="desc" value="Description" type="hidden">
<input name="qty" value="1" type="hidden">
<input name="price" value="100" type="hidden">
<input name="ship" value="5" type="hidden">
<input name="type" value="GM" type="hidden">
<input name="submit" value="Buy It Now" type="submit">


Note: Please change the value of the hidden according to your requirement then it will work fine.

Thursday, February 19, 2009

How to rename localhost to anyname you want

If you want to rename to your localhost to any name like http://yourname/

Go to C:WINDOWS/system32/drivers/etc there you can see a file named hosts open this in notepad
find localhost
copy this line
paste this in the second line just rename localhost to any name you want open your browser it will work then

for more go to www.bhuwans.com

Saturday, February 14, 2009

How to use ffmpeg

How to user ffmpeg

You can use ffmpeg to convert video file like mpeg, avi to flv like you tube.
I Php this is very just check in your server that ffmpeg is enable or not if this is not enable dont hesitate to tell your sever provider or
your client to enable that you are ready to use that.

To check whether ffmpeg is enable just user in the a test file if ffmpeg is there then that shows it is enable.


just use
exec("/usr/bin/ffmpeg -y -i test.mpeg -s 446x336 -ar 44100 -ab 12 test.flv") to make flv

and

exect("usr/bin/ffmpeg -i test.mpeg -an -ss 00:00:00 -t 00:00:01 -r 1 -y -s 120x72 test.jpg");

to make thumbnail of that video


After that to play flv just go to site
http://www.flowplayer.org/documentation/configuration.html

and read how to use flowplyer, download latest flowplayer from here and enjoy making youtube like feature.

Thursday, February 12, 2009

make youtube better

YouTube decided, after much begging from users, to add a high-definition viewing option to its videos. This button would allow users with faster

Internet connections to watch higher-quality versions of the same videos already on the Web site.

Many videos are being uploaded in higher-quality resolution, due in part to the increase in technology. Camera's like the lower-end Xacti and the Aiptek HD line allow users to create high-quality videos without spending a lot on equipment.

Unfortunately, there is still one problem with these higher-quality videos, and that is embedding. When you embed the higher-quality version of a YouTube video on a blog or website, it will playback in lower quality, with no options to up the settings.

Luckily, there is a solution to this, and it is not very difficult or technical. This technique will allow you to embed HD and high quality YouTube videos in your blog or website for optimal playback.

Step 1: Locate a video that you want to embed and click the high-quality button under it to make sure it actually increases in quality - a video that was recorded at a poor setting will have no difference, so you won't be able to tell if you embedded it correctly.

Step 2: Copy the embed code for the video. It is located on the right side of the screen, below the video description area - it says 'EMBED'.

Step 3: Create a new post on your blog or where ever it is you'd like to embed the video. Paste the copied embed code into the post.

Now look through the code for the EMBED URL and the SRC URL. At the end of these two lines, you will need to copy and paste this code into it - &ap=%2526fmt%3D18. This code is similar to the now-famous fmt=18 code, and will tell the player to use the high-definition version of the video.

Here is an example of the code:

value="http://www.youtube.com/v/HT1gL7YB-cU&hl=ja&fs=1&ap=%2526fmt%3D18" src="http://www.youtube.com/v/HT1gL7YB-cU&hl=ja&fs=1&ap=%2526fmt%3D18"

search any php code at www.bhuwans.com

You can search any code of php, and any cms.
www.bhuwans.com