Skip Navigation
Expand
Using PHP function file_get_contents
Answer ID 7445   |   Last Review Date 01/05/2022

Can I use the PHP function file_get_contents() within my Customer Portal pages?

Environment:

Customer Portal all versions

Resolution:

Yes, in legacy pods as long as the URL you are passing is setup to allow HTTP. 

No, in OCI pods, those do not allow traffic over port 80 (HTTP) and the PHP build does not support file_get_contents using HTTPS.