Forum de discussions NFrance - Support offres dédiées et mutualisées
Vous n'êtes pas identifié.
Hi,
I have several hosted websites with DH.
One of them is now having problem with communicating with PayPal - which we use for payments.
We are using PayPal's IPN and PDT functions to return to our website to display info about the payment.
After the payment we get payment notification from PayPal and need to verify it with PayPal.
DH hosting server doesn't allow us at this point to use function fsockopen()
(err msg is: Warning: fsockopen() has been disabled for security reasons in /home/dh5155/paypal/index.php on line 19)
In reaction to this error the file descriptor is not created and therefore cannot be closed
(err msg: Warning: fclose(): supplied argument is not a valid stream resource in /home/dh5155/paypal/index.php on line 73 )
We copied this code from PayPal script generator, didn't change it at all.
It should perhaps be coded in such way that if the file descriptor is not created - it should not be closed. But the key problem is the fsockopen (). If that is not disabled - the whole thing would work.
Can we use some different function for verifying the transaction with PayPal?
Not fsockopen () or php module 'curl' (which is not installed on our hosting server)?
Or would you install 'curl'?
Could you please advise?
Thanks
Peter Kolar
Hors ligne