PHP Tutorials
Set php.ini Values Using .htaccess
Did you know that you can set php.ini values right inside the .htaccess file? It's actually very easy. The .htaccess Code Of course you could simply place these in the .htaccess file, but .htaccess is a viable alternative if your host doesn't allow you to touch the...
GoDaddy, cURL, HTTP, and 403 Errors
I was recently coding PHP cURL functionality for a GoDaddy-hosted website and I kept running into an annoying 403 error. Essentially, GoDaddy's proxy server (which they force you to use for cURL) was giving me a "Forbidden" error and wasn't trying to hit the necessary...
Change the PHP Query String Variable Separator Using php.ini
As you probably know, the default PHP query string variable separator is the "&" character. One annoyance with using the "&" character is that, in order to have valid XHTML syntax, you need to output your &'s as "&". If you'd like to avoid...
PHP: Get WordPress Post Categories
When I put together my WordPress theme, I wanted to put all of my post categories in the footer of the page and in two column format. Obviously there isn't a built-in WordPress function that will format the categories the way I wanted to so...
Send Files via FTP Using PHP
Sending files to a server via FTP is an essential ability of any web developer or designer. Of course, we all use glossy FTP clients like WS_FTP and FireFTP, but what about FTP automation? You can use PHP to FTP files from one server...
Create Image Thumbnails Using PHP
I create a lot of photo galleries for my customers. A website is meant to be a marketing tool and what better way to market your product than showing numerous pictures of the product? One issue that comes up often is that the customer...
IMDB Grabber Class by Fabian Beiner
One of my readers, Fabian Beiner, took my PHP-based IMDB Grabber script a step further and made it into a useful class. The class also has the ability to grab more information my script did. Check it out! The PHP Thanks to Fabian for sharing!
Script & Style Exclusive: Add Custom Values To Your WordPress RSS Feed
My duties at Script & Style have led me to writing an exclusive article about how you can add custom variables to your RSS feed. From the article: As most of you probably know, Script & Style was created by myself, David Walsh, and
PHP, ODBC, and nvarchar
I stumbled upon an odd error using PHP's ODBC functions to query a SQL Server 2005 database. I was doing a basic SELECT statement to get the description of something when I encountered the following error: It turns out that the PHP ODBC functions have a...
PHP IMDB Scraper
It's been quite a while since I've written a PHP grabber and the itch finally got to me. This time the victim is the International Movie Database, otherwise known as IMDB. IMDB has info on every movie ever made (or so it seems). Their...