Skip to content

How do I get the base URL with PHP?

I am using XAMPP on Windows Vista. In my development, I have http://127.0.0.1/test_website/. How do I get http://127.0.0.1/test_website/ with PHP? I tried something like these, but none of them worked. Answer Try this: Learn more about the $_SERVER predefined variable. If you plan on using https, you can use …

What is a good, free PHP charting suite?

All I will be doing is basic line graphs. Any experiences anyone might share would be greatly appreciated. Answer openflashchart: http://teethgrinder.co.uk/open-flash-chart/ A bit beyond simple line charts. LGPL licensed so it’s commercial friendly. For really simple charts take a look at the jQuery spa…

Using PHP as template language

Edit: Great points all around, dedicated templating language is obviously the way to go. Thanks! I wrote up this quick class to do templating via PHP — I was wondering if this is easily exploitable …

Creating an XML sitemap with PHP

I’m trying to create a sitemap that will automatically update. I’ve done something similiar with my RSS feed, but this sitemap refuses to work. You can view it live at http://designdeluge.com/sitemap….