Posts tagged php

Home/Posts tagged php
Global Variables in PHP vs JavaScript

Global Variables in PHP vs JavaScript

I’m still relatively new to PHP and the one thing that continues to trip me up is the use of global variables

I cut my programming teeth many years ago on languages like C and Visual Basic and more recently JavaScript, all of which appear to handle global variables differently to PHP.

read more
inFocus WP Theme: Customising WP-PostViews and Efficient Related Posts Plugins

inFocus WP Theme: Customising WP-PostViews and Efficient Related Posts Plugins

Since switching to WordPress I’ve been using the WP-PostViews and Efficient Related Posts plugins.

Although the inFocus theme I use now used previously comes with its own popular posts and related posts widgets I much prefer the functionality of the aforementioned plugins.

Unfortunately, when displayed the layout and styling for both these plugins doesn’t really fit with the overall inFocus theme.

read more
A Problem with Read More Link URLs and Webtreats inFocus WordPress Theme: Solved

A Problem with Read More Link URLs and Webtreats inFocus WordPress Theme: Solved

I recently posted a solution for allowing users of the WebTreats inFocus theme for WordPress to choose how post excerpts are displayed.

I was am of course using this solution on my site.

Shortly after implementation I noticed some rather odd-looking URLs associated with a couple of the Read More links on this blog.

read more
WebTreats inFocus WordPress Theme: Customising the Display of Post Excerpts

WebTreats inFocus WordPress Theme: Customising the Display of Post Excerpts

I’m no designer and since switching to WordPress I’ve been using a third party theme template. A template can’t cater for everyone’s needs and one particular change I’ve made is the way in which post excerpts are displayed.

The theme uses the the_excerpt() function, but I much prefer using the WordPress<!––more––> quicktag in my posts in conjunction with the the_content(‘Read More’) function.

read more
Installing PEAR Mail Package on MAMP and XAMPP

Installing PEAR Mail Package on MAMP and XAMPP

If you want to enable your site to have a send email option there are several choices including mailto, sendmail or Postfix.

For a while I was using the excellent swiftmailer which performed perfectly on both my local and remote servers for a while, but subsequently ceased working on my remote server.

A great alternative is the PEAR Mail package. Both MAMP and XAMPP come with the PEAR framework pre-configured, so installing the Mail package is straightforward.

read more
©Tech Otaku 2009 - 2017