Forums NFrance

Forum de discussions NFrance - Support offres dédiées et mutualisées

Vous n'êtes pas identifié.

Annonce

Attention, le forum est public, ne postez donc jamais votre mot de passe en clair dans un message.

#1 26-03-2008 02:46:45

pkolar
Nouveau membre
Date d'inscription: 26-03-2008
Messages: 1

fsockopen() has been disabled for security reasons

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

 

#2 15-04-2008 17:54:42

joris
Moderateur
Date d'inscription: 27-06-2007
Messages: 929

Re: fsockopen() has been disabled for security reasons

The only way to do what you want is to change your hosting plan.


Joris
Support NFrance
---------------------------
N'oubliez pas la FAQ wink

Hors ligne

 

Pied de page des forums

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson