Experimental Physics and
| |||||||||||||||
|
<?php #load external module dl("php_epics.so"); #call function ca_get implemented in the php_epics.so module and display #the result $rt = ca_get("TEST:ai1"); echo "Channel TEST:ai1 ".$rt; #in order to call ca_put function we want to pass a value as a parameter from #a text field echo "<FORM METHOD=GET ACTION=test_ca_get_put.php>\n"; echo "Channel TEST:ai2 <INPUT TYPE=TEXT NAME=CHANNEL VALUE=".$_GET["CHANNEL"].">"; echo "<INPUT TYPE=SUBMIT VALUE=Go>\n"; echo "</FORM>"; #call the function ca_put("TEST:ai2",$_GET["CHANNEL"]); #read and display the value echo "Channel TEST:ai2 ".ca_get("TEST:ai2"); #Note: Channels "TEST:ai1","TEST:ai2" are running as soft channels on a PC # on PSI network. ?> from a web browser, I have the following display : *"Warning*: dl(): Unable to load dynamic library '/usr/local/lib/php/extensions/php_epics.so' - libCom.so: cannot open shared object file: No such file or directory in */var/www/html/ImmsData/test_ca_get_put.php* on line *3" *although the path to php_epics.so is correct.* *Does anybody know what's going on ? Thanks Christophe * *
| ||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |