<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 <iframe> or an <embed> 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>
my $feature = shift;<br> my $p = PHP::Interpreter->new();<br> return $p->eval('echo "hello world"');<br> }<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"><<a href="mailto:taner@iastate.edu">taner@iastate.edu</a>></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 = <iframe width="100%" frameborder="0"
height="90"
src="<a href="http://someaddress.edu/header.php" target="_blank">http://someaddress.edu/header.php</a>">
</iframe<br><br>
TUTORIAL?<br>
It turns out I don't even know how to create a "Hello World!"
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'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 <embed> in a .php file.<br><br>
Lincoln<br><br>
On Mon, Sep 29, 2008 at 10:12 AM, Taner Z. Sen
<<a href="mailto:taner@iastate.edu" target="_blank">taner@iastate.edu</a>>
wrote:<br>
<dl>
<dd>Thanks Dave. That'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't mean it can't be done.<br><br>
</dd><dd>You could try something like PHP::Interpreter:<br><br>
</dd><dd>
<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>
<a href="http://www.linuxjournal.com/article/9282" target="_blank">
http://www.linuxjournal.com/article/9282</a><br><br>
</dd><dd>However, I don'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
<<a href="mailto:taner@iastate.edu" target="_blank">taner@iastate.edu</a>>
wrote:<br>
</dd><dd>> Hi,<br>
</dd><dd>><br>
</dd><dd>> Is there a way to insert php code in the conf file? (something
like header =<br>
</dd><dd>> <?PHP ...)<br>
</dd><dd>><br>
</dd><dd>> Thanks,<br>
</dd><dd>> 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 <<a href="mailto:Stacey.Quinn@oicr.on.ca">Stacey.Quinn@oicr.on.ca</a>><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 <<a href="mailto:michelse@cshl.edu">michelse@cshl.edu</a>><br>
</div>