Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: php epics module
From: Christophe Moins <christophe.moins@ego-gw.it>
To: tech-talk@aps.anl.gov
Date: Fri, 05 May 2006 17:51:04 +0200
Hello,


I'd like to use the php epics module but I meet some difficulties. When I am trying to launch the test_ca_get_put.php example :

<?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
*

*


Replies:
Re: php epics module Andrew Johnson

Navigate by Date:
Prev: Re: Power Monitoring John A. Priller
Next: Re: EDM Command Options Question John Dobbins
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: Re: Power Monitoring Jon Brinkmann
Next: Re: php epics module Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·