Printer Friendly Version
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 |
|
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
rowanp
Joined: Apr 09, 2004
# Posts: 19
|
Posted: 2005-Apr-25 20:24
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: 1795
|
Posted: 2005-Apr-27 13:29
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:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- 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
|
|