• Archives

    » PHP
Aug
28

PHP/MySQL after 2010-005

After applying Security Update 2010-05, some users have reported PHP and MySQL problems, including an inability to connect to MySQL databases. Apple reports that the following procedure resolves the database connection issue:

In the Terminal type sudo nano /etc/php.ini (Terminal will ask you for your password)
Change: mysql.default_socket = to: mysql.default_socket = /tmp/mysql.sock
Press Ctrl-O, then Enter to [...]

Aug
22

phpArmory for WoW

phpArmory is a PHP class library. It allows php software developers to easily access data from the World of Warcraft Armory website. This is useful because the Armory website contains up-to-date and official details on characters, guilds, and items in World of Warcraft.

Aug
4

PHP 5.3.3 Backwards incompatible change

Methods with the same name as the last element of a namespaced class name will no longer be treated as constructor. This change doesn’t affect non-namespaced classes.

namespace Foo;
class Bar {
public function Bar() {
// treated as constructor in PHP 5.3.0-5.3.2
[...]

Aug
3

var_export in PHP 5

So var_export(mixed $expression [, bool $return = false ] ) outputs or returns a parsable string representation of a variable.

Jul
19

Data Filtering

Time to leave $_GET and $_POST in the dust! In fact, you probably shouldn’t use $_GET and $_POST anymore. Since PHP 5.2, there is a new and better way to safely retrieve user-submitted data.

Jul
16

Paulette Greene

One of the latest project i have done for SCI is for a client named Paulette Greene. They are a large realtor shop here in the DFW (Dallas/Fort Worth) area.

Jun
30

Query Strings in Codeigniter

In some cases you might prefer to use query strings URLs and not the pretty URLs. CodeIgniter optionally supports this capability which can be enabled in your application/config.php file.

Jun
23

PHP5 Method Chaining

One improvement over PHP4 to PHP5 is something called method chaining and enables us to do pretty cool things like…

Jun
22

Nice Dog Framework

I just came across this mico php framework a few nights ago. When i say “micro” i mean micro, this framework is one file!

Jun
17

WordPress 3.0 “Thelonious”

The new Wordpress 3.0 is out and full of new stuff to play with! It’s a great improvement for us as developers and as the end user.

Jun
14

Codeigniter Path Helper

he Path Helper file contains functions that permits you to work with file paths on the server.

Jun
7

Listing files in a directory Codeigniter

The Directory Helper file contains functions that assist in working with directories.
First if you plan on using this often you may want to place this in your autoload under the config folder. Below is how you would load it in the controller itself.

$this->load->helper(’directory’);

Now you have access to the directory_map function, this function reads the directory [...]

Jun
1

Codeigniter URLs remove index.php

By default, URLs in CodeIgniter are designed to be search-engine and human friendly.

May
28

New short url service

Turn large annoying urls into short and simple ones! Your short url will go directly to the page of your choice, and last forever.

Apr
16

Lending Reform

These days it seems like everyone is getting a bailout from the government. Fannie Mae, Freddie Mac, AIG along with other big banks, stock brokerage firms and automakers are taking handouts from the government funded directly by you…the taxpayer.
Lending Reform a site i am developing for SCI using the latest wordpress, along with a custom [...]

Jan
2

Memcache with Codeigniter

In one of my latest projects we are using memcache to store user data and other items that will improve user experience.

Sep
17

CodeIgniter v1.7.2 Cart Class

As you make know I am a huge fan of CI and this update has been long over due! The cart class is something that really makes me happy as a developer. I no longer have to look to a shopping cart that only meets half my needs. I can now build and deploy one [...]

Jan
19

CodeIgniter – Write a cookie

This will show you how easy it is to set a cookie using CI (CodeIgniter) the PHP framework.

First we need to include the helper into your controller. The other option is to add this to the autoload.php file in your config folder.

1
$this->load->helper(’cookie’);

Now we need to set the cookie

1
2
3
4
5
6
7
8
9
10
$cookie = array(
[...]

Oct
19

Database Class

The latest version 1.1.2 of the database class is now available for download! Check out the project page for info on how to use and download this class.

Aug
13

I think i am in Stack Love…

I am talking about BitNami Open Source Stacks! This was something i found and started using right away! I dont get “jump up and down” happy too often but, this is one of the times! I have been using BitNami for about 3 weeks and i dont know how i got along without it! Trust [...]