Re: [PHP] PHP and Perl Integration for E-Cart
Pushpinder Singh wrote: Hello all, We are trying to incorporate a CGI Perl based E-Cart module into our PHP driven site. This is because the E-Cart supplied by our merchant uses CGI. I want to check with all of you if its possible to integrate PHP with Perl. Will it be too much of a job ... or is it easier to create a new e-Cart software by ourselves ? Any comments / suggestion will be welcome ! Thanks in advance Pushpinder Singh I don't know E-Cart at all, but I'm sure it's possible. If it's database driven, displaying your products with php would be easy. However, moving from the php side of the site to the Perl cart may cause headaches (cookies, sessions, cart contents, etc.). You may be better off using a shopping cart which is built in PHP, like X-Cart or Squirrelcart. -- *** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \/ /__ _ _| |__ ___ __ ___ _ __ * 716.856.9675 * * | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ ' \ * 737 Main St. * * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150 * * |___/ * Buffalo, NY * * http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 * *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Perl Integration for E-Cart
From: Pushpinder Singh [EMAIL PROTECTED] We are trying to incorporate a CGI Perl based E-Cart module into our PHP driven site. This is because the E-Cart supplied by our merchant uses CGI. I want to check with all of you if its possible to integrate PHP with Perl. If you're talking about integrating PHP and Perl on the same page, then no. You can call a Perl script from PHP using virtual(), though, but it will still be difficult to integrate them if you want communication back and forth on the same page. If you're just talking about extra PHP pages working with the inventory or something, then that shouldn't be an issue; just figure out the database structure. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Perl Integration for E-Cart
This is the situation at hand ... we have a PHP Session based Login module. The user is required to login to get to the Shopping cart (which is provided for by the Merchant) This shopping cart is CGI / Perl based. So my question would be to integrate the ordering with the PHP Login module, so that the Perl code knows the PHP session variable. This ways I can keep track of the the user name/email/ order status etc. I want to to know whether it is possible to do this. Thanks again ! --Pushpinder On Tuesday, April 20, 2004, at 03:57 PM, John W. Holmes wrote: From: Pushpinder Singh [EMAIL PROTECTED] We are trying to incorporate a CGI Perl based E-Cart module into our PHP driven site. This is because the E-Cart supplied by our merchant uses CGI. I want to check with all of you if its possible to integrate PHP with Perl. If you're talking about integrating PHP and Perl on the same page, then no. You can call a Perl script from PHP using virtual(), though, but it will still be difficult to integrate them if you want communication back and forth on the same page. If you're just talking about extra PHP pages working with the inventory or something, then that shouldn't be an issue; just figure out the database structure. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Perl Integration for E-Cart
From: Pushpinder Singh [EMAIL PROTECTED] This is the situation at hand ... we have a PHP Session based Login module. The user is required to login to get to the Shopping cart (which is provided for by the Merchant) This shopping cart is CGI / Perl based. So my question would be to integrate the ordering with the PHP Login module, so that the Perl code knows the PHP session variable. This ways I can keep track of the the user name/email/ order status etc. So all you really need is for a way for Perl to read PHP session files? Or are you using a database for sessions? I'm sure this has already been written. The session ID is available in a cookie or from the URL. You just need to find the right file, open it, unserialize it and create your variables to see if the person is actually logged in or not. No cookie or session id in the URL means they haven't logged in. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Perl Integration for E-Cart
The session ID is not stored in the database, its propagated invisible via a cookie (I think so ;-) ) Is is possible to check for the existance of a PHP session ID on a Perl script ?? This ways I want to be able to send a confirmation email to to the buyer after he completes a transaction. I also want to update the buyer's record to now include the Item Number of the product he purchased. This is important because if the Perl-PHP combo approach does not work, then I will have to go for a pure PHP based shopping cart ( so that it is fully integrable with the PHP Login Module ). Also then the question comes up, that I need to get hold of a PHP-based payment gateway. Thanks again -Pushpinder On Tuesday, April 20, 2004, at 04:22 PM, John W. Holmes wrote: From: Pushpinder Singh [EMAIL PROTECTED] This is the situation at hand ... we have a PHP Session based Login module. The user is required to login to get to the Shopping cart (which is provided for by the Merchant) This shopping cart is CGI / Perl based. So my question would be to integrate the ordering with the PHP Login module, so that the Perl code knows the PHP session variable. This ways I can keep track of the the user name/email/ order status etc. So all you really need is for a way for Perl to read PHP session files? Or are you using a database for sessions? I'm sure this has already been written. The session ID is available in a cookie or from the URL. You just need to find the right file, open it, unserialize it and create your variables to see if the person is actually logged in or not. No cookie or session id in the URL means they haven't logged in. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Perl Integration for E-Cart
Pushpinder Singh wrote: The session ID is not stored in the database, its propagated invisible via a cookie (I think so ;-) ) Is is possible to check for the existance of a PHP session ID on a Perl script ?? This ways I want to be able to send a confirmation email to to the buyer after he completes a transaction. I also want to update the buyer's record to now include the Item Number of the product he purchased. This is important because if the Perl-PHP combo approach does not work, then I will have to go for a pure PHP based shopping cart ( so that it is fully integrable with the PHP Login Module ). Also then the question comes up, that I need to get hold of a PHP-based payment gateway. Thanks again -Pushpinder On Tuesday, April 20, 2004, at 04:22 PM, John W. Holmes wrote: From: Pushpinder Singh [EMAIL PROTECTED] This is the situation at hand ... we have a PHP Session based Login module. The user is required to login to get to the Shopping cart (which is provided for by the Merchant) This shopping cart is CGI / Perl based. So my question would be to integrate the ordering with the PHP Login module, so that the Perl code knows the PHP session variable. This ways I can keep track of the the user name/email/ order status etc. So all you really need is for a way for Perl to read PHP session files? Or are you using a database for sessions? I'm sure this has already been written. The session ID is available in a cookie or from the URL. You just need to find the right file, open it, unserialize it and create your variables to see if the person is actually logged in or not. No cookie or session id in the URL means they haven't logged in. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You don't actually need a PHP based payment gateway, you just need a PHP cart of package that supports your particular payment gateway. Payment gateways are not scripting language specific, each just uses its own set of protocols and such. There are many PHP-based shopping crarts out there that support many payment gateways. There's also PEAR's Payment_Process package, but I don't think it's stable yet. I wrote my own shopping cart (using a bunch of PEAR modules) in a few months which is very fully featured. Then again, it took two months of full time work. ;-) -- paperCrane Justin Patrin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Perl Integration for E-Cart
John Nichel wrote: Pushpinder Singh wrote: Hello all, We are trying to incorporate a CGI Perl based E-Cart module into our PHP driven site. This is because the E-Cart supplied by our merchant uses CGI. I want to check with all of you if its possible to integrate PHP with Perl. Will it be too much of a job ... or is it easier to create a new e-Cart software by ourselves ? Any comments / suggestion will be welcome ! Thanks in advance Pushpinder Singh I don't know E-Cart at all, but I'm sure it's possible. If it's database driven, displaying your products with php would be easy. However, moving from the php side of the site to the Perl cart may cause headaches (cookies, sessions, cart contents, etc.). You may be better off using a shopping cart which is built in PHP, like X-Cart or Squirrelcart. Ugh...stay away from Squirrelcart. Works ok on its own but if you ever want to do something in it...it's nearly impossible to read and modify. -- paperCrane Justin Patrin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php