Re: [greenstone-users] custom macros, extra.dm, and php

From Richard Managh
DateWed, 03 Jan 2007 12:12:35 +1300
Subject Re: [greenstone-users] custom macros, extra.dm, and php
In-Reply-To (BAY120-F3344111F510A481616D767C9BA0-phx-gbl)
Hi Anson,

The problem here is that your webserver uses greenstone to spit out html directly to a users browser, your webserver also uses php to spit out html directly to a users browser, just not normally at the same time. In your case your webserver is using greenstone to directly generate that page, and php isnt in the loop. You could try inserting an iframe in your page that points to a file ending in .php, that will hopefully tell your webserver to interpret the contents of your iframe as php, and get you the desired result.


Regards

Richard.

--
DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@dlconsulting.com
www.dlconsulting.com



Anson Parker wrote:
Hi all,
I'm trying to get my head around the extra.dm files, and not getting too far...
here's an attempt to get phpinfo to print out on my pages.... not sure what the problem is, all it does is output the h3 information, and it appears to continue on normally as if the rest of it isn't there.  Am I escaping the script properly and is this the right  way to use the extra.dm file?  Thanks

Anson


package about

_textabout_ {
<div class="section">
<h3>Very Interesting Reports Collection.</h3>
<?php

# // Show all information, defaults to INFO_ALL
phpinfo();

#// Show just the module information.
#// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>
_Global:collectionextra_
</div>
}

_________________________________________________________________
The MSN Entertainment Guide to Golden Globes is here.  Get all the scoop. http://tv.msn.com/tv/globes2007/




_______________________________________________ greenstone-users mailing list greenstone-users@list.scms.waikato.ac.nz https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users