Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports instalation fouls php on server

Status
Not open for further replies.

monkle

Programmer
Joined
Feb 11, 2004
Messages
132
Location
US
Today I installed Crystal Reports v10 Developer Edition on our web server. After installing it, I received an error while attempting to access php pages on the server:

PHP Warning: Unknown(): Unable to load dynamic library 'c:\php\extensions\php_curl.dll' - The operating system cannot run %1. in Unknown on line 0

I have spent the rest of the day trying to find any useful information on the problem, without any success.

If anyone can explain to me what happened and how to fix it, or point me to any useful documentation, please do so.
 
So uh... operating system, webserver, php version, method in which you're trying to load php_curl, running PHP as a module or extension, ability to run say <?php phpinfo(); ?> ?
 
Windows 2000, IIS 5, php 4.3.4, not trying to use it, it's just horking at 'php' (for example test.php with source of "<?php ?>")
 
Sorry, I need to bow out with the IIS portion, especially given your error... best of luck.
 
have you tried a command line run e.g.
c:\php\php.exe simplescript.php
 
Up until now, no, I hadn't tried that.

When I try it, it pops up two error messages:

"The ordinal 2821 could not be located in the dynamic link library LIBEAV32.dll"

and when I click ok on that one, it gives me this:

Unknown() Unable to load dynamic library "C:\php\extensions\php_curl.dll" - The operating system cannot run %1.
 
Problem solved (sort of)

After spending hours working on the server, I uninstalled Crystal Reports, and php now functions fine.

The best conclusion I can come up with, is that Crystal Reports uses a .dll file with the same name as a .dll file that php uses.
 
Perhaps it's an older version of the same dll? I'd suggest uninstalling them both, then installing Crystal, then installing PHP, and seeing what happens.

Just an idea.
 
That's really weird , I can't see why a crystal reports would put a DLL into the directory and with a php name. Can you post some code that fails ??. The ordinal number is an internal pointer to the actual function in the DLL.
As a side issue I've always had trouble with crystal reports
 
ingredsman, I agree, I don't get why it should be a problem either. some code that fails... let's see, that would be
Code:
test.php

<?php
?>

You say you've always had trouble with crystal reports... Did you ever get Crystal and PHP installed and functional simultaneously on the server?

skiflyer: That makes sense. If my boss is willing to give crystal reports a second chance, I will have to try that.
 
I don't run php on windows, but I would try the following:

(With PHP working)

1. Locate LIBEAV32.dll (/winnt/system32, possibly)
2. Make a *copy* of that file in the php includes folder
3. Edit php.ini and make sure any references to that library point to the copy in the php folder.
4. Try installing Crystal reports to see if PHP chokes again.

You may also have to find out what is calling it. It may just work to put the DLL that works in the same folder as the DLL/EXE that is calling it.
 
I ran a search for LIBEAV32.dll in my php.ini file, but it only returned "Cannot find string "LIBEAV32""

PHP is running fine, now that Crystal Reports has been uninstalled.
 
After reading your message a little more closely, it looks like C:\php\extensions\php_curl.dll is trying to call LIBEAV32.dll.

Another thing to try is locating LIBEAV32.dll and putting it in the extensions folder. IIRC, when something calls a DLL, the folder in which the calling file is in is searched for first, then the other folders in your PATH statement.

D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top