Outgoing connections from PHP scripts!

tazman2000

Active Member
Feb 16, 2005
27
0
151
Liverpool, UK
cPanel Access Level
Root Administrator
I updated from PHP4 to PHP5 at the weekend, and everything is working fine, apart from one thing.

Previously my 'shopping cart' received an IPn for purchase confirmation no problem, but no it gets no confirmation.

I think it is a problem that PHP scripts are not allowed to send/receive, but I cannot for the life of me remember what to change so it can. :confused:

Any help appreciated. ;)
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
I updated from PHP4 to PHP5 at the weekend, and everything is working fine, apart from one thing.

Previously my 'shopping cart' received an IPn for purchase confirmation no problem, but no it gets no confirmation.

I think it is a problem that PHP scripts are not allowed to send/receive, but I cannot for the life of me remember what to change so it can. :confused:

Any help appreciated. ;)
Check php.ini via WHM in WHM -> Service Configuration -> PHP Configuration Editor. If your script requires register globals, ensure register globals is enabled. Additionally, you may want to check your settings for allow_url_fopen and see if that is enabled (if your script needs it). Granted, both of these are considered bad programming conventions, but some scripts still require these settings.