Data feed file integration price comparison shopping script

Documentation Wiki - DataFeedFile.com - Online merchant datafeed integration for affiliates : dffRemoteInclude

HomePage | Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Home Affiliate FAQ Merchant FAQ Examples Merchants Networks & Programs Forum Blog Wiki Knowledge Base Login

Revision [606]

This is an old revision of dffRemoteInclude made by admin on 2009-03-17 09:49:43.
 

Retrieving Remote HTML content from DFF Server


For increased security, DFF will now recommend using the function file_get_contents() or cURL instead of include();

Remote inclusion of remote PHP file or any remote file is a security hole in PHP. It has worked well for DFF for almost 3 years because the files affiliates are including from DFF are not malicious. Nevertheless it is not best practice.

Instead of using:
include("http://www.datafeedfile.com/some_dff_script.php?affid=...&".$_SERVER['QUERY_STRING']);


DFF recommends change to:
echo file_get_contents("http://www.datafeedfile.com/some_dff_script.php?affid=....&".$_SERVER['QUERY_STRING']);


or you can use the cURL library/extension like this:

$ch = curl_init("http://www.datafeedfile.com/some_dff_script.php?affid=....&".$_SERVER['QUERY_STRING']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
if(($DFF_output = curl_exec($ch))===FALSE) die("Error getting content from DFF"); else echo $DFF_output;
curl_close($ch);



There are no comments on this page. [Add comment]

Integrate price comparison shopping data feed file from thousands of online merchant product data feeds | Valid CSS

Page was generated in 0.0810 seconds