1. Home
  2. Computing & Technology
  3. PHP / MySQL
photo of Angela Bradley
Angela's PHP / MySQL Blog

By Angela Bradley, About.com Guide to PHP / MySQL

How To: Insert Ads Only After the First Post

Monday November 2, 2009

If you use WordPress like I do, and are looking to add in adsense (or any other type of advertisement) but only want to display it after your first post (not after every single post on the home page) then this helpful article is for you.  I know you can also do the same thing with plugins, but this show you where to do it right your code, and it's very simple!

Daylight Savings

Sunday November 1, 2009

It's not just your home clocks you need to change today... if you live in an area that observes daylight savings time, you can also adjust the clocks on your website. This can be done in the in the date function using the I (capitol i) setting. This should be set to 1 when entering daylight savings and to 0 when leaving it.

What CMS Do You Use?

Friday October 30, 2009

I had tried a lot of different softwares for my personal website, before settling on WordPress and Gallery2.  Do you have a personal website that you use a content management system for?  Please share with us what you love and hate about your CMS!

Pregnancy Due Date Calculator

Monday October 26, 2009

The estimated due date of a baby is calculated by adding 266 days to ovulation, or 280 days to the first day of the last menstrual cycle. For our calculation, 280 days is converted to 24192000 seconds.  Read More.  

Wordpress Plugin Upgrades

Wednesday October 21, 2009

Do you do your Wordpress plugin upgrades manually, or do you use the automatic updater?  The automatic upgrades can be nice, but they can also cause problems.  For more information about how to use automatic upgrades click here.  

Print or Echo

Thursday October 15, 2009

Our Print or Echo question is our most popular reader response.  We ask you, do you generally use Print or Echo?  Want to reply, or see what your fellow readers picked?  Answer now!

HTML is important for PHP

Tuesday October 13, 2009

PHP works closely with HTML, and can be embedded right into your existing HTML code. If you are not familiar with HTML you should learn the basics before starting PHP.  You can learn the basics or just brush up right here on About.com from our web design and HTML guide.

Area of a Rectangle

Wednesday October 7, 2009

When you are first learning to use PHP, before you start writing any fancy scripts, the best thing to do is to write lots of simple ones.  This tutorial shows you how to make a script that calculates the area of a rectangle from user imputed length and width.  From this we learn how to collect user data, preform basic math, and output the user's response.  

Floor () - Always Rounding Down

Friday October 2, 2009

The Floor() PHP function is used to always round down to the nearest whole number. The PHP function Floor () behaves identical to the MySQL use; even the largest decimal will always be rounded down.

How To CHMOD from FTP

Tuesday September 29, 2009

The most common reason you will need to change the CHMOD of a file or folder in PHP is to write data to a folder (image uploads for example) or a file (such as a flat file database.) This is a very easy process that you can do though most FTP programs. Although the screenshot in this article is from the FTP program Transmit, most FTP programs work in a similar way so the same steps and concepts will apply.

Read Archives
Discuss
Community Forum
Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL

©2009 About.com, a part of The New York Times Company.

All rights reserved.