Archive for the ‘PHP’ Category

PHP base_convert

I wrote a simple tool to visualize numbers in different bases to help solve a math problem I was thinking about the other day. It uses PHP. click here to use <html> <head> </head> <body> <h1> Convert numbers </h1> Use this form to convert numbers between different bases. <br/> This can be useful for visualizating [...]

Regular Expressions with PHP

Here’s a pretty useful website to use when you are looking up what regular expressions are doing exactly with PHP or when you are writing your own. http://www.webcheatsheet.com/php/regular_expressions.php I try to avoid using complicated regular expressions and prefer writing the conditional statements using the native language instead of the regular expressions parser since I find [...]

PHP mysql_connect is slow (1 second) for localhost windows 7

I recently moved my development from XP to Windows 7 and found that webpages I had developed were taking 5 seconds long to load. This was unacceptable of course so I had to track down the problem. I eventually tracked down the offending function/method pdo::construct. I also found that mysql_connect was taking about 1 second [...]

PHP strtotime issues

strtotime is a broken php function in my opinion.

PHP Performance.

I’ve noticed the performance of my PHP is dog slow. I’ve since put in some debugging code and performance measuring code. My code might not be as modular or pretty looking but at least it will work in a reasonable amount of time. Object oriented PHP is causing me many performance headaches. It was disgustingly [...]

Determine if mod_rewrite is enabled using php/environment vars

A useful way to determine if mod_rewrite is enabled using php/environment vars. I googled this post and thought it was useful. This is useful for anyone switching between windows development + a linux deployment /w mod rewrite. It was on the 2nd or 3rd page of my google results so I’m putting it here http://christian.roy.name/blog/detecting-modrewrite-using-php

Powered by WordPress | Designed by: MMO Games | Thanks to MMORPG List, Game Soundtracks and Game Wallpapers