TimoZachi


Member since 09/10/2011

Name: Timóteo Zachi

Location: Brazil

8 snippets

4419 profile views

3 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

TimoZachi's Recent Snippets



« Prev 1 Next »
Class that convert arrays to csv format, downloads CSV files and saves to disk on server.
0 1055 posted 12 years ago by TimoZachi
Function to prevent sql injection in Like queries, where the characters '_' and '%' can be dangerous.
0 1116 posted 12 years ago by TimoZachi
A simple function for converting a php timestamp (integer) to a user frindly format. Examples: 10 Seconds ago, 4 Days ago. The function converts timestamp to U.F. format only if the timestamp is earlyer than one week. Otherwise it uses $dateFormat ar...
0 1293 posted 12 years ago by TimoZachi
This is a function that receives a string as an argument (along with other config optional arguments) and locates all keywords (words that appear most) from that string, returning the keywords as an array or as a string separated by commas. The funct...
2 3215 posted 12 years ago by TimoZachi
A custom class for formatting dates, similar to PHP bult-in function "date". The class also has some other date utils functions, like: dayOfYear, numberOfDaysInMonth, etc..
1 1106 posted 13 years ago by TimoZachi
This is a custom class for caching results through php's session. The class can be used to cache anything, but i use it to cache mysql results so i don't have to get all the time the results by querying MySQL (wich may take a long time, especialy if...
0 1190 posted 13 years ago by TimoZachi
A function that resizes an image to desired width and height, but does not distort the image proportions. Works for JPEG, GIF and PNG.
0 1020 posted 13 years ago by TimoZachi
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.
0 2019 posted 13 years ago by TimoZachi
« Prev 1 Next »