Archive for November, 2007

Installing the PHP Java Bridge in Ubuntu (Gutsy Gibbon)

Thursday, November 22nd, 2007

If you’re looking for the easiest way to install the PHP Java Bridge in Ubuntu, follow these simple steps:

If you don’t have Java Installed on your machine, enable the multiverse option in your Software Sources and run

sudo apt-get install sun-java6-jre sun-java6-fonts sun-java6-jdk sun-java6-plugin
sudo update-java-alternatives -s java-6-sun

Download the PHP Java bridge deb files from Sourceforge.

Head over to the directory where you’ve downloaded this deb file, and fire the following commands:

sudo apt-get install liblucene-java libitext-java
sudo dpkg -i php-java-bridge_4.3.0-1_i386.deb

Once the php-java-bridge deb file is installed, apache will be automatically restarted. If apache doesn’t restart automatically, you can restart apache with the following command:

sudo /etc/init.d/apache2 restart

How do you check if the PHP Java bridge is installed?
Run the phpinfo() command in php. This should give you the details of the PHP Java bridge extension under the Java Heading. Now you’re ready to run Java code in PHP :)

Now head over to the following link and check out the second part of the tutorial to get started on PHP and Java.
http://www.hiveminds.co.uk/node/3172

More on the PHP Java bridge over at: http://php-java-bridge.sourceforge.net/

Embed photoediting for your site using Flauntr

Tuesday, November 20th, 2007

Flauntr allows you to embed their services on your site for free. API programming knowledge not required! Click on the image above to see how one of the embedding methods work.

Flauntr provides 3 different ways you can embed their service on your site:

  1. LightBox : Get a nice little graphic you can put on your blog post, panel or header. When one of your readers clicks on it , flauntR appears in a popup.
  2. Iframe: If you want to allow your readers to enjoy flauntR without even a pop up, meaning flauntR sits right in your site.
  3. Linkback: f you want to set up an image or set of images for editing or viewing through flauntR this is the right widget for you.

The method I used to embed code you see above this post is using their Lightbox method. If you’re running a image gallery site and would like to allow people to edit the photos straight off your site, I’d recommed integrating the Linkback method for your images.

To get more information on this, head over to: http://www.flauntr.com/flauntr/login/intro.html and get the embed codes to try them out.

photomobilr While you’re out there, also check out their new apps - photomobilR and photoprofilR. photomobilR allows you to resize your images to fit ask the desktops of about 250 models of mobile phones! If you haven’t created a your own custom desktop background for your mobile yet, this is the right time to start.

photoprofilR is for those social network junkies to allow you to resize your photos to fit the profiles of 30 social network sites.

Foss.in/2007 Early Registrations open

Tuesday, November 20th, 2007

FOSS 2007

The delegate registrations for Foss.in/2007 is open so jump on the bandwagon and register yourself there. Early registrations cost you just Rs. 600, while turning up at the venue without early registration will set up have to pay double that amount. The link for delegate registrations: http://foss.in/2007/register/delegates/

If you’re wondering who and what’s on the talk schedules, head over to the Schedules page.

All in one caching for PHP

Friday, November 9th, 2007

All you wanted and need to know about caching PHP applications in one article by Ben Balbo over at Sitepoint.

In the good old days when building web sites was as easy as knocking up a few HTML pages, the delivery of a web page to a browser was a simple matter of having the web server fetch a file. A site’s visitors would see its small, text-only pages almost immediately, unless they were using particularly slow modems. Once the page was downloaded, the browser would cache it somewhere on the local computer so that, should the page be requested again, after performing a quick check with the server to ensure the page hadn’t been updated, the browser could display the locally cached version. Pages were served as quickly and efficiently as possible, and everyone was happy.

Read on: Cache it! Solve PHP Performance Problems [PHP & MySQL Tutorials]

About Me

Here's my blog on stuff I keep finding on the Web. More

Want to subscribe?

 Subscribe in a reader Or, subscribe via email:
Enter your email address:  
On the Go? Get this on your Widsets: Add to my Widsets
Find entries :