Hi guys,
I have a need to run a script in the order confirmation process which sends an order through to a supplier via fput after creating an xml file.
I already have the code working to do the job but currently it is not automated.
I wish to include the script somewhere like
includes/classes/order.php
after the order confirmation email part as I assume at this point the order has already been confirmed etc so that it is done automatically.
What I am a little concerned about is my lack of knowlege of the current script I am using for fput. For example, when connecting to the ftp server I use the code:
this is fine running on a script on its own in isolation, but if I used this as is, would thePHP Code:// set up a connection or die
$conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server");
or die("Couldn't connect to $ftp_server");
part affect the rest of the process running normally in the case that the ftp server wasn't available??
any advice would be appreciated or any better suggestions on how I could implement.
Cheers
Phil


Reply With Quote
