Tuesday, December 30, 2008

Including PEERS classes

I you get error while executing like bellow program using include" ".........

addSpan(new Date_Span(28:05:25:11");
echo $d->getDate();


?>


Error is:
Warning: include(Date.php) [function.include]: failed to open stream:
No such file or directory in C:\xampp\htdocs\conversion_
num2roman.php
on line 2

so we can solve this problem by following these steps :

1. go to file C:\xammp/php/php.inf, edit this file in phpdesigner or wordpad

2. go to line number 447

3. change
include_path = ".;C:\xampp\php\pear\";
TO
include_path = ".;C:\xampp\php\PEAR\PEAR\";

4. restart server for example Apache.

5. restart browser .

6. now open our page then it will give correct result.

The History of PHP

PHP started life and is still primarily used as a server-side HTML-embedded scripting language.

PHP, known originally as Personal Home Pages, was first conceived in the autumn of 1994 by Rasmus Lerdorf. He wrote it as a way to track visitors to his online CV. The first version was released in early 1995, by which time Rasmus had found that by making the project open-source, people would fix his bugs. The first version was very straightforward and had a simple parser which recognised a few special macros and provided some of the utilities which were in common usage on homepages back then.

Two programmers, Zeev Suraski and Andi Gutmans, rebuilt PHP's core, releasing the updated result as PHP/FI 2 in 1997. The acronym was formally changed to PHP: HyperText Preprocessor, at this time. (This is an example of a recursive acronym: where the acronym itself is in its own definition.) In 1998, PHP 3 was released, which was the first widely used version.

The latest statistics show that PHP is now in use on over 5.5 million domains, and has had a steady usage growth rate over the past year.

set path for cakephp on windows

This part is only for people with XAMPP installed with Windows.. To use the bake feature of CakePHP you will need to do a few extra steps.
  1. Use a fresh copy of CakePHP and put it in your C:/XAMPP directory. You should have a directory structure like this: “C:/XAMPP/htdocs/cake1.2(renamed the folder to cake1.2)/cake/console”
  2. Now you need to go to your Advanced System Settings page and In your Environment Variables you will want to edit the “PATH” Variable. Add the following to the end of your PATH “;C:\xampp\php;C:\xampp\htdocs\cake1.2\cake\console;” without the quotations of course.
  3. You may need to restart your computer, but open up the console and you should be able to type “cake -v” and “php -v”. If they work, then you are ready to bake!