Forums / Developer / help to get an Object in PHP script / Comment40339
SathishKumar Subramanian
Wednesday 14 April 2004 10:02:55 am
Hi ALex,
I typed the following code inside the PHP page,
<?php
include_once( 'lib/ezutils/classes/ezhttptool.php' ); include_once( "lib/ezdb/classes/ezdb.php" );include_once("kernel/classes/ezcontentobject.php");
$co = & eZContentObject::fetch($objectid); $datamap = & $co->atrribute('data_map'); $sometext = $datamap['resource_language']->content(); //resource_language is an attributeecho $sometext;
?>
Thanks & Regards,Sathish