Fatal error: Call to undefined function:

I have php 4.1.2, apache 1.3, mysql 3.23 installed in my xp pro machine.

I have met many errors like:
Warning: Failed opening '../header.inc.php' for inclusion (include_path='.;C:\php\pear') in e:\egroupware2\manual\index.php on line 20
Fatal error: Call to undefined function: is_a() in e:\crm\log4php\config\LoggerPropertySetter.php on line 108

or simply:

Fatal error: Call to undefined function: execmethod() in e:\egroupware2\manual\index.php on line 22

etc.

My php config (fragement) is:

Configuration File (php.ini) Path      C:\WINDOWS\php.ini
include_path      .;C:\php\pear

The pear folder is the default folder when I downloaded and installed php, I did not change anything.

One more, all those scripts that do not work properly are said to be run on php 4.3+. I do can run some scripts properly, like Invision Power Board 1.3

Another weird issue is that, I was using IIS 5 yesterday and I can successfully install and run those scripts that cannot install & run today in apache.

Another problem is when I tried to install EZ publish, I got this problem:

when I tried to install the 1st time (the 1st time to visit the install URL) , I got this:
<link rel=\"stylesheet\" type=\"text/css\" href=

But if I try this URL again, I get this:

Parse error: parse error in e:\websites\etsscore\ez\var\cache\ini\5333a6c365d6268e16c21e911be41344.php on line 3

Parse error: parse error in e:\websites\etsscore\ez\var\cache\codepages\36e48c5d322c489dd3ee4e51ffda1494.php on line 271

Parse error: parse error in e:\websites\etsscore\ez\var\cache\ini\33f42fe2d66540e837a4b316cf649710.php on line 3

Parse error: parse error in e:\websites\etsscore\ez\var\cache\ini\3c8ad8ce08531dfeba6caf9522ae1883.php on line 3

Parse error: parse error in e:\websites\etsscore\ez\var\cache\ini\624c2b076ca52fb456afc8e03de2ce4c.php on line 3

Parse error: parse error in e:\websites\etsscore\ez\var\cache\ini\c4ff96e5160a5c9d983aa46ebbe674e8.php on line 3
<link rel=\"stylesheet\" type=\"text/css\" href=

php files like 624c2b076ca52fb456afc8e03de2ce4c.php are automatically generated in the ini or codepages folders.
LVL 1
tiger0516Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tiger0516Author Commented:
I can connect to MySQL correctly.
tiger0516Author Commented:
By the way, my MySQL is running (I can see a process named mysqld-nt.exe) and in php.ini mysql.allow_persistent is set to be On
davebytesCommented:
"Another weird issue is that, I was using IIS 5 yesterday and I can successfully install and run those scripts that cannot install & run today in apache."

IIS 5 with PHP 4.1.2?   Or different version?  Have you tried yourself running with a newer PHP (like 4.3, that you mentioned, or PHP5)?

IIS and apache set certain host-path globals differently.  I'd be shocked with newer scripts having problems with >apache<, most would have issues with IIS given PHP is more used in LAMP environments...  But that could foil certain tricky include setups.

The first error:
Warning: Failed opening '../header.inc.php' for inclusion (include_path='.;C:\php\pear') in e:\egroupware2\manual\index.php on line 20
There should be a file e:\egroupware2\header.inc.php...  If it isn't there, something is wrong to begin with.
blue_hunterTechnical ConsultantCommented:
check for the location for all inclusion file in your program.
if the file location is not reachable from your scripts, you are unable to call the function in the inclusion files.
Hence, the system will dump you the "call to undefined function" error.

furthermore, If you are trying to call a function which is not currently supported by your php version, the system will throw such error for you too.

cheers


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
davebytesCommented:
Do you mind, for future readers, explaining what your solution was?

-d
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.