Quantcast
Channel: php – JiveBay
Browsing latest articles
Browse All 10 View Live

CSS Class Based on Date

I recently saw a tutorial on SimplePie’s site about using relative dates and I modified the function to output a CSS class rather than text. That way you can make newer stories bold, brighter, or...

View Article



Current Weather Conditions

The National Weather Service provides Current Weather Conditions XML files for many cities in the US. Here is some code for PHP5 (it uses SimpleXML) on doing this (assuming you’ve already grabbed the...

View Article

PHP Forms Class with 4 hour Video Tutorial

Manuel Lemos has made a 4 hour video tutorial for his popular PHP Forms Generation and Validation class. Thankfully Google Video has a download link so you can watch it when you want. PHP Classes has...

View Article

Gallery2 vs Zenphoto vs Plogger

Here I cover some of the features of the best open source PHP image gallery web applications. Gallery 2 Multiple uploads via JavaScript (can add more file upload boxes) Uploads by e-mail, ZIP or...

View Article

Free Weather Forecast

I noticed on the National Weather Service’s website they now allow you to grab the forecast by REST, whereas before they only supported SOAP requests. This makes grabbing the forecast much simpler than...

View Article


Calculating the Moon Phase

I was searching for a algorithm to get the phase of the moon, and unfortunately the Moon Phase Class on PHP Classes is inaccurate. With some searching I was able to find 2 sites that have code to pull...

View Article

phpBB 3.x RSS Hack

A code snippet or hack to get phpBB 3 to have rss feeds on your forums. It's very simple to setup and you can modify it how you like for your message board.

View Article

RSS Cron Job

Tired of your web host with limited Cron Jobs, slow caching or think the Poor Man's Cron Job sucks? Try creating an RSS feed and then let Google Reader hit your page and force a RSS Cron Job to take...

View Article


Calculating the Moon Phase Part 2

Here is some PHP code to calculating the Lunar Phase of the Moon. It also tells the ecliptic latitude and longitude in degrees, the moon's distance in Earth radii, the moon's age in days from new moon...

View Article


How to test for any TextLinkAds first

Check to see if any TextLinkAds web advertisements are available for your site first, before outputting them.

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images