Quantcast
Channel: Marcus etc. » PHP
Browsing latest articles
Browse All 8 View Live

Session variables not set on following page after header() redirect

The main reason for this blog here is to share with others the problems I’ve encountered and solved in the hope of saving someone banging their heads on the wall trying to solve issues that are...

View Article



What’s your age? PHP can tell you

I was looking around for a simple function or something that calculates the age of a person with a given date. I figured there must be something that did this natively in PHP, but to my surprise…. no....

View Article

DOMDocument whitespace text nodes

The DOMDocument is a convenient way of manipulating an XML file. While this is for PHP, I’ve come across some great parsers for use on a business iphone using lib2xml but we leave that for another day....

View Article

Read WordPress RSS Feeds, YouTube Video Lists, and more…

I needed to grab a couple of new blog entries on a website’s wordpress blog area, and put it on a non-wordpress home page. I ended up making a PHP 5 class that did the job for me. Very simple, no fancy...

View Article

Image may be NSFW.
Clik here to view.

List/Display YouTube Videos With MagpieRSS

Late last year, Google made a switch from the old YouTube API and integrated it into it’s GData API. While an understandable move, it does somewhat annoy me that the old REST method is being...

View Article


“401 Authorization Required” with PHP

Very simple bit of PHP to add to the top of your script if you want to password protect something. I wouldn’t reccommend this for larger bits of software, but if you have a simple script or page that...

View Article

Installing memcache for PHP 5 on Linux CentOS

This has been tested on CentOS but should work on most distros: Memcache is a caching mechanism for PHP which speeds up access to data by storing it in the RAM. Memcache runs as a server in a similar...

View Article

PHP __autoload() “not found” thowing exceptions

There is much debate about the __autoload function introduced in PHP5. I personally love it as all those requires, includes etc. made programs quite messy, and frankly annoy me if you create loads of...

View Article

Browsing latest articles
Browse All 8 View Live




Latest Images