• : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.

Recommended PHP reading list

Recommended PHP reading list

developerWorks

Getting ScribeFire and Drupal work together

Thu, 04/19/2007 - 18:53 — Richard Laffers

Want to use the ScribeFire (a.k.a. Performancing) Firefox extension for publishing from your desktop to your Drupal based blog? Read here how to set it up in 5 steps.

Adding WAP and OTA Download Support in Apache

For WAP, edit the mime.types file, add: 

image/vnd.wap.wbmp                                 wbmp
text/vnd.wap.wmls                                  wmls
application/vnd.wap.wmlc                           wmlc
application/vnd.wap.wmlscriptc                     wmlsc
text/vnd.wap.wmlscript                             wsc
text/vnd.wap.wmlscript                             wmlscript

For OTA download, edit the mime.types file, add:

MIDlet-Install-Notify - the PHP Catch

Don't know how to handle or read the POST? Try this:

 

SVN Pre-commit script to check empty comments

#!/usr/local/bin/python
"""
Subversion pre-commit hook which currently checks that the commit contains
a commit message to avoid commiting empty changesets which tortoisesvn seems
to have a habbit of committing.

Based on http://svn.collab.net/repos/svn/branches/1.2.x/contrib/hook-scripts/commit-block-joke.py
and hooks/pre-commit.tmpl

Hacked together by Jacques Marneweck <jacques@php.net>

$Id$

IE 6, IE 7, and Firefox DIV problem

Did you realize that the DIV usages in IE 6 and Firefox 1 are broken in IE 7 and Firefox 2? Such as the overflow problem and DIV overlapping each other.

To fix this, take out certain width and height declarations and put min-width, max-width, etc. instead.

Besides, to make overflow:auto work in IE7, put position:relative 

NuSOAP Examples

<?php

//$log = true;
require_once('config.php');

// 1. include client and server
//require_once('../lib/nusoap.php');

// 2. instantiate server object
$server = new soap_server();

//configureWSDL($serviceName,$namespace = false,$endpoint = false,$style='rpc', $transport = 'http://schemas.xmlsoap.org/soap/http');
$server->configureWSDL('InteropTest','http://soapinterop.org/');

// set schema target namespace

Subversion: Installation/Use for the Newbie (CentOS)

Subversion: Installation/Use for the Newbie

Subversion isn't just for coders and programmers...I know because I'm not one. I've begun to use it lately for many things, such as backing up Nagios configurations, documents, and pretty much anything text based. I don't know why I didn't start using it sooner, but none the less here's how to get it going. This document quickly explains how to install, configure, and use Subversion locally, as well as across Apache on a network.

Subversion revert to revision

$ svn merge -r 303:302 http://svn.example.com/repos/calc/trunk
U integer.c

$ svn status
M integer.c

$ svn diff

# verify that the change is removed


$ svn commit -m "Undoing change committed in r303."
Sending integer.c
Transmitting file data .
Committed revision 350.

Install all PEAR packages

Problem: You want to install, if not all, then at least almost all PEAR modules in your local PHP system. Maybe you are a developer and need them all. Maybe you are traveling around a lot and you are offline each and every time you need a specific PEAR module, so you would like to grab them all at once. Maybe you want to see how they are programmed and learn from them. Or maybe you just hate having to install a new PEAR module every so often.