PHP Upgrade, Painstakingly

I upgraded PHP from version 5.2.1 to 5.2.2 last week, and boy did it take elbow grease. I had to fart around in the login settings on my computer, since I installed PHP under a different account that was no longer available on the Welcome Screen. I hate Windows. For some reason, I could only see my PHP installation from the account it was installed under. I had to log in two accounts and make sure my install settings were the same. That was weird, but at least it didn’t break. Now I have two PHP INSTALLER EDITS – REMOVE…

Read more

Sessions, too?!

Man, the IT department at Augsburg College really doesn’t want anything to happen on their servers. You can see in previous postings the functions they have disabled, but I just tried storing data in a PHP session, and unless I set the variable within the current program file the session had no permanence. They must have set session.gc_maxlifetime to ‘0’ and session.gc_probability to ‘100’, meaning sessions can’t be saved. Either that, or they compiled PHP without sessions (using the –disable-session option). Harrumph. I really need to find a host that didn’t cripple PHP when they installed it.

Read more

More Blocked/Unavailable PHP Functions

I just tried to use the crypt() function in PHP to secure some passwords for my website, with no luck. For some reason, that function is unavailable. Plus I can’t use .htaccess files to control directories, or use PHP to modify/upload files. My current host is really restricitve. I wonder if, even after getting the PEAR DB module (which has been superseded by some other module I don’t remember the name of), I’d be able to connect to a database on, say, my dad’s server, or a friend’s. Considering the security at my server’s location, probably not.

Read more

Rock the Script (Don’t Rock the Script Baby)

While I’ve never fancied myself a particularly good programmer, I must admit I feel I’ve outdone myself with the (almost complete) new version of a website I maintain. I’ve reprogrammed the entire thing in PHP, cutting down file storage needs on the server as header information is included dynamically from separate files when the pages load. It’s a new kind of template system that requires only a simple snippet of code in the actual page. And the page titles are automated, too, with a variable being passed to the header (where the title tags are) on each load.But the best…

Read more

PHP: PHP Hypertext Power

I’ve spent the last two days learning a smattering of PHP in my spare time. I’m trying to create a more secure login system for my website, and PHP seemed like the way to go. Since it is (nearly?) impossible for visitors to view the source of a PHP script in a browser, it’s much more secure than the client-side solution I use now. Just use a PHP array to store the data and loop through it searching for POSTed input. It’s now functioning as a lookup tool for names in the login database (all I’ve gotten to so far…

Read more