<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="0.92">
<channel>
	<title>PHP-Scripts Blog</title>
	<link>http://www.php-scripts.com</link>
	<description>Writing about PHP scripting since 12/99. Learn something new every day.</description>
	<lastBuildDate>Mon, 15 Oct 2007 19:08:40 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>41 PHP optimization tips</title>
		<description>As with any tips for optimization, it's best advised to benchmark your code first rather than just start hacking and slashing your code. With that said and understood, I enjoy reading articles for better optimizing PHP code and came across this one from reinholdweber with 40 tips + 1 bonus ...</description>
		<link>http://www.php-scripts.com/20071015/107/</link>
			</item>
	<item>
		<title>Talk like a pirate text filter suite by Dougal Campbell</title>
		<description>Today is Talk Like A Pirate Day. Appropriate day to implement Dougal Campbell's text filter suite Wordpress plugin which includes the Talk Like a Pirate filter. Every post and every comment today only on September 19 will have the text converted to pirate speak.

It works with the most recent version ...</description>
		<link>http://www.php-scripts.com/20070919/106/</link>
			</item>
	<item>
		<title>Formatting numbers with sprintf</title>
		<description>In the game Keno you might have noticed that games begin at 001 and iterate to 999. Let's look at some code to cycle properly and stay formatted in three digits using sprintf().

[code lang="php"]
$game_number = 1;
echo 'Game #' . sprintf("%03d",$game_number); // Game #00x
[/code]

Now let's add some style magic to give ...</description>
		<link>http://www.php-scripts.com/20070404/105/</link>
			</item>
	<item>
		<title>Date and time page last updated</title>
		<description>A PHP one-liner to keep the date/time the page was last updated:

[code lang="php"]
page last updated < ?php echo date("F d Y H:i:s", getlastmod() ); ?>
[/code]

Note: uses the server timezone by default. getlastmod() returns a timestamp and if you are on a shared server (virtual hosting) and cannot change the timezone, ...</description>
		<link>http://www.php-scripts.com/20070329/104/</link>
			</item>
	<item>
		<title>PHP still #4 programming language, Ruby on the move in TIOBE index</title>
		<description>The TIOBE Programming Community index tracks the popularity of different programming languages. Over the last year positions #1-6 have not changed with PHP holding at #4 behind Java (#1), C (#2) and C++ (#3).



Heard a lot about Ruby over the last year or so? It moved from #21 to #11. ...</description>
		<link>http://www.php-scripts.com/20070315/102/</link>
			</item>
	<item>
		<title>How to use MySQL REPLACE function</title>
		<description>Here's a MySQL query fuction that's easy to forget about: REPLACE. Let's say I have a bunch of records in a field with http://www and want to quickly change all to http://. Here's the syntax to update:

[code lang="html"]
UPDATE tdurl_1 SET URL = REPLACE(URL, 'http://www.tdurl.com/','http://tdurl.com/');
[/code] </description>
		<link>http://www.php-scripts.com/20070314/101/</link>
			</item>
	<item>
		<title>Yahoo has PHP programming positions available</title>
		<description>Rasmus Lerdorf, creator of PHP, posts about PHP programming positions available at Yahoo: Send me your resume and let me know what sort of stuff you are interested in or poke around on http://careers.yahoo.com/ and let me know which job interests you and I will forward your resume to the ...</description>
		<link>http://www.php-scripts.com/20070131/100/</link>
			</item>
	<item>
		<title>Perl to PHP cheatsheet</title>
		<description>Sooner or later you may want or need to port some Perl code to PHP. This Perl to PHP translation cheatsheet may come in handy. </description>
		<link>http://www.php-scripts.com/20070125/99/</link>
			</item>
	<item>
		<title>How to build a how many days in the future script with timezone offset</title>
		<description>This morning I was wondering what the date would be an arbitrary number of days in the future, like if somebody says: get back to me in a few months. I decided to search Google to see if there was a simple, web-based form that I could enter in the ...</description>
		<link>http://www.php-scripts.com/20061221/98/</link>
			</item>
	<item>
		<title>How to randomize, return and remove numbers from a pool</title>
		<description>This morning in the IRC chat (irc.scriptschool.com #scriptschool) a random visitor named Rnd-Amarion stopped by with the following how-to PHP question: I am about to learn PHP, and want to program a simple web page with a long string of random numbers. I have the random numbers allready. When someone ...</description>
		<link>http://www.php-scripts.com/20061211/97/</link>
			</item>
</channel>
</rss>
