Archive | December, 2013

I Object – Part 2

I was thinking of writing a little tutorial on PHP objects but there is an excellent one available at Nettuts.  As a brief example though, PHP is frequently used to connect to a MySQL database.  In the past, I would have used code such as this example also from Nettuts: mysql_connect(‘localhost’, ‘username’, ‘password’) or die(‘Could […]

Leave a comment Continue Reading →

I Object – Part 1

I object to Object Oriented Programming(OOP).  When I started out, I learned BASIC.  It is amazing how a little command like GOTO can turn a couple hundred lines of code into nearly impossible to debug spaghetti.  This was procedural code.  It starts at the top and runs down to the bottom.  GOTO allowed you to jump from […]

Leave a comment Continue Reading →

Automating Digital Downloads

My wife’s website Sue Horowitz Modern Jewish Music sells sheet music as PDFs.  These are being sold by simple hosted PayPal buttons.  Sometimes we go away so I thought it would be nice to automate the process.  After searching for a bit, I found a very helpful PHP script here emanueleferonato.com.  This script allows you […]

Leave a comment Continue Reading →

PHP – At Your Service

PHP is a server-side language as opposed to HTML, CSS, and JavaScript all of which run on the client side.  PHP’s code is never sent to the browser so you will not see it with things like the browser’s “view source” command.  Since it can permanently alter, add,  or delete files from your website security […]

Leave a comment Continue Reading →