Tag Archives: php

(PHP) PHP Miles to Latitude and Miles to Longitude Converter

There are tons of functions out there to calculate the distance between two points, but what if you know one point and want to calculate the latitude (“vertical”) or longitude (“horizontal”) equivalent of a fixed distance, in miles? An example application would be in generating a minimum & maximum latitude and longitude bounding box around [...]

Posted in PHP | Also tagged , , , | Leave a comment

(PHP) Fibonacci series (several different algorithms)

Planning to add proper PHPunit and PHPlogger code examples and blog about it at http://bcmoney-mobiletv.com/blog/

Posted in PHP | Also tagged , , , , , , | Leave a comment

(PHP) auto complete like google suggestion

auto complete code snippet like google suggestions

Posted in JavaScript, PHP | Also tagged , , , , , , | Leave a comment

(PHP) Resize an image without distorting proportions

A function that resizes an image to desired width and height, but does not distort the image proportions. Suggestions please comment.

Posted in PHP | Also tagged , , , , , , | Leave a comment

(PHP) Get all information from a YouTube video

This code snippet gets all information from a YouTube video (title, description, duration, thumbnail url, thumbnail width, thumbnail height, etc..) using the video id and YouTube API. (Sorry about my bad english)

Posted in PHP | Also tagged , , , , , , , , , , , , | 4 Comments

(Apache) Setting PHP Memory Limit in .htaccess

php_value memory_limit 64M

Posted in Uncategorized | Also tagged , , , , , | Leave a comment

(PHP) get Latitude/Longitude from an address

Convert an address to geocode Latitude/Longitude positioning with PHP and Google Maps

Posted in PHP | Also tagged , , , , , , , , , | Leave a comment

Test for a valid e-mail address and MX records in PHP

Tests for a valid email address and optionally tests for valid MX records, too.

Posted in PHP | Also tagged , , , , , , , , | Leave a comment

(PHP) Magento Create Admin (Backend) Module with Grids

If you are creating an admin module for Magento (learn creating admin module in Magento) then you would surely be asked to create grids (eg. for order listing). Creating grids can be somewhat difficult for the novice Magento programmers, but in this tutorial we will create a grid in the admin module in the simplest [...]

Posted in PHP | Also tagged , , , , | Leave a comment