aristoworks


Member since 06/20/2008

11 snippets

1387 profile views

2 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

aristoworks's Recent SnippetsTagged php



« Prev 1 Next »
This is a very rudimentary function used to convert a Datetime delivered by the Twitter API to a format you can store in MySQL's datetime field.
0 640 posted 10 years ago by aristoworks
I wrote this really quick and dirty script to paginate a very large chunk of text. A client site was setup with the understanding their about page would consist of 5-6 paragraphs but their biography ended up being 60 paragraphs. At the end of the d...
0 279 posted 11 years ago by aristoworks
This is a simple function that will return an array of all the dates corresponding to the day 'Monday' for a given year. It's pretty simple and may not be the cleanest way but it works for my purpose.
0 360 posted 11 years ago by aristoworks
This is a simple script that will allow you to crop an image that you upload from a form.
1 321 posted 12 years ago by aristoworks
This handy little script will allow you to detect whether or not a user is running FireFox as their browser.
0 278 posted 12 years ago by aristoworks
This is a simple function that will take a folder path and remove all of its contents including files and directories.
0 344 posted 13 years ago by aristoworks
Magic Quotes is a great feature of PHP but sometimes it can just get annoying. It's simple enough to turn it off at the .ini and restart apache but here's a quick .htaccess workaround
2 412 posted 13 years ago by aristoworks
A simple method of validating an IP address using PHP and regular expressions
2 1003 posted 13 years ago by aristoworks
This is a simple method of validating a 9-digit zip code using PHP and regular expressions
3 1044 posted 13 years ago by aristoworks
A simple method of validating an email address using PHP and regular expressions
4 570 posted 13 years ago by aristoworks
A simple method of validating a telephone number using regular expressions and PHP
3 681 posted 13 years ago by aristoworks
« Prev 1 Next »