aristoworks


Member since 06/20/2008

15 snippets

5148 profile views

2 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

aristoworks's Recent Snippets



« 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 1512 posted 13 years ago by aristoworks
This simple function allows you to find a weeks position in the month based on a given date. For instance I needed to alert the user their date was the "Second Week Of January" during a given month. I may never use it again but it came in very hand...
0 3199 posted 13 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 747 posted 14 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 974 posted 14 years ago by aristoworks
This is a simple script that will allow you to crop an image that you upload from a form.
1 895 posted 15 years ago by aristoworks
I used this simple snippet to enable users to "View More Info" which was embedded in a div below each of a list of items. This is different from many of the simple jQuery examples that only allow you to show/hide one particular div.
1 941 posted 15 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 748 posted 15 years ago by aristoworks
This is a simple javascript snippet that will allow you to specify a particular class to a group of checkboxes and then select them all at once when you click the master checkbox. This came in very handy for a store inventory script when I needed to...
0 1067 posted 16 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 917 posted 16 years ago by aristoworks
This simple little snippet will allow you to change two iframes with the click of just one link.
1 819 posted 16 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 1047 posted 16 years ago by aristoworks
A simple method of validating an IP address using PHP and regular expressions
2 3253 posted 16 years ago by aristoworks
This is a simple method of validating a 9-digit zip code using PHP and regular expressions
3 2409 posted 16 years ago by aristoworks
A simple method of validating an email address using PHP and regular expressions
4 1402 posted 16 years ago by aristoworks
A simple method of validating a telephone number using regular expressions and PHP
3 1550 posted 16 years ago by aristoworks
« Prev 1 Next »