Results 1 to 4 of 4
Thread: Using PHP and Perl Together
Jul 26, 2001, 08:27 #1
Using PHP and Perl Together
I have a shopping cart program that uses PHP and MySQL, and it works great, and I have it up and running on a particular web server. Now, I'd like to use the same shopping cart on a server that, for some reason, doesn't allow PHP and SSL to play nice together. (The server owner insists there isn't anything we can do about it, so I have to just go with that for now).
Since I don't need SSL for most of the cart's functions, I'm hoping to use the existing PHP functions and then just pass everything to a CGI script when it's time to use SSL to get credit card info, etc., and then use the CGI script to write the order information to the MySQL database.
Is there any reason why this wouldn't work? Are there any issues I should know about before attempting to do this? Thanks for any help!
Jul 27, 2001, 11:15 #2
I'm pretty sure it should work, with a Header("Location: newscript.cgi"); as part of your PHP file.
Jul 27, 2001, 11:22 #3
- Join Date
- Aug 2000
- San Diego, CA
- 0 Post(s)
- 0 Thread(s)
The only issue I can see is how you will get all the data to your cgi script, as using header() will just redirect to the script. I think your best bet will be to use POSt to get all the data to the cgi script, since you are going from PHP to Perl, sessions are out. You could store all the information in a database and then pass of an id to the cgi script, then using Perl you could retrieve the data from the database.Please don't PM me with questions.
Use the forums, that is what they are here for.
Jul 27, 2001, 11:43 #4
Well yeah, like he said, just pass everything to the CGI script.