linein designs

Archive for the ‘tutorial’ Category

29 Mar, 2011

Text to Image Using PHP and img4me

Posted by: john In: php|tutorial|web

img4me just released an API to their text to image service. This basically allows you to send any peice of text through a URL and have it convert it into an image. Now you wouldn’t want to convert a whole paragraph, but this does work especially nice for email addresses or other information you don’t [...]

Things you’ll need: PHP jQuery jQueryRotate plugin DEMO | DOWNLOAD PROJECT We’ll first setup the control div since it should help make things clearer starting here. We have the two rotate buttons (clockwise and anit-clockwise) and the save button to save our final rotated image. We also have an input box that will store the [...]

Dave in Michigan contacted me and wanted to know if it was possible to take the script used from this previous post and only display the last X number of pictures uploaded to a directory. Something to note before you get started though. The script will read the entire directory so if you have a [...]

1. Add your subdomain You can do this as a normal subdomain or as a standalone domain. 2. Add your certificate to Plesk Use the Plesk control panel to add your certificate. Where the shortcoming comes into play is that Plesk will continue to use the default certificate. 3. Find your certificate Head over to [...]

Tags:

This is a more practical way to display an image or text while an AJAX request is loading. DEMO | DOWNLOAD FILES What we’re basically doing is forcing a DIV to have a starting image and then replacing it with the text return from the AJAX request. function loadingAjax(div_id) { $(“#”+div_id).html(‘ saving…’); $.ajax({ type: “POST”, [...]

This is an addition to the Find Time Between Two Dates in PHP post. Here is a quick way to find the years and months between two dates using PHP. The dates are not exact since we’re assuming that each year and month has the same number of seconds. function yearMonthDifference($start_date, $end_date) { // 31556926 [...]

One of the biggest inconveniences about the Motorola Droid is the lack of ease when it comes to sync media. (videos, music – whatever) Now I could always plug in the phone via USB, mount the SD card and transfer files that way, but it just seems to take way to many steps. What you’ll [...]

Tags:

I’m just finishing up a little project to improve the search ability on a website and I want to display an image and message say “loading…” until the script finished running. Below is an easy way to do that. UPDATE: Please view the updated way to do this that is a little more practical in [...]



  • Seren: Thanks - google did not fail me in finding this snippet (after 2 hours of 'why isn't this working!' before I choose to look for answers. That select
  • zdenis: type your scp command with nohup at the beginning: >nohup scp... enter your password stop temporarily the command with CTRL+z put on b
  • Criz: php script >> How to get the number of hours and minutes of a two set of time like this sample. 1st set of time : 8:00 to 17:00 2nd set of


Please Support Our Friends

Banner
FreshBooks

About

My name is John Veldboom and have been in design and web programing for just over 8 years now. Started off as a hobby in high school but it has developed into a full time job now. I always tell people that if I wasn't doing this at work each day, I would be at home doing it for free. I love it!

Please visit the contact page to drop me a message.