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.

No comments:

Post a Comment