<div dir="ltr">Hi Taner,<br><br>I think it might be easier for you to create a .php file that creates the header and footer that you want and that then incorporates the gbrowse stuff into an &lt;iframe&gt; or an &lt;embed&gt; that is generated by the PHP.<br>
<br>Here is my guess about how to do a PHP hello world from a gbrowse callback:<br><br><div style="margin-left: 40px;">[GENERAL]<br>...<br>init_code = require PHP::Interpreter;<br><br>[my_sub]<br>...<br>balloon hover = sub {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my $feature = shift;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my $p = PHP::Interpreter-&gt;new();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return $p-&gt;eval(&#39;echo &quot;hello world&quot;&#39;);<br>&nbsp; }<br><br></div>Lincoln<br><br><div class="gmail_quote">
On Wed, Oct 1, 2008 at 9:42 AM, Taner Z. Sen <span dir="ltr">&lt;<a href="mailto:taner@iastate.edu">taner@iastate.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>
Hi Lincoln, Jeremy, and Dave, <br><br>
Ok. We cheated a little without using PHP::Interpreter to at least
incorporate a header that we use in MaizeGDB:<br><br>
header = &lt;iframe width=&quot;100%&quot; frameborder=&quot;0&quot;
height=&quot;90&quot;
src=&quot;<a href="http://someaddress.edu/header.php" target="_blank">http://someaddress.edu/header.php</a>&quot;&gt;
&lt;/iframe<br><br>
TUTORIAL?<br>
It turns out I don&#39;t even know how to create a &quot;Hello World!&quot;
perl code inside sub { .. } Is there a tutorial for dummies that shows
how to do this? I think this will be the first step for me before using
PhP::Interpreter.<br><br>
But for the time being we will be using Javascript for our other needs
(like creating a feedback button that includes the information where we
are in the genome along with the user comments) <br><br>
Thanks,<br><font color="#888888">
Taner</font><div><div></div><div class="Wj3C7c"><br><br>
At 11:04 AM 9/30/2008, Lincoln Stein wrote:<br>
<blockquote type="cite">Hi Taner,<br><br>
I don&#39;t have any experience with PHP::Interpreter myself, but I would be
very interested in how well this works. It might actually be easier to
embed GBrowse as an &lt;embed&gt; in a .php file.<br><br>
Lincoln<br><br>
On Mon, Sep 29, 2008 at 10:12 AM, Taner Z. Sen
&lt;<a href="mailto:taner@iastate.edu" target="_blank">taner@iastate.edu</a>&gt;
wrote:<br>

<dl>
<dd>Thanks Dave. That&#39;ll do.<br><br>

</dd><dd>Given your great enthusiasm for PhP, we will give a shot to rewrite
our code in perl as you suggested.<br><br>

</dd><dd>Taner<br><br>
<br>

</dd><dd>At 05:28 PM 9/26/2008, Dave Clements, GMOD Help Desk wrote:<br>
<blockquote type="cite">
<dd>Hi Taner,<br><br>

</dd><dd>The thought of running PHP inside Perl gives me the cold
pricklies.<br>

</dd><dd>However, that doesn&#39;t mean it can&#39;t be done.<br><br>

</dd><dd>You could try something like PHP::Interpreter:<br><br>

</dd><dd>&nbsp;
<a href="http://search.cpan.org/%7Egschloss/PHP-Interpreter-1.0.1/lib/PHP/Interpreter.pm" target="_blank">
http://search.cpan.org/~gschloss/PHP-Interpreter-1.0.1/lib/PHP/Interpreter.pm</a>
 <br>

</dd><dd>&nbsp;
<a href="http://www.linuxjournal.com/article/9282" target="_blank">
http://www.linuxjournal.com/article/9282</a><br><br>

</dd><dd>However, I don&#39;t think we would enthusiastically support doing
this.<br>

</dd><dd>If at all possible I would think about rewriting the code in
Perl.<br><br>

</dd><dd>Thanks,<br>

</dd><dd>Dave C.<br>

</dd><dd>GMOD Help Desk<br><br>
<br>

</dd><dd>On Fri, Sep 26, 2008 at 3:21 PM, Taner Z. Sen
&lt;<a href="mailto:taner@iastate.edu" target="_blank">taner@iastate.edu</a>&gt;
wrote:<br>

</dd><dd>&gt; Hi,<br>

</dd><dd>&gt;<br>

</dd><dd>&gt; Is there a way to insert php code in the conf file? (something
like header =<br>

</dd><dd>&gt; &lt;?PHP&nbsp; ...)<br>

</dd><dd>&gt;<br>

</dd><dd>&gt; Thanks,<br>

</dd><dd>&gt; Taner</dd></blockquote>
<p>

</p></dd></dl>Taner Z. Sen, Ph.D.<br>
Computational Biologist, USDA-Agricultural Research Service<br>
Collaborator Assistant Professor, Dept. of Genetics, Development and Cell
Biology<br>
Bioinformatics and Computational Biology Program<br>
Iowa State University<br>
1025 Crop Genome Informatics Lab<br>
Ames, IA 50011<br>
Phone: (515) 294-5326<br>
Fax: (515) 294-8280 <br>
<a href="mailto:taner@iastate.edu" target="_blank">taner@iastate.</a>
<a href="mailto:taner@iastate.edu" target="_blank">edu</a> <br>
<a href="http://www.public.iastate.edu/%7Etaner/" target="_blank">
http://www.public.iastate.edu/~taner/</a> </blockquote></div></div></div>

</blockquote></div><br><br clear="all"><br>-- <br>Lincoln D. Stein<br><br>Ontario Institute for Cancer Research<br>101 College St., Suite 800<br>Toronto, ON, Canada M5G0A3<br>416 673-8514<br>Assistant: Stacey Quinn &lt;<a href="mailto:Stacey.Quinn@oicr.on.ca">Stacey.Quinn@oicr.on.ca</a>&gt;<br>
<br>Cold Spring Harbor Laboratory<br>1 Bungtown Road<br>Cold Spring Harbor, NY 11724 USA<br>(516) 367-8380 <br>Assistant: Sandra Michelsen &lt;<a href="mailto:michelse@cshl.edu">michelse@cshl.edu</a>&gt;<br>
</div>