Posts Tagged ‘php’
Drupal School Site. St Louis Jubilee School Drupal in Africa (Ghana)
Here come another drupal success story. The building of St. Louis Jubilee School. This is a primary and JSS school (Junior High School) in Kumasi. Kumasi is a city in Ghana(West-Africa). The site is a basic website with normal functionality. The website contains information about the school and the activities of the school. Some of the features that allow the website to stand out from the rest of it’s kind is the following:
1. Online Results System
2. User and email Account for the staff
3. Accounts for the Students
4. Events/ News and Articles organization
5. Galleries
I just want to go through how I built the website. This is a write or some sort of documentation about how the tools,modules and how the site was built. We all know that drupal is a very powerful tool. I even called it the “drupal framework”. I see it as more of a framework that a CMS. We usually see it being used for high end sites like New York Observer, Eureka and the rest. I must say that they are really performing a awesome job with those site. I have actually learnt a lot from these sites and how the developers built it. In this case drupal is being used for a lower end site in terms of functionality , if I may say so. (A high school web site/CMS)
Read the rest of this entry »
Send emails in PHP-Using PEAR extensions II
In the previous post we looked at managing and installing PHP Extension and Application Repository (PEAR) packages, as well as how to use such a package from a PHP script. Now we will look at some of the other packages in the PEAR library.
The packages required for this column are available from www.pear.php.net.
To install them into your local PHP system, copy all packages from the PEAR site into a temporary directory, then type:
$ pear install
Where <package filename> is the filename of the package you are installing. The packages are stored in tar gzipped format, so you may get an error like this:
The extension ‘zlib’ couldn’t be found.
Send emails in PHP-Using PEAR extensions
The PHP Extension and Application Repository (PEAR) is an open source structured library of packages for PHP developers. These packages provide routines which solve problems PHP developers regularly face: sending structured e-mail (such as an HTML attachment), interacting with different databases from a single script, error handling, recovery and logging.
The base installation of PEAR is shipped with PHP itself. The programmers working on PEAR have developed a method of installing new packages and keeping your existing installation up-to-date, called the PEAR package manager.
PEAR package manager
If you are using a version of PHP prior to 4.3, you will need to install the PEAR package manager. UNIX users can run the following command:
lynx -source http://go-pear.org/ | /path/to/php
This downloads the source of the page at http://go-pear.org and runs it with the PHP binary (replace /path/to with the path to PHP on your system).
Repairing Crashed MySQL Database tables. “table ‘employee’ has crashed.”
Hi all,
Today i just want to start by sharing an experience that i had with MySQL Database. I was a project for a friend. The project was a CMS for a movie site and all of a sudden an error message started appearing, that the
table “employee” has crashed.
This made the admin page inaccessible. The true is if you have been working with MySQL for sometime you might have seen this error. I want to share with you i i fixed this error.
Before that i want to ask “Does anyone what causes MySQL table to crash” if you do please leave a comment as to how.
Drupal Backend theme issues
If you’ve configured Drupal (www.drupal.org) the way that it
uses different themes for the frontend and the backend, it still kicks
you into the frontend when you edit content.
To change this you have to edit this file:
modules/system/system.module
at the end of the function “function system_menu($may_cache)” look
for the “else” part
// find:
if (arg(0) == ‘admin’)
// repalce with:
if (arg(0) == ‘admin’||
(arg(0)==’node’ && arg(1)==’add’) ||
(arg(0)==’user’ && arg(1)!=”) ||
(arg(0)==’node’ && (arg(2)==’edit’ || arg(2)==’localizernode’))
)