Unlikely Teacher

1. Share Everything* [Programming Gotchas, Technology News, Insights on Living and Everything in Between]

Entries Tagged as 'PHP'

Fatal error: Call to undefined function wp_dashboard_setup()

March 24th, 2010 · 5 Comments · PHP

I got this error in WordPress this morning when trying to logon to the Admin pages: Fatal error: Call to undefined function wp_dashboard_setup() in /home/username/public_html/wp-admin/index.php on line 15 I didn’t make any changes or upgrades to the site and the weird part is that all of a sudden, two of our WordPress installations were displaying [...]

[Read more →]

Tags: ·

PHP writeUTF implementation

May 12th, 2009 · No Comments · Java, PHP

We currently have an application in Groovy/Grails/Java that we’re slowly porting to PHP (for more affordable hosting costs). We encountered a problem when we needed to convert one of our routines for writing out a binary file. We were using Java’s DataOutputStream.writeUTF(String) method and had a hard time trying to write binary data in PHP. [...]

[Read more →]

Tags: ·

Zend Framework Large File Upload Issues

February 3rd, 2009 · 3 Comments · PHP

I tried modifying this Zend_Form_Element_File example to support larger file uploads but noticed that I’ve been getting “Undefined index” errors when my uploads are bigger than 8MB. Notice: Undefined index: tmp_name in C:\quickstart\library\Zend\File\Transfer\Adapter\Abstract.php on line 589 Notice: Undefined index: name in C:\quickstart\library\Zend\Validate\File\Size.php on line 398 Notice: Undefined index: tmp_name in C:\quickstart\library\Zend\File\Transfer\Adapter\Abstract.php on line 589 Notice: [...]

[Read more →]

Tags: ··

WordPress Thank a Plugin Developer Day

January 29th, 2009 · No Comments · PHP

Yesterday, I tried working on my first ever WordPress plugin. It’s a simple filter which includes a Google Adsense script after every post. I’m thinking of creating a Buy me a Coffee plugin next to take this plugin development challenge on to the next level. Coincidentally, Matt just announced January 28 as the official WordPress [...]

[Read more →]

Tags: ··

SEO basics

September 19th, 2008 · No Comments · PHP, Tools

I’ve been creating web applications for quite some time but never got interested in SEO (or Search Engine Optimization) until now. The primary reason I think is that most (if not all) of the web applications I’ve been developing are for internal use only (think Java and banks). But this outlook changed as my wife [...]

[Read more →]

Tags:

Apache 2.2 and mod_rewrite

July 10th, 2008 · 7 Comments · PHP

This is a super short (and very rough) post on how to enable mod_rewrite in Apache 2.2. I have seen numerous posts on how to create “rewrite” scripts but found very little information on how to enable this feature in Apache 2.2. Step 1: Uncomment the line with “mod_rewrite.so” from httpd.conf LoadModule rewrite_module modules/mod_rewrite.so Step [...]

[Read more →]

Tags: ·

Sling and Stone Music is Now Online

June 13th, 2008 · 2 Comments · PHP, Sunday School

After several weeks of not being able to post here regularly, I’m very happy to announce that the initial release of Sling and Stone Music is now online. Sling and Stone Music is about “Discovering God’s Love through Music”. Watch Music Videos (some with lyrics) from various Christian artists. Artist information, albums and lyrics are [...]

[Read more →]

Tags: ···

Some "Really Neat" PHP Resources

May 29th, 2008 · 3 Comments · PHP

I’m currently working on a personal PHP project and I just wanted to sort of “bookmark” the resources I’ve gathered and found useful over the past few days. SimpleXML processing with PHP PHP Cookbook Using PHP 5′s SimpleXML User Registration/Account Activation Script Object Oriented PHP: Paging Result Sets Write to a file from PHP This [...]

[Read more →]

Tags: ·

PHP 101: A Simple Seat Reservation System

April 17th, 2008 · 58 Comments · PHP

I would like to share a little application I developed last year for a simple concert that our church sponsored. The requirement was to develop a seat/ticket reservation system which will be accessed from two different locations. The application will be used by administrators only to check the available seats and will not be accessible [...]

[Read more →]

Tags: ·

Beginning PHP and MySQL 5 for $10

April 12th, 2008 · 1 Comment · Books, PHP

At 12:01 AM PST, a different Apress or friends of ED eBook will be priced at $10 US for a 24-hour period You can view/purchase the discounted e-books from this URL: http://www.apress.com/info/dailydeal. About the same time last year, I needed to create a simple Ticket Reservation System for a small concert in our local church. [...]

[Read more →]

Tags: ··