Jump to content

Problem with loading *.dll


Recommended Posts

Currently i am doing a project to wrtie php codes to access the rs232 interface (com port). I hae found an example in the Internet, howeve, i don't know how to run it.

 

I am using appserv2.5.8 which includes,

Apache 2.2.4

PHP 5.2.1

MySQL 5.0.27

phpMyAdmin-2.9.2

 

here is my conf in php.ini

extension_dir = "C:\AppServ\php5\ext"

extension=php_iolV2.dll

 

here is my conf in httpd.conf

LoadModule php5_module "C:/AppServ/php5/php5apache2_2.dll"
PHPiniDir C:/AppServ/php5/php.ini
AddType application/x-httpd-php .php

 

However, when i run iol_info.php

i got this error:

Fatal error: Call to undefined function iol_info() in C:\AppServ\www\class\php_iol.class.php on line 35

 

I have attached the zipped file for references.

 

Could anyone tell me how can i run that php file?

 

[attachment deleted by admin]

Link to comment
Share on other sites

is php_iolV2.dll in the extension folder C:\AppServ\php5\ext

 

does that extension require extra libraries?

 

Have you restarted Apache when you made changes to the php.ini and/or the httpd.conf?

 

I did a search on php.net and couldn't find any info on that extension. So I cant help you much as I don't know what that extension is.

Link to comment
Share on other sites

 

is php_iolV2.dll in the extension folder C:\AppServ\php5\ext

yes

 

 

does that extension require extra libraries?

input32.dll was put in c:\windows\system32 directory

 

Have you restarted Apache when you made changes to the php.ini and/or the httpd.conf?

yes

 

I did a search on php.net and couldn't find any info on that extension. So I cant help you much as I don't know what that extension is.

This dll was written by someone, that means this dll is not the official one.

 

thx for your help anyway.

Link to comment
Share on other sites

If its a custom extensions then I think it would be best to get in contact with the author. Also is that extension built for PHP5.2.1?

 

I just noticed the zip you attached to your post

 

I download and tested to see if I could get to load. I couldn't get it load either. No matter where I put input32.dll (I noticed it was called inpout32.dll by the read me said input32.dll) it failed to load.

 

I look in the file called @Readme-CodeS-SourceS-FR.txt and noticed a web address I went to that size and read the Description for it and found this:

This extension allows the direct access the parallel and serial(rs232) port in reading and writing by the DLL inpout32.dll under WIN9x/NT/2000/XP for any assembly. An example of concret application: Complete house automation with web interface and php, connection hardware of any nature with the ports like assemblies simple or to complicate. One idea simple but quite practical... Extension and source was compiled with Delphi 6 for PHP5.0 to 5.1.2, sources and example included.

The important bit is in red.

 

This extension was compiled for PHP5.0 to PHP5.1.2 and not PHP5.2.x. This is why the extension fails to load. You need to use extension with the same build as the version of PHP you have installed. If you need to use the extension downgrade PHP to PHP5.1.2 however I would see if you can get an up to date build of this extension to be used with PHP5.2.x

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.