Archive for the 'php' Category

Breaking through with php

Once you hit a certain level of programming with php you will be able to think in a different way. At first I would always think hmmmm, I wonder if I could do that or I wonder if that is possible. Now that I have been programming with php for a while now I don’t […]

Read Full Post »

OOP with php!

I try to be as organized as possible when it comes to writing my code. There is no other way to code in php other than an a class based approach! I have a bad habit of instantiating every class even if I might not be using it, just in case I want to use […]

Read Full Post »

I just installed the Geshi wordpress plugin. I have used Geshi before to do some php tutorials but I have never used it with wordpress so let’s see how it works. I think this will be great for this site!

1
2
3
4
5
6
7
<?php
echo "Hello World!";
$array_test = explode(",","one,two,three");
foreach ($array_test as $value) {
echo "$value ";
}
?>

Looks to be working pretty good. […]

Read Full Post »

Coding for the community with php4 no more!

I have decided that I am no longer going to be coding using only php4 functions. The time is past due where it is okay for web hosting companies to use outdated software. If they don’t offer php5 then use a hosting company that will. I use dream host and they give you the option […]

Read Full Post »

PHP frameworks

Lately I have been looking at some ways to optimize my php development. I have been looking at templating engines, frameworks and php objects. I have noticed that for each site or project I end coding a lot of the same function or copying functions from previous projects to build a similar class that does […]

Read Full Post »

fprintf

fprintf
(PHP 5)
fprintf — Write a formatted string to a stream
Description
int fprintf ( resource $handle, string $format [, mixed $args [, mixed $…]] )
Write a string produced according to format to the stream resource specified by handle.
Parameters

handle
format
See sprintf() for a description of […]

Read Full Post »

fprintf

fprintf
(PHP 5)
fprintf — Write a formatted string to a stream
Description
int fprintf ( resource $handle, string $format [, mixed $args [, mixed $…]] )
Write a string produced according to format to the stream resource specified by handle.
Parameters

handle

format
See sprintf() for a description of […]

Read Full Post »

explode

explode
(PHP 4, PHP 5)
explode — Split a string by string
Description
array explode ( string $delimiter, string $string [, int $limit] )
Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string delimiter.
Parameters

delimiter
[…]

Read Full Post »

echo

(PHP 4, PHP 5)
echo — Output one or more strings
Description
void echo ( string $arg1 [, string $…] )
Outputs all parameters.
echo() is not actually a function (it is a language construct), so you are not required to use parentheses with it. echo() (unlike some other language constructs) […]

Read Full Post »

crypt

crypt
(PHP 4, PHP 5)
crypt — One-way string encryption (hashing)
Description
string crypt ( string $str [, string $salt] )
crypt() will return an encrypted string using the standard Unix DES-based encryption algorithm or alternative algorithms that may be available on the system.
Some operating systems support more than one type of encryption. […]

Read Full Post »

Next »