Posts Filed in "PHP"

14

Apr

Filed in Code, Django, PHP, Python with 21 comments |

Constantly, and only in Python channels, I hear the argument brought up that “PHP is <insert random insult>” or “<N> is a PHP developer so he must suck”. One of the things I hate most, is stereotypes, based on false information. Stereotypes about people from Texas being rednecks are ok, because it’s true. Now, let’s […]

13

Apr

Filed in Code, MySQL, PHP, PostgreSQL with no comments |

This afternoon I posted my PHP database library on Google code. It’s designed to be very lightweight, and uses the PHP4 MySQL functions as well as the PostgreSQL functions, but is built for PHP5. It uses sprintf formatting, and works must like the Python database cursor’s, to help alleviate injection concerns while you are writing […]

13

Mar

Filed in Other, PHP with 2 comments |

I found a couple bugs tonight on PasteThat, by the time I was done correcting them I had redesigned the site, updated the syntax highlighter (strangely enough, which now supports 1/3 the languages it used to), and added several new features.

29

Feb

Filed in Code, PHP with no comments |

I’ve updated PasteThat to include support for files (including images) and links. It will soon replace my image hosting site (NukeAfrica). The site allows you to upload files up to 5 megs in size (right now) and if it’s an image will do some extra handling. The templates around the file/link hosting are still fairly […]

31

Jan

Filed in Code, Curse, PHP with 1 comment |

We’ve been working on our central authentication service at Curse lately, so we just began porting it’s libraries to PHP. We plan to deploy it across all sites (specifically the vBulletin forum sites) very soon.
In order to achieve a working library in PHP, we needed some HTTP utilities. We didn’t want to create dependencies with […]

14

Nov

Filed in Code, PHP with no comments |

So today, being the usual day, I needed a pastebin, that wasn’t slow, or bogged up with ads and stuff. I hopped on over to dpaste.com as I usually would, to find that the domain was temporarily expired (it’s back up now). Being that the site was down for a little bit, and the project […]

5

Nov

Filed in How-To's, Mac, PHP with no comments |

Apple made it easy this time around. Leopard defaults with Apache2 and PHP5, and enabling it is as simple as uncommenting a line. Check out this guide for a full tour of using Apache2 with PHP5 and MySQL on the latest release from Apple.

6

Aug

Filed in Code, PHP with 1 comment |

Today I undertook the challenge, or rather the lack-of, of integrating the MediaWiki userbase with Vanilla’s forum software. This provides the nice ability to run MediaWiki and Vanilla forums without having two distinct authentication systems. It’s also a nice way of making people apply for access to edit the Wiki
Because Wordpress is horrible […]

1

Aug

Filed in Code, PHP with no comments |

One big thing with large sites is optimization, and a major factor in most sites is SQL. In the end, all optimization methods begin, and most likely end, with a caching solution. While disk caching is not the only solution, in my opinion, for most situations, it is the best solution.
With Nibbits I was in […]

21

May

Filed in Code, PHP with no comments |

bool resampleImage(string input, string output, [int width], [int height])
string input is the source filename
string output is the output filename
int width is the maximum new width (defaults to 150)
int height is the maxium new height (defaults to 100)
You can download the resample image source here. Have fun