hi, normally when I need to fetch an RSS feed in private project I used some old script based on the php function fopen. But with my current Host (Dreamhost) fopen is dissables for various security reason, they however adviced to use the cURL library, I wasn’t familiar with it but after some reading and testing I’ve build an super small feedreader, well see for yourself . (Oh and you need to have the XML parser module installed on your server).
Read the rest of this article
Tags:
feed,
feedreader,
php,
reader,
tutorial
I’ve always been wondering how it works, and I’ve finally found out how it does. I will give a few simple examples how it works and how you can use it.
Step one : Make sure your server/domain allows wildcard DNS and that it is enabled on your server/domain.
Step two : Lets create a file called index.php
now before I continue with step 3, it is nice to know that the wildcard subdomain forwards to the index.php on the main domain so all the following domain pont to the same file.
- foo.domain.com
- bar.domain.com
- foobar.domain.com
Read the rest of this article
Tags:
php,
tut,
tutorial,
wildcard dns