Are you asking how to run a perl script from within a PHP script? Don't you have a book or manual or some other documentation about PHP that tells you how to run some other program from within a PHP script?

When you figure out how to do that, it will probably involve passing a "command line string" to some PHP function for running a command line, and you'll have the option of putting "command line arguments" in that string, including, for example, the name of a perl script, and anything that the perl script needs in its @ARGV array on start-up (e.g. one or more file names, any optional flags, etc).

Depending on what the perl script happens to be (I hope you have a man page or other docs on that as well), you'll need to figure out what you need to put into the command line string in your php script.

E.g. you might need to save the ">seqN" labels and strings of letters in a file, and include the file name in the command line string that runs the perl script.

This is not a place to ask questions about how to do things with PHP. If you're looking for help with a perl script, tell us what the script needs to do, show us what you've tried, and make it clear what sort of problem you're having.

By the way, if you put "<code>" and "</code>" around your data, it will show up correctly in your post. You can update you post to fix that.


In reply to Re: PHP/PERL by graff
in thread PHP/PERL by ktsirig

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.