If you are using feeds from DataFeedFile.com and need a workaround for the "URL file-access is disabled in the server configuration" problem, one way is to create a php.ini (or add to your existing) in the root folder of your site and add the following two options: allow_url_fopen = Off and allow_url_include = On. If these are not options for you, then you might try using PHP's cURL library instead.
The standard PHP code to embed DataFeedFile.com's feeds is (example only - your URL will vary, i.e. your affid and product_sku):
<?php include('http://www.datafeedfile.com/dffphp_script_prdtmain.php? dffget_affid=5542&dffget_style=2&dffget_nw=1&dffget_dff_product_sku=2537819 &dffget_dff_pse_url=http%3A//path_to_your_price_search_engine&'.$_SERVER['QUERY_STRING']); ?>
Workaround:
<?php $ch = curl_init('http://www.datafeedfile.com/dffphp_script_menu.php?dffget_affid=5542 &dffget_script=menu&dffget_page=cat&dffget_style=2&dffget_cols=2 &dffget_rows=12&dffget_fontsize=10&dffget_view=listplus &dffget_targeturl=http%3A//path_to_your_price_search_engine&'.$_SERVER['QUERY_STRING']); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); if(($DFF_output = curl_exec($ch))===FALSE) die("Error getting content...please try again in a few minutes"); else echo $DFF_output; curl_close($ch); ?>
| < Prev | Next > |
|---|







