This is the first in a series of posts I’m doing on small tips which help when coding with PHP. The first is a one most devs probably know, but novice or new coders may not know and probably should.
A few days ago, before the hacking malarky, I needed a script that I could run via Cron to delete the contents of a folder that were older than a week from a certain day. For example; Let’s say it’s Saturday, I want the script to delete all files older than Saturday… Get what I mean. Right. Let’s continue.
I have recently been installing ImageMagick on my server for use on my other site Celeb O Rama, but because I am on Dreamhost I can’t just install what I like, like you would on a server that you own. So by using the Dreamhost Wiki I installed ImageMagick, but there are no instructions on how to install Imagick. The […]
So you’ve just installed ImageMagick, but how do you make your thumbnails in it? Ahhh, a very good question my friend. Why Not Use Imagick? Well like my server, not all servers have the Imagick extention for PHP installed. Also I think (personal opinion, shock) the command line is a better way to use ImageMagick. Right let’s get to it.
Phew. That’s quite a title. This tutorial was requested by Heather Lickliter yesterday who wanted a line of images similar to that of another theme, namely the Album theme. Using The Attached Image it’s really easy to do. The hard part is making the custom query for WordPress. I also believe that Heather wants to include it on a WordPress […]
I thought I’d make this little tid bit of a post for anyone who is interested. I was recently using GD to make an uploader, as I mentioned in the last post. Yesterday someone contacted me saying it produced an error, but the error was blank. Very odd! So I shut it down so I could do some debugging & […]
Recently I made an image uploader for my other website & I noticed that there isn’t a lot of tutorials around on how to crop thumbnails into squares. This tutorial requires that GD is enabled in PHP, I’m not sure whether you need GD2 or not but I don’t see any reason for it not to work in older versions […]
Making a options page for a WordPress plugin isn’t actually that hard. It’s just the page WordPress have on how to do it isn’t exactly the easiest thing to read. So I thought I would show you how I made my options page for The Attached Image. Hopefully it will be easier to understand and help alot of you plugin […]
Ok, so yesterday I did a tutorial about making a animation similar to that which WordPress uses when you delete posts etc. You know the fade to red & slide up thing… Yep? Good.
Ok, so I don’t want to act like I’m copying or anything, but a few people asked me recently how to make an animation like WordPress has when it deletes a row in it’s tables. Well in Mootools it can be acheved by following this great tutorial by David Walsh. However I was asked how to do it in jQuery. […]
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
Recent Comments