Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
  • what is best php or html? (In: General Search Engine Optimization)
  • Unusual script request (In: Coding & Databases - PHP, ASP, Perl, etc.)
  • Featured Web Site Template

    Hundreds More at Free Site Templates.com!

    Web Site Partners
    Sponsored Links
    Jet City Software
     
    Whos Here ?
    Reflects user activity within the last 5 minutes
    Moderator(s): Prowler, jcokos
    Member Message

    rowanp
    Joined: Apr 09, 2004
    # Posts: 19

    View the profile for rowanp Send rowanp a private message

    Posted: 2005-Apr-25 20:24
    Edit Message Delete Message Reply to this message

    Hi

    I need to run a PHP script within a Perl script. I need to send the PHP file certain variables from the Perl script. What I would send would look something like
    .../sales.php?userid=4323&total=432.32&productid=4332

    What would be the best way to do this? Running it with the system command does not seem to work properly.

    Regards

    rowanp.



    Prowler
    Staff
    Joined: Aug 14, 2000
    # Posts: 1788

    View the profile for Prowler Send Prowler a private message

    Posted: 2005-Apr-27 13:29
    Edit Message Delete Message Reply to this message

    The best plan would be to write the functionality you have in the PHP script into Perl itself. But if you insist that you need to invoke the PHP script, try the backtick. (`).

    It assumes that you set the path for the PHP binary and the script path before you invoke. If this sounds daunting, you can do a roundabout way of invoking directly the script in question. Use wget again by using a backtick.


    You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
    1. You have not yet logged in, or registered properly as a member
    2. You are a member, but no longer have posting rights.
    3. This is a private forum, for which you do not have permissions.

    If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

    If you cannot find this message, click here to Re-Send it.

    If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

    Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

    New posts Forum is locked
    © 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions