I had a script which converted my dynamically produced pages into static HTML. This was to ease indexing and reduce server loads.
Following a host move, to one which has PHP5, I can no longer get the script to work:
<?php
# Set Names for Static Build Pages
$sourcepage = "http://www.mysitename.com/dynamicfiles/productpage.php?id=".$row['id'].";
$tempfilename = "../dynamicfiles/temp_file.php";
$targetfilename = "../".$branddirectory.$productfilename;
# Run PHP Conversion
$htmldata = file_get_contents($sourcepage);
?>
I get the error: "URL file-access is disabled in the server configuration" and after some hunting around, understand this is due to a change in PHP5, related to "allow_url_fopen".
Can anyone recommend a work around or do I need to enable "allow_url_fopen"?