• Home

CodingExperiments.com

CodingExperiments.com is a site where I can (obviously) experiment with various demonstrations of code.

Search

Category:

  • AJAX
  • Announcement
  • Apple-related
  • Best Practices
  • Blogger
  • Blogging
  • BurstCMS
  • Content Management System
  • Debugging
  • Experiments
  • FriendFeed
  • Gaming
  • General Code
  • Internet
  • Javascript
  • Linux
  • Microsoft
  • Microsoft Windows
  • Networks
  • Open Source
  • PHP
  • Programming Tips
  • Rant
  • Security
  • Storage
  • Twitter
  • Ubuntu
  • Uncategorized
  • Web Development
  • Windows Vista
  • WordPress

Archives:

  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007

Pages

  • About
    • The Authors
  • Commenting your code
  • How to Write Papers with Groff
  • ModCMS Anti-Spam Component Set
  • ModCMS Technical Specifications
  • Regular Expressions Guessing Game
  • Saving code directly to a web server
  • The (Almost) Perfect PHP 404 Page

Meta:

  • RSS
  • Comments RSS

Awesomeness tracker

CodingExperiments at Blogged View blog authority
Free Page Rank Tool

Today Begins the Start of the Coding of ModCMS

January 26th, 2008 by possible248

Note, I have changed the name from ModCMS to BurstCMS.

I have started coding ModCMS today. The first thing that I’m working on is the package manager. I have come up with a basic layout for the XML file that will contain information on the modules, I am also working with SimpleXML to create an interface to display the information.

Currently, no actual modules and components exist, so just random test modules are being used. The ModCMS package manager will require SimpleXML as well as the ability to access remote files.

Posted in Announcement, BurstCMS, Content Management System, PHP, Web Development | Comments

Sudo: Not secure enough

January 19th, 2008 by possible248

UPDATE: I really don’t think that this is a problem anymore. I think that this is a rather silly post. Please ignore it.

This post assumes that you know a few things about Unix-based operating systems. You will need to know about su and sudo as well as what the root or superuser is.

Some people know this, and some people don’t. On Ubuntu-based systems, by default, the root user has a complex, randomly generated password and is generally not used. The idea is to have a “sudo-capable” user that is able to do root tasks with the “sudo” command. It allows you to be root for one command and requests your password instead of the root password. That way, the root password isn’t shared. If a virus attempts to use sudo, it meets a password dialog.

If you try to use su, which basically gives you the terminal of another user, you have to type their password. If you try to use su to be root, you would have to know the complex root password. This isn’t so if you type “sudo su”. That gives you the root terminal without requiring the complex password.

I think that this is a minor security flaw as it defeats the point of the complex random password that is set to the root user by default.

Posted in Linux, Security | Comments

Proper use of the PHP function debug_backtrace ();

January 15th, 2008 by possible248

The PHP function debug_backtrace ( ); is very useful, but it can be dangerous. A beginning developer trying to find a bug on a production-line website might be inclined to use print_r ( ); to show what debug_backtrace ( ); returns, as it returns data in the format of an array.

The function print_r ( ); displays things directly into the screen. That may not be very wise for a production-line website. After a little thinking, I came up with a secure way to view backtraces. It’s an easy one-line piece of code that can be inserted into a PHP (5) script.

file_put_contents (’backtrace.txt’, print_r (debug_backtrace (), true));

Posted in Debugging, PHP, Security, Web Development | Comments

« Previous Entries

 
Wordpress Themes by and Website Templates by Blogcut Blogged Blog Directory Blog Directory - Blogged