PHP Code Snippets

David Carr

returns the users IP address.

Read more

David Carr

returns the filename without the extension

Read more

David Carr

returns the file extension

Read more

David Carr

Find the size of a given folder.

Read more

David Carr

Converts a human readable file size value to a number of bytes that it represents. Supports the following modifiers: K, M, G and T. Invalid input is returned unchanged.

Read more

David Carr

Create a human friendly measure of the size provided.

Read more

David Carr

This function accepts a file extension as it's param it then examines and places it in the correct group (Image, Document, Application, Video, Audio, Database/Spreadsheet, other)

Read more

David Carr

This function returns an array of dates between 2 dates.

Read more

Copyright © 2011 - 2018 created by David Carr Web Developer. All code MIT license. All rights reserved. Built using Simple MVC Framework