PHP

WordPress 3.4.1 Maintenance / Security update Released

Wednesday, June 27th, 2012 | Business | 1 Comment

WordPressTime to update again..

WordPress released the 3.4.1 update addressing some basic maintenance issues and a few security vulnerabilities.

Some fixes:

  • Theme’s page template detection fix (this could get annoying)
  • Category permalink structure fix
  • Better plugin JS integration (this has annoyed me a few times)
  • Better compatibility with PHP 5.2.4 and PHP 5.4, as well as allowing for some other “non standard” setups.

Download or update in your WordPress dashboard

Tags: , ,

Help: Uploading MP3s on WordPress doesn’t work

Monday, April 30th, 2012 | Business | No Comments

WordPressToday I ran into a minor issue with WordPress.

When uploading an MP3 file (in my case, although I’m sure many other file types) — I was getting an “HTTP Error” or “Internal Server Error” depending on how I uploaded the file.  The file wasn’t even that big, just a 150K test file.

There were 2 things that had to happen..

Add an MP3 Mime Type

Out of the box, WordPress doesn’t want you to upload an MP3 file to the Media Library.  You have to add it.

You can do this by using the “upload_mimes” hook in your functions.php file:

function addMimeTypes($mimes) {
    $newmimes = array_merge($mimes, array(
        'mp3' => 'audio/mpeg'
    ));
    return $newmimes;
}
add_filter('upload_mimes', 'addMimeTypes');

Disable FastCGI

Yes, unfortunately FastCGI use of PHP was causing me to have problems so I had to switch back to PHP being run as an Apache Module.

To do this, you’ll have to find out per your hosting provider how to do this.  I’m at Media Temple and it was pretty easy.

Keep in mind that FastCGI lowers your memory usage, and disabling it may have other negative effects.

Tags: , , , , , , ,

SOPA Protest Today

Wednesday, January 18th, 2012 | Business | No Comments

It seems like quite a number of sites have joined in the SOPA protest.

Some interesting one’s that I’ve seen have been:

  • Google
    Given their high profile, I was happy to see the logo was blacked out today in protest of SOPA.
  • Ars Technica
    I like the way they blended a protest, with staying functional.  Personally I’d prefer to show the site “down” as in “black”, but they were creative with an inverse color scheme.
  • Wired.com
    This is one of my favorites.  It looks much more like “censorship” than any other just black site.  SOPA is about both censorship, and the shutting down of innocent sites.

If you want to join in the protest against SOPA and PROTECT-IP (remember, they are BOTH problems, not just SOPA) you can check out instructions (it’s very easy):

  • SOPA Blackout JS – My quick writeup on how to deploy the SOPA Blackout javascript utility
  • SOPA PHP snippet – pop this in the header of your includes, and you can participate too

 

Tags: , , , , , , ,

WordPress 3.2 Gershwin Released – new interface, and much more

Tuesday, July 5th, 2011 | Business | No Comments

While we were all celebrating July 4th, WordPress 3.2 was released.

The purpose of the release seems to be in streamlining the administrative control panel for both speed and ease of use.

Included in major release, are the following:

  • Heavily improved admin interface
  • IE6 Support dropped (yay, don’t worry, this is only for the admin, and likely the default theme — sites will still work in IE6 if designed for it)
  • PHP 5.2.4 required (does not support PHP 4 anymore)
  • MySQL 5 required
  • New Twenty Eleven default theme (built for us to play with, in HTML5)
  • New “Zen Mode” editor removing all the distractions
Here’s the video supplied by WordPress to win over everyone:

Tags: , , , , ,

Facebook Like Button: It says “likes http://example.com/page/to/like on example.com”

Wednesday, January 26th, 2011 | Business | No Comments

If you’re implementing a Facebook Like Button, and copied the code from the Like Button page to paste generically into a template, then you may have a problem.

Using the iFrame code, by default, you will end up liking the same page that hundreds of thousands of others have liked, an example button.

You need to insert your current page’s URL into that.  If you’re working on a dynamic site, it’s pretty easy to insert your current page URL in many languages (ASP, PHP, ColdFusion, etc).  Otherwise, just  type your URL in statically.

Tags: , , , ,

Hosting: How to pick a WordPress Host

Sunday, June 6th, 2010 | Business | 3 Comments

WordPress is a popular CMS platform (and has evolved from a purely blogging platform).  If you have virtually no technical knowledge at all, start off very basic with a WordPress.com account.  There are a number of things to consider.

This article will cover:

  • What you need for WordPress hosting?
  • What will WordPress hosting cost?
  • What else is important for WordPress?
  • What hosts are any good?
  • What about Email hosting?

› Continue reading

Tags: , , , , , , , , , , , , , ,

PHP Email – A Beginners Guide

Monday, April 26th, 2010 | Business | 2 Comments

Saw a nicely done introduction tutorial to sending email with PHP:

PHP has a very simple mail function which is used very often for basic text mail messages. What if you need to attach files or if you need to send your e-mail messages via SMTP? Than it’s time to use a more advanced script. This is because the standard mail function has only limited standard capabilities. There are many reasons to use SMTP transport for sending e-mail messages from your web application …

Read More

You can also check out:

Tags: , , , , ,

How web developers protect PHP sites from SQL injection attacks

Thursday, March 25th, 2010 | Business | No Comments

Web developers are responsible for writing websites that work today, but also years or even decades from now (though I would argue the average website shouldn’t be left alone for a decade).

It can be difficult to protect a website against all future attacks.  There is one big one we all have to be prepared for (because it is just so easy to fix)… SQL Injection attacks.

› Continue reading

Tags: , , , , ,

Formatting Stock Data from Yahoo Finance

Thursday, January 28th, 2010 | Business | 33 Comments

Yesterday I was playing with manipulating information pulled from stocks.  I ended up pulling data from Yahoo Finance, because it is just so easy to do in PHP.  I ran into a problem, how would I pull all the data I needed?

I found very little documentation online, it seems that pulling data from Yahoo Finance is more of a clever manipulation of Yahoo offering CSV downloads of financial data.  Yahoo mentions on discussion boards that it does not support, or help, those who use Yahoo Finance like this.  I don’t believe it is against any agreements. › Continue reading

Tags: , , , , , ,

NETTUTS: 5 Helpful Tips for Creating Secure PHP Applications

Thursday, January 8th, 2009 | Business | 1 Comment

NETTUTS posted an article, 5 Helpful Tips for Creating Secure PHP Applications.  

Frequently PHP sites have security issues, as some things make sense but are just not fully thought out.

When doing web development, it’s nice to program for the ideal input, but we also have to assume all other possible input.  

Here’s the list of 5 tips that are explained in detail in the article:

  1. Use Proper Error Reporting
  2. Disable PHP’s “Bad Features”
  3. Validate Input
  4. Watch for Cross Site Scripting (XSS) Attacks in User Input
  5. Protecting against SQL Injection

Tags: , , , , , , , ,


Please share, it makes me happy:

Subscribe to Email Alerts

Follow Me

Follow seangw on twitter

Archives

Categories

prestashop theme

virtuemart template